) on line #11 of app/views/photos/new.html.erb:
+8:
+9:
+10: <%= f.label :category %>
+11: <%= f.select :category_id, @categories %>
+12:
+13:
+14: <%= submit_tag 'Upload' %>
+
+ app/views/photos/new.html.erb:11
+ app/views/photos/new.html.erb:3
+
+Rendered rescues/_trace (27.3ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 13:43:44) [GET]
+ Parameters: {"category_id"=>"1"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;35;1mPhoto Load (0.0ms)[0m [0mSQLite3::SQLException: no such column: photos.category_id: SELECT * FROM "photos" WHERE ("photos"."category_id" = '1') [0m
+
+ActiveRecord::StatementInvalid (SQLite3::SQLException: no such column: photos.category_id: SELECT * FROM "photos" WHERE ("photos"."category_id" = '1') ):
+ app/controllers/photos_controller.rb:10:in `index'
+
+Rendered rescues/_trace (26.3ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 13:44:17) [GET]
+ Parameters: {"category_id"=>"1"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;35;1mSQL (0.2ms)[0m [0m SELECT name
+ FROM sqlite_master
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
+[0m
+
+NoMethodError (undefined method `photos' for #):
+ app/controllers/photos_controller.rb:10:in `index'
+
+Rendered rescues/_trace (22.1ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 13:44:23) [GET]
+ Parameters: {"category_id"=>"1"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;35;1mSQL (0.3ms)[0m [0m SELECT name
+ FROM sqlite_master
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
+[0m
+
+NoMethodError (undefined method `Photos' for #):
+ app/controllers/photos_controller.rb:10:in `index'
+
+Rendered rescues/_trace (21.4ms)
+Rendered rescues/_request_and_response (0.5ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PhotosController#new (for 127.0.0.1 at 2010-10-08 13:45:07) [GET]
+ [4;36;1mCategory Load (0.5ms)[0m [0;1mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering photos/new
+
+ActionView::TemplateError (undefined method `category_id' for #) on line #11 of app/views/photos/new.html.erb:
+8:
+9:
+10: <%= f.label :category %>
+11: <%= f.select :category_id, @categories %>
+12:
+13:
+14: <%= submit_tag 'Upload' %>
+
+ app/views/photos/new.html.erb:11
+ app/views/photos/new.html.erb:3
+
+Rendered rescues/_trace (28.8ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PhotosController#new (for 127.0.0.1 at 2010-10-08 13:45:21) [GET]
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering photos/new
+Completed in 17ms (View: 7, DB: 0) | 200 OK [http://localhost/photos/new]
+
+
+Processing PhotosController#create (for 127.0.0.1 at 2010-10-08 13:45:30) [POST]
+ Parameters: {"photo"=>{"photo"=>#}, "commit"=>"Upload", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw="}
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-75171-h4ufqz-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-75171-h4ufqz-0.jpg[0]' -resize "x224" -crop "224x224+64+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-75171-h4ufqz-020101008-75171-4yfw10-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-75171-h4ufqz-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-75171-h4ufqz-0.jpg[0]' -resize "x140" -crop "140x140+40+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-75171-h4ufqz-020101008-75171-l494ib-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-75171-h4ufqz-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-75171-h4ufqz-0.jpg[0]' -resize "x84" -crop "84x84+24+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-75171-h4ufqz-020101008-75171-12wfkj4-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-75171-h4ufqz-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-75171-h4ufqz-0.jpg[0]' -resize "x56" -crop "56x56+16+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-75171-h4ufqz-020101008-75171-znukmm-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-75171-h4ufqz-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-75171-h4ufqz-0.jpg[0]' -resize "1024x1024>" '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-75171-h4ufqz-020101008-75171-voxm2b-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-75171-h4ufqz-020101008-75171-voxm2b-0[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-75171-h4ufqz-020101008-75171-voxm2b-0[0]' -resize "x308" -crop "308x308+88+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-75171-h4ufqz-020101008-75171-voxm2b-020101008-75171-1tusyfy-0' 2>/dev/null
+ [4;36;1mPhoto Create (0.7ms)[0m [0;1mINSERT INTO "photos" ("photo_file_size", "created_at", "title", "flickr_url", "photo_file_name", "updated_at", "photo_content_type", "photo_updated_at", "description", "sort") VALUES(113067, '2010-10-08 17:45:34', NULL, NULL, 'Buttercup.jpg', '2010-10-08 17:45:34', 'image/jpeg', '2010-10-08 17:45:30', NULL, NULL)[0m
+[paperclip] Saving attachments.
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/1/size8/Buttercup.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/1/size5/Buttercup.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/1/size3/Buttercup.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/1/size2/Buttercup.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/1/original/Buttercup.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/1/size11/Buttercup.jpg
+Redirected to http://localhost:3000/photos/1
+Completed in 4110ms (DB: 1) | 302 Found [http://localhost/photos]
+
+
+Processing PhotosController#show (for 127.0.0.1 at 2010-10-08 13:45:34) [GET]
+ Parameters: {"id"=>"1"}
+ [4;35;1mPhoto Load (0.4ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 1) [0m
+Rendering template within layouts/photos
+Rendering photos/show
+Completed in 25ms (View: 13, DB: 0) | 200 OK [http://localhost/photos/1]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 13:45:36) [GET]
+ [4;36;1mPhoto Load (0.5ms)[0m [0;1mSELECT * FROM "photos" [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 15ms (View: 7, DB: 1) | 200 OK [http://localhost/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 13:46:57) [GET]
+ [4;35;1mPhoto Load (0.6ms)[0m [0mSELECT * FROM "photos" [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 12ms (View: 5, DB: 1) | 200 OK [http://localhost/photos]
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 13:47:00) [GET]
+ [4;36;1mCategory Load (0.8ms)[0m [0;1mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering categories/index
+Completed in 11ms (View: 5, DB: 1) | 200 OK [http://localhost/categories]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 13:47:00) [GET]
+ Parameters: {"category_id"=>"1"}
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;36;1mPhoto Load (0.2ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Completed in 12ms (View: 4, DB: 0) | 200 OK [http://localhost/categories/1/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 13:47:03) [GET]
+ Parameters: {"category_id"=>"2"}
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '2') LIMIT 1[0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;36;1mPhoto Load (0.2ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 2 ) [0m
+Completed in 13ms (View: 4, DB: 0) | 200 OK [http://localhost/categories/2/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 13:47:28) [GET]
+ Parameters: {"category_id"=>"2"}
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '2') LIMIT 1[0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;36;1mPhoto Load (0.2ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 2 ) [0m
+Completed in 13ms (View: 4, DB: 0) | 200 OK [http://localhost/categories/2/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 13:48:03) [GET]
+ Parameters: {"category_id"=>"2"}
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '2') LIMIT 1[0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;36;1mPhoto Load (0.3ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 2 ) [0m
+Completed in 16ms (View: 7, DB: 1) | 200 OK [http://localhost/categories/2/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 13:48:16) [GET]
+ Parameters: {"category_id"=>"1"}
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;36;1mPhoto Load (0.2ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Completed in 12ms (View: 4, DB: 0) | 200 OK [http://localhost/categories/1/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 13:48:16) [GET]
+ Parameters: {"category_id"=>"2"}
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '2') LIMIT 1[0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;36;1mPhoto Load (0.3ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 2 ) [0m
+Completed in 16ms (View: 7, DB: 1) | 200 OK [http://localhost/categories/2/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 13:48:18) [GET]
+ Parameters: {"category_id"=>"4"}
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '4') LIMIT 1[0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;36;1mPhoto Load (0.2ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 4 ) [0m
+Completed in 14ms (View: 4, DB: 0) | 200 OK [http://localhost/categories/4/photos]
+
+
+Processing ApplicationController#index (for 127.0.0.1 at 2010-10-08 13:49:03) [GET]
+
+ActionController::RoutingError (No route matches "/admin" with {:method=>:get}):
+
+
+Rendering rescues/layout (not_found)
+
+
+Processing ApplicationController#index (for 127.0.0.1 at 2010-10-08 13:49:04) [GET]
+
+ActionController::RoutingError (No route matches "/admin" with {:method=>:get}):
+
+
+Rendering rescues/layout (not_found)
+ [4;36;1mSQL (0.5ms)[0m [0;1m SELECT name
+ FROM sqlite_master
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
+[0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT version FROM schema_migrations[0m
+Migrating to CreateCategories (20101006095323)
+Migrating to CreatePhotos (20101006095457)
+Migrating to AddPhotoToCategory (20101008101157)
+Migrating to AddDetailsToPhoto (20101008103053)
+Migrating to AddColourToCategory (20101008105348)
+Migrating to AddSortOrders (20101008122736)
+Migrating to MoveToManyToMany (20101008172319)
+Migrating to CreateTypusUsers (20101008175640)
+ [4;36;1mSQL (0.1ms)[0m [0;1mselect sqlite_version(*)[0m
+ [4;35;1mSQL (0.5ms)[0m [0mCREATE TABLE "typus_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255) DEFAULT '' NOT NULL, "last_name" varchar(255) DEFAULT '' NOT NULL, "role" varchar(255) NOT NULL, "email" varchar(255) NOT NULL, "status" boolean DEFAULT 'f', "token" varchar(255) NOT NULL, "salt" varchar(255) NOT NULL, "crypted_password" varchar(255) NOT NULL, "preferences" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
+ [4;36;1mSQL (0.1ms)[0m [0;1mINSERT INTO schema_migrations (version) VALUES ('20101008175640')[0m
+ [4;35;1mSQL (0.6ms)[0m [0m SELECT name
+ FROM sqlite_master
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
+[0m
+ [4;36;1mSQL (0.5ms)[0m [0;1mSELECT version FROM schema_migrations[0m
+ [4;35;1mSQL (0.2ms)[0m [0m SELECT name
+ FROM sqlite_master
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
+[0m
+ [4;36;1mSQL (0.0ms)[0m [0;1mPRAGMA index_list("categories")[0m
+ [4;35;1mSQL (0.0ms)[0m [0mPRAGMA index_list("categories_photos")[0m
+ [4;36;1mSQL (0.1ms)[0m [0;1mPRAGMA index_list("photos")[0m
+ [4;35;1mSQL (0.1ms)[0m [0mPRAGMA index_list("typus_users")[0m
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 13:57:01) [GET]
+ [4;36;1mCategory Load (1.1ms)[0m [0;1mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering categories/index
+Completed in 53ms (View: 41, DB: 1) | 200 OK [http://localhost/categories]
+
+
+Processing TypusController#dashboard (for 127.0.0.1 at 2010-10-08 13:57:02) [GET]
+ Parameters: {"action"=>"dashboard", "controller"=>"typus"}
+Redirected to http://localhost:3000/admin/sign_in
+Filter chain halted as [:require_login] rendered_or_redirected.
+Completed in 9ms (DB: 0) | 302 Found [http://localhost/admin]
+
+
+Processing TypusController#sign_in (for 127.0.0.1 at 2010-10-08 13:57:03) [GET]
+ Parameters: {"action"=>"sign_in", "controller"=>"typus"}
+ [4;35;1mSQL (0.7ms)[0m [0mSELECT count(*) AS count_all FROM "typus_users" [0m
+Redirected to http://localhost:3000/admin/sign_up
+Completed in 6ms (DB: 1) | 302 Found [http://localhost/admin/sign_in]
+
+
+Processing TypusController#sign_up (for 127.0.0.1 at 2010-10-08 13:57:03) [GET]
+ Parameters: {"action"=>"sign_up", "controller"=>"typus"}
+ [4;36;1mSQL (0.5ms)[0m [0;1mSELECT count(*) AS count_all FROM "typus_users" [0m
+Rendering template within layouts/typus
+Rendering typus/sign_up
+Rendered admin/helpers/_flash_message (0.7ms)
+Rendered admin/shared/_footer (0.8ms)
+Completed in 39ms (View: 22, DB: 1) | 200 OK [http://localhost/admin/sign_up]
+
+
+Processing TypusController#sign_up (for 127.0.0.1 at 2010-10-08 13:57:08) [POST]
+ Parameters: {"typus_user"=>{"email"=>"danbee@gmail.com"}, "commit"=>"Sign up", "action"=>"sign_up", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "controller"=>"typus"}
+ [4;35;1mSQL (0.4ms)[0m [0mSELECT count(*) AS count_all FROM "typus_users" [0m
+ [4;36;1mTypusUser Load (0.1ms)[0m [0;1mSELECT "typus_users".id FROM "typus_users" WHERE ("typus_users"."email" = 'danbee@gmail.com') LIMIT 1[0m
+ [4;35;1mTypusUser Create (0.6ms)[0m [0mINSERT INTO "typus_users" ("salt", "created_at", "crypted_password", "token", "updated_at", "role", "preferences", "last_name", "status", "first_name", "email") VALUES('1008738aece694bfc08606cc2e63c5589f7d7d88', '2010-10-08 17:57:08', '1291b8154b8fc809c2660c8418913cd8d87f9aa0', '279d9ad7af3b', '2010-10-08 17:57:08', 'admin', '---
+:locale: en
+', '', 't', '', 'danbee@gmail.com')[0m
+Redirected to http://localhost:3000/admin
+Completed in 69ms (DB: 1) | 302 Found [http://localhost/admin/sign_up]
+
+
+Processing TypusController#dashboard (for 127.0.0.1 at 2010-10-08 13:57:08) [GET]
+ Parameters: {"action"=>"dashboard", "controller"=>"typus"}
+ [4;36;1mTypusUser Load (0.5ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+Rendering template within layouts/admin
+Rendering typus/dashboard
+Rendered admin/dashboard/_sidebar (1.0ms)
+Rendered admin/helpers/_applications (4.2ms)
+Rendered admin/helpers/_header (1.0ms)
+Rendered admin/helpers/_login_info (1.0ms)
+Rendered admin/helpers/_flash_message (0.1ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 140ms (View: 135, DB: 1) | 200 OK [http://localhost/admin]
+
+
+Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-08 13:57:16) [GET]
+ Parameters: {"action"=>"index", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.5ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mSQL (0.3ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/admin
+Rendering admin/resources/index
+Rendered admin/helpers/_list (0.7ms)
+Rendered admin/helpers/_search (1.2ms)
+ [4;35;1mPhoto Load (0.5ms)[0m [0mSELECT "photos".* FROM "photos" ORDER BY photos.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.5ms)
+Rendered admin/helpers/_header (0.2ms)
+Rendered admin/helpers/_login_info (0.5ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 143ms (View: 119, DB: 1) | 200 OK [http://localhost/admin/photos]
+
+
+Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 13:57:19) [GET]
+ Parameters: {"action"=>"edit", "id"=>"1", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.7ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mPhoto Load (0.3ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 1) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.6ms)
+Rendered admin/templates/_string (2.8ms)
+Rendered admin/templates/_string (0.9ms)
+Rendered admin/templates/_string (0.8ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_datetime (5.2ms)
+Rendered admin/templates/_string (1.1ms)
+Rendered admin/templates/_text (1.2ms)
+Rendered admin/templates/_string (0.7ms)
+Rendered admin/resources/_form (27.3ms)
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" [0m
+ [4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" [0m
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 1 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 1) [0m
+ [4;36;1mSQL (0.4ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 1 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 1) [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 1 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.1ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.4ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 149ms (View: 125, DB: 2) | 200 OK [http://localhost/admin/photos/edit/1]
+
+
+Processing Admin::TypusUsersController#index (for 127.0.0.1 at 2010-10-08 13:57:31) [GET]
+ Parameters: {"action"=>"index", "controller"=>"admin/typus_users"}
+ [4;35;1mTypusUser Load (0.5ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "typus_users" [0m
+Rendering template within layouts/admin
+Rendering admin/resources/index
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.5ms)
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_list (0.1ms)
+ [4;35;1mTypusUser Load (0.3ms)[0m [0mSELECT "typus_users".* FROM "typus_users" ORDER BY typus_users.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.1ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.3ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 33ms (View: 19, DB: 1) | 200 OK [http://localhost/admin/typus_users]
+
+
+Processing Admin::TypusUsersController#edit (for 127.0.0.1 at 2010-10-08 13:57:32) [GET]
+ Parameters: {"action"=>"edit", "id"=>"1", "controller"=>"admin/typus_users"}
+ [4;36;1mTypusUser Load (0.7ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.6ms)
+Rendered admin/templates/_string (0.7ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_selector (0.9ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_password (0.9ms)
+Rendered admin/templates/_password (0.4ms)
+Rendered admin/templates/_selector (0.5ms)
+Rendered admin/resources/_form (13.6ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.3ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 106ms (View: 88, DB: 1) | 200 OK [http://localhost/admin/typus_users/edit/1]
+
+
+Processing Admin::TypusUsersController#update (for 127.0.0.1 at 2010-10-08 13:57:46) [PUT]
+ Parameters: {"typus_user"=>{"password_confirmation"=>"[FILTERED]", "language"=>"en", "role"=>"admin", "last_name"=>"Barber", "password"=>"[FILTERED]", "email"=>"danbee@gmail.com", "first_name"=>"Dan"}, "commit"=>"Save Typus user", "action"=>"update", "_method"=>"put", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "id"=>"1", "controller"=>"admin/typus_users"}
+ [4;36;1mTypusUser Load (0.5ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mTypusUser Load (0.1ms)[0m [0;1mSELECT "typus_users".id FROM "typus_users" WHERE ("typus_users"."email" = 'danbee@gmail.com' AND "typus_users".id <> 1) LIMIT 1[0m
+ [4;35;1mTypusUser Update (0.3ms)[0m [0mUPDATE "typus_users" SET "updated_at" = '2010-10-08 17:57:46', "last_name" = 'Barber', "first_name" = 'Dan', "preferences" = '---
+:locale: en
+', "crypted_password" = 'dc1b7dd577a5504bed755ca0526026210e605239' WHERE "id" = 1[0m
+ [4;36;1mTypusUser Load (0.3ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+Redirected to http://localhost:3000/admin/typus_users/edit/1
+Completed in 21ms (DB: 1) | 302 Found [http://localhost/admin/typus_users/update/1]
+
+
+Processing Admin::TypusUsersController#edit (for 127.0.0.1 at 2010-10-08 13:57:46) [GET]
+ Parameters: {"action"=>"edit", "id"=>"1", "controller"=>"admin/typus_users"}
+ [4;35;1mTypusUser Load (0.5ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.5ms)
+Rendered admin/templates/_string (0.8ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_selector (0.3ms)
+Rendered admin/templates/_string (0.7ms)
+Rendered admin/templates/_password (0.4ms)
+Rendered admin/templates/_password (0.5ms)
+Rendered admin/templates/_selector (0.5ms)
+Rendered admin/resources/_form (7.8ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.3ms)
+Rendered admin/helpers/_flash_message (0.1ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 102ms (View: 84, DB: 1) | 200 OK [http://localhost/admin/typus_users/edit/1]
+
+
+Processing TypusController#dashboard (for 127.0.0.1 at 2010-10-08 13:57:51) [GET]
+ Parameters: {"action"=>"dashboard", "controller"=>"typus"}
+ [4;35;1mTypusUser Load (0.5ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+Rendering template within layouts/admin
+Rendering typus/dashboard
+Rendered admin/dashboard/_sidebar (0.2ms)
+Rendered admin/helpers/_applications (2.0ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.3ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 25ms (View: 21, DB: 0) | 200 OK [http://localhost/admin]
+
+
+Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-08 13:57:52) [GET]
+ Parameters: {"action"=>"index", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.5ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/admin
+Rendering admin/resources/index
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.4ms)
+ [4;36;1mPhoto Load (0.3ms)[0m [0;1mSELECT "photos".* FROM "photos" ORDER BY photos.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.1ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.3ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 96ms (View: 17, DB: 1) | 200 OK [http://localhost/admin/photos]
+
+
+Processing Admin::PhotosController#new (for 127.0.0.1 at 2010-10-08 13:57:54) [GET]
+ Parameters: {"action"=>"new", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.5ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/new
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/templates/_string (1.7ms)
+Rendered admin/templates/_string (0.7ms)
+Rendered admin/templates/_string (0.8ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_datetime (3.6ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_text (0.4ms)
+Rendered admin/templates/_string (0.5ms)
+Rendered admin/resources/_form (13.9ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.4ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 45ms (View: 27, DB: 1) | 200 OK [http://localhost/admin/photos/new]
+
+
+Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 13:58:24) [GET]
+ Parameters: {"action"=>"edit", "id"=>"1", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.5ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mPhoto Load (0.3ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 1) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.7ms)
+Rendered admin/templates/_string (2.3ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_datetime (3.9ms)
+Rendered admin/templates/_string (1.0ms)
+Rendered admin/templates/_text (0.5ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/resources/_form (16.3ms)
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" [0m
+ [4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 1 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 1) [0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 1 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 1) [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 1 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.1ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.5ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 63ms (View: 42, DB: 2) | 200 OK [http://localhost/admin/photos/edit/1]
+
+
+Processing PhotosController#new (for 127.0.0.1 at 2010-10-08 13:58:38) [GET]
+ [4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering photos/new
+Completed in 81ms (View: 70, DB: 0) | 200 OK [http://localhost/photos/new]
+
+
+Processing PhotosController#create (for 127.0.0.1 at 2010-10-08 13:58:52) [POST]
+ Parameters: {"photo"=>{"photo"=>#}, "commit"=>"Upload", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw="}
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1ioh8wk-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1ioh8wk-0.jpg[0]' -resize "x224" -crop "224x224+43+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1ioh8wk-020101008-80675-kfbepk-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1ioh8wk-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1ioh8wk-0.jpg[0]' -resize "x140" -crop "140x140+27+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1ioh8wk-020101008-80675-q4c2n2-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1ioh8wk-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1ioh8wk-0.jpg[0]' -resize "1024x1024>" '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1ioh8wk-020101008-80675-1dcmbyz-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1ioh8wk-020101008-80675-1dcmbyz-0[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1ioh8wk-020101008-80675-1dcmbyz-0[0]' -resize "x84" -crop "84x84+16+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1ioh8wk-020101008-80675-1dcmbyz-020101008-80675-rfuwpp-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1ioh8wk-020101008-80675-1dcmbyz-0[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1ioh8wk-020101008-80675-1dcmbyz-0[0]' -resize "x56" -crop "56x56+10+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1ioh8wk-020101008-80675-1dcmbyz-020101008-80675-b76t7q-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1ioh8wk-020101008-80675-1dcmbyz-0[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1ioh8wk-020101008-80675-1dcmbyz-0[0]' -resize "x308" -crop "308x308+60+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1ioh8wk-020101008-80675-1dcmbyz-020101008-80675-ljnryt-0' 2>/dev/null
+ [4;36;1mPhoto Create (1.5ms)[0m [0;1mINSERT INTO "photos" ("photo_file_size", "created_at", "title", "flickr_url", "photo_file_name", "updated_at", "photo_content_type", "photo_updated_at", "description", "sort") VALUES(362111, '2010-10-08 17:58:55', NULL, NULL, 'Bell Tower.jpg', '2010-10-08 17:58:55', 'image/jpeg', '2010-10-08 17:58:52', 'Church of Ireland bell tower, Tourmakeady, Co. Mayo.', NULL)[0m
+[paperclip] Saving attachments.
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/2/size8/Bell Tower.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/2/size5/Bell Tower.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/2/size3/Bell Tower.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/2/original/Bell Tower.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/2/size2/Bell Tower.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/2/size11/Bell Tower.jpg
+Redirected to http://localhost:3000/photos/2
+Completed in 3018ms (DB: 1) | 302 Found [http://localhost/photos]
+
+
+Processing PhotosController#show (for 127.0.0.1 at 2010-10-08 13:58:55) [GET]
+ Parameters: {"id"=>"2"}
+ [4;35;1mPhoto Load (0.2ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 2) [0m
+Rendering template within layouts/photos
+Rendering photos/show
+Completed in 23ms (View: 14, DB: 0) | 200 OK [http://localhost/photos/2]
+
+
+Processing TypusController#dashboard (for 127.0.0.1 at 2010-10-08 13:58:57) [GET]
+ Parameters: {"action"=>"dashboard", "controller"=>"typus"}
+ [4;36;1mTypusUser Load (0.5ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+Rendering template within layouts/admin
+Rendering typus/dashboard
+Rendered admin/dashboard/_sidebar (0.2ms)
+Rendered admin/helpers/_applications (2.2ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.4ms)
+Rendered admin/helpers/_flash_message (0.1ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 31ms (View: 25, DB: 1) | 200 OK [http://localhost/admin]
+
+
+Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-08 13:58:58) [GET]
+ Parameters: {"action"=>"index", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.5ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/admin
+Rendering admin/resources/index
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.4ms)
+ [4;35;1mPhoto Load (0.4ms)[0m [0mSELECT "photos".* FROM "photos" ORDER BY photos.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.1ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.3ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 41ms (View: 20, DB: 1) | 200 OK [http://localhost/admin/photos]
+
+
+Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 13:59:02) [GET]
+ Parameters: {"action"=>"edit", "id"=>"2", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.5ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mPhoto Load (0.2ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 2) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.5ms)
+Rendered admin/templates/_string (1.8ms)
+Rendered admin/templates/_string (0.7ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_datetime (3.5ms)
+Rendered admin/templates/_string (0.7ms)
+Rendered admin/templates/_text (0.4ms)
+Rendered admin/templates/_string (55.4ms)
+Rendered admin/resources/_form (68.1ms)
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" [0m
+ [4;35;1mCategory Load (0.6ms)[0m [0mSELECT * FROM "categories" [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 2 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 2) [0m
+ [4;36;1mSQL (0.4ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 2 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 2) [0m
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 2 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.4ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 115ms (View: 92, DB: 2) | 200 OK [http://localhost/admin/photos/edit/2]
+
+
+Processing Admin::PhotosController#relate (for 127.0.0.1 at 2010-10-08 13:59:05) [POST]
+ Parameters: {"commit"=>"Add", "related"=>{"model"=>"Category", "relation"=>"categories", "id"=>"3"}, "action"=>"relate", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "id"=>"2", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.5ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mPhoto Load (0.3ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 2) [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = 3) [0m
+ [4;36;1mSQL (0.3ms)[0m [0;1mINSERT INTO "categories_photos" ("category_id", "photo_id") VALUES (3, 2)[0m
+Redirected to http://localhost:3000/admin/photos/edit/2
+Completed in 57ms (DB: 1) | 302 Found [http://localhost/admin/photos/relate/2]
+
+
+Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 13:59:05) [GET]
+ Parameters: {"action"=>"edit", "id"=>"2", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.5ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mPhoto Load (0.3ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 2) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.5ms)
+Rendered admin/templates/_string (2.0ms)
+Rendered admin/templates/_string (62.2ms)
+Rendered admin/templates/_string (0.7ms)
+Rendered admin/templates/_string (0.7ms)
+Rendered admin/templates/_datetime (3.9ms)
+Rendered admin/templates/_string (0.7ms)
+Rendered admin/templates/_text (0.4ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/resources/_form (76.9ms)
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "categories" [0m
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" [0m
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 2 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 2) [0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 2 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 2) [0m
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 2 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.1ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.5ms)
+Rendered admin/helpers/_flash_message (0.1ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 125ms (View: 102, DB: 2) | 200 OK [http://localhost/admin/photos/edit/2]
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 13:59:11) [GET]
+ [4;36;1mCategory Load (0.6ms)[0m [0;1mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering categories/index
+Completed in 10ms (View: 4, DB: 1) | 200 OK [http://localhost/categories]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 13:59:14) [GET]
+ Parameters: {"category_id"=>"3"}
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '3') LIMIT 1[0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;36;1mPhoto Load (0.3ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 3 ) [0m
+Completed in 21ms (View: 10, DB: 0) | 200 OK [http://localhost/categories/3/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 13:59:39) [GET]
+ Parameters: {"category_id"=>"1"}
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;36;1mPhoto Load (0.2ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Completed in 68ms (View: 4, DB: 0) | 200 OK [http://localhost/categories/1/photos]
+
+
+Processing TypusController#dashboard (for 127.0.0.1 at 2010-10-08 13:59:44) [GET]
+ Parameters: {"action"=>"dashboard", "controller"=>"typus"}
+ [4;35;1mTypusUser Load (1.0ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+Rendering template within layouts/admin
+Rendering typus/dashboard
+Rendered admin/dashboard/_sidebar (0.2ms)
+Rendered admin/helpers/_applications (2.1ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.4ms)
+Rendered admin/shared/_footer (0.3ms)
+Completed in 30ms (View: 23, DB: 1) | 200 OK [http://localhost/admin]
+
+
+Processing PhotosController#show (for 127.0.0.1 at 2010-10-08 14:00:33) [GET]
+ Parameters: {"id"=>"net"}
+ [4;36;1mPhoto Load (0.1ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 0) [0m
+
+ActiveRecord::RecordNotFound (Couldn't find Photo with ID=net):
+ app/controllers/photos_controller.rb:27:in `show'
+
+Rendered rescues/_trace (80.1ms)
+Rendered rescues/_request_and_response (0.9ms)
+Rendering rescues/layout (not_found)
+
+
+Processing PhotosController#new (for 127.0.0.1 at 2010-10-08 14:00:39) [GET]
+ [4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering photos/new
+Completed in 25ms (View: 13, DB: 0) | 200 OK [http://localhost/photos/new]
+
+
+Processing PhotosController#create (for 127.0.0.1 at 2010-10-08 14:00:58) [POST]
+ Parameters: {"photo"=>{"photo"=>#}, "commit"=>"Upload", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw="}
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-ctuqdx-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-ctuqdx-0.jpg[0]' -resize "x224" -crop "224x224+73+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-ctuqdx-020101008-80675-wnv00y-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-ctuqdx-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-ctuqdx-0.jpg[0]' -resize "x140" -crop "140x140+45+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-ctuqdx-020101008-80675-l8ema4-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-ctuqdx-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-ctuqdx-0.jpg[0]' -resize "1024x1024>" '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-ctuqdx-020101008-80675-gwigzu-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-ctuqdx-020101008-80675-gwigzu-0[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-ctuqdx-020101008-80675-gwigzu-0[0]' -resize "x84" -crop "84x84+27+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-ctuqdx-020101008-80675-gwigzu-020101008-80675-fwyl31-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-ctuqdx-020101008-80675-gwigzu-0[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-ctuqdx-020101008-80675-gwigzu-0[0]' -resize "x56" -crop "56x56+18+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-ctuqdx-020101008-80675-gwigzu-020101008-80675-xim15h-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-ctuqdx-020101008-80675-gwigzu-0[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-ctuqdx-020101008-80675-gwigzu-0[0]' -resize "x308" -crop "308x308+100+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-ctuqdx-020101008-80675-gwigzu-020101008-80675-4w1xn4-0' 2>/dev/null
+ [4;36;1mPhoto Create (0.5ms)[0m [0;1mINSERT INTO "photos" ("photo_file_size", "created_at", "title", "flickr_url", "photo_file_name", "updated_at", "photo_content_type", "photo_updated_at", "description", "sort") VALUES(212862, '2010-10-08 18:01:00', NULL, NULL, 'Cross.jpg', '2010-10-08 18:01:00', 'image/jpeg', '2010-10-08 18:00:58', 'The Famine Memorial at Lough Doolough.
+
+"How can men feel themselves honoured by the humiliation of their fellow beings?"', NULL)[0m
+[paperclip] Saving attachments.
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/3/size8/Cross.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/3/size5/Cross.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/3/size3/Cross.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/3/original/Cross.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/3/size2/Cross.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/3/size11/Cross.jpg
+Redirected to http://localhost:3000/photos/3
+Completed in 1947ms (DB: 1) | 302 Found [http://localhost/photos]
+
+
+Processing PhotosController#show (for 127.0.0.1 at 2010-10-08 14:01:00) [GET]
+ Parameters: {"id"=>"3"}
+ [4;35;1mPhoto Load (0.5ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 3) [0m
+Rendering template within layouts/photos
+Rendering photos/show
+Completed in 19ms (View: 8, DB: 1) | 200 OK [http://localhost/photos/3]
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 14:01:06) [GET]
+ [4;36;1mCategory Load (1.0ms)[0m [0;1mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering categories/index
+Completed in 16ms (View: 7, DB: 1) | 200 OK [http://localhost/categories]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 14:01:08) [GET]
+ Parameters: {"category_id"=>"1"}
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;36;1mPhoto Load (0.2ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Completed in 14ms (View: 4, DB: 0) | 200 OK [http://localhost/categories/1/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 14:01:09) [GET]
+ Parameters: {"category_id"=>"4"}
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '4') LIMIT 1[0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;36;1mPhoto Load (0.2ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 4 ) [0m
+Completed in 13ms (View: 4, DB: 0) | 200 OK [http://localhost/categories/4/photos]
+
+
+Processing TypusController#dashboard (for 127.0.0.1 at 2010-10-08 14:01:12) [GET]
+ Parameters: {"action"=>"dashboard", "controller"=>"typus"}
+ [4;35;1mTypusUser Load (0.5ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+Rendering template within layouts/admin
+Rendering typus/dashboard
+Rendered admin/dashboard/_sidebar (0.3ms)
+Rendered admin/helpers/_applications (2.2ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.5ms)
+Rendered admin/helpers/_flash_message (0.1ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 33ms (View: 27, DB: 1) | 200 OK [http://localhost/admin]
+
+
+Processing Admin::CategoriesController#index (for 127.0.0.1 at 2010-10-08 14:01:15) [GET]
+ Parameters: {"action"=>"index", "controller"=>"admin/categories"}
+ [4;36;1mTypusUser Load (0.5ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "categories" [0m
+Rendering template within layouts/admin
+Rendering admin/resources/index
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.5ms)
+ [4;36;1mCategory Load (0.6ms)[0m [0;1mSELECT "categories".* FROM "categories" ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.1ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.4ms)
+Rendered admin/shared/_footer (0.4ms)
+Completed in 101ms (View: 81, DB: 1) | 200 OK [http://localhost/admin/categories]
+
+
+Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-08 14:01:18) [GET]
+ Parameters: {"action"=>"index", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.5ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/admin
+Rendering admin/resources/index
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.5ms)
+ [4;35;1mPhoto Load (0.4ms)[0m [0mSELECT "photos".* FROM "photos" ORDER BY photos.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.1ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.3ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 42ms (View: 22, DB: 1) | 200 OK [http://localhost/admin/photos]
+
+
+Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 14:01:20) [GET]
+ Parameters: {"action"=>"edit", "id"=>"3", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.5ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mPhoto Load (0.3ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 3) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.5ms)
+Rendered admin/templates/_string (2.0ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_string (0.7ms)
+Rendered admin/templates/_datetime (3.4ms)
+Rendered admin/templates/_string (0.5ms)
+Rendered admin/templates/_text (0.7ms)
+Rendered admin/templates/_string (0.7ms)
+Rendered admin/resources/_form (13.6ms)
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" [0m
+ [4;36;1mCategory Load (0.1ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 3 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 3) [0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 3 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 3) [0m
+ [4;36;1mCategory Load (0.1ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 3 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.3ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 110ms (View: 33, DB: 2) | 200 OK [http://localhost/admin/photos/edit/3]
+
+
+Processing Admin::PhotosController#relate (for 127.0.0.1 at 2010-10-08 14:01:27) [POST]
+ Parameters: {"commit"=>"Add", "related"=>{"model"=>"Category", "relation"=>"categories", "id"=>"4"}, "action"=>"relate", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "id"=>"3", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.5ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mPhoto Load (0.2ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 3) [0m
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = 4) [0m
+ [4;36;1mSQL (0.3ms)[0m [0;1mINSERT INTO "categories_photos" ("category_id", "photo_id") VALUES (4, 3)[0m
+Redirected to http://localhost:3000/admin/photos/edit/3
+Completed in 28ms (DB: 1) | 302 Found [http://localhost/admin/photos/relate/3]
+
+
+Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 14:01:27) [GET]
+ Parameters: {"action"=>"edit", "id"=>"3", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.5ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mPhoto Load (0.3ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 3) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.5ms)
+Rendered admin/templates/_string (2.0ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_string (0.8ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_datetime (3.8ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_text (0.4ms)
+Rendered admin/templates/_string (0.5ms)
+Rendered admin/resources/_form (13.8ms)
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "categories" [0m
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" [0m
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 3 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 3) [0m
+ [4;35;1mSQL (0.3ms)[0m [0mSELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 3 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 3) [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 3 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.1ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.3ms)
+Rendered admin/helpers/_flash_message (0.1ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 61ms (View: 37, DB: 2) | 200 OK [http://localhost/admin/photos/edit/3]
+
+
+Processing Admin::PhotosController#relate (for 127.0.0.1 at 2010-10-08 14:01:30) [POST]
+ Parameters: {"commit"=>"Add", "related"=>{"model"=>"Category", "relation"=>"categories", "id"=>"1"}, "action"=>"relate", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "id"=>"3", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.5ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mPhoto Load (0.3ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 3) [0m
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = 1) [0m
+ [4;35;1mSQL (0.3ms)[0m [0mINSERT INTO "categories_photos" ("category_id", "photo_id") VALUES (1, 3)[0m
+Redirected to http://localhost:3000/admin/photos/edit/3
+Completed in 26ms (DB: 1) | 302 Found [http://localhost/admin/photos/relate/3]
+
+
+Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 14:01:30) [GET]
+ Parameters: {"action"=>"edit", "id"=>"3", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.5ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mPhoto Load (0.4ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 3) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.4ms)
+Rendered admin/templates/_string (1.9ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_string (0.7ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_datetime (3.6ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_text (0.4ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/resources/_form (13.3ms)
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 3 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 3) [0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 3 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 3) [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 3 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.1ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.3ms)
+Rendered admin/helpers/_flash_message (0.1ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 58ms (View: 36, DB: 2) | 200 OK [http://localhost/admin/photos/edit/3]
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 14:01:35) [GET]
+ [4;35;1mCategory Load (0.7ms)[0m [0mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering categories/index
+Completed in 11ms (View: 4, DB: 1) | 200 OK [http://localhost/categories]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 14:01:36) [GET]
+ Parameters: {"category_id"=>"1"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;35;1mPhoto Load (0.3ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Completed in 15ms (View: 6, DB: 0) | 200 OK [http://localhost/categories/1/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 14:01:40) [GET]
+ Parameters: {"category_id"=>"4"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '4') LIMIT 1[0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;35;1mPhoto Load (0.3ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 4 ) [0m
+Completed in 15ms (View: 6, DB: 0) | 200 OK [http://localhost/categories/4/photos]
+
+
+Processing TypusController#dashboard (for 127.0.0.1 at 2010-10-08 14:01:58) [GET]
+ Parameters: {"action"=>"dashboard", "controller"=>"typus"}
+ [4;36;1mTypusUser Load (0.7ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+Rendering template within layouts/admin
+Rendering typus/dashboard
+Rendered admin/dashboard/_sidebar (0.2ms)
+Rendered admin/helpers/_applications (2.1ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.3ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 31ms (View: 24, DB: 1) | 200 OK [http://localhost/admin]
+
+
+Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-08 14:02:00) [GET]
+ Parameters: {"action"=>"index", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.5ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/admin
+Rendering admin/resources/index
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.4ms)
+ [4;35;1mPhoto Load (0.4ms)[0m [0mSELECT "photos".* FROM "photos" ORDER BY photos.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.1ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.3ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 40ms (View: 20, DB: 1) | 200 OK [http://localhost/admin/photos]
+
+
+Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-08 14:03:16) [GET]
+ Parameters: {"action"=>"index", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.5ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/admin
+Rendering admin/resources/index
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.4ms)
+ [4;36;1mPhoto Load (0.4ms)[0m [0;1mSELECT "photos".* FROM "photos" ORDER BY photos.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.2ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.3ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 97ms (View: 78, DB: 1) | 200 OK [http://localhost/admin/photos]
+
+
+Processing Admin::PhotosController#new (for 127.0.0.1 at 2010-10-08 14:03:18) [GET]
+ Parameters: {"action"=>"new", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.6ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/new
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/templates/_file (2.2ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_string (0.5ms)
+Rendered admin/templates/_text (0.4ms)
+Rendered admin/templates/_string (0.5ms)
+Rendered admin/resources/_form (10.0ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.3ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 38ms (View: 19, DB: 1) | 200 OK [http://localhost/admin/photos/new]
+
+
+Processing Admin::PhotosController#create (for 127.0.0.1 at 2010-10-08 14:03:42) [POST]
+ Parameters: {"photo"=>{"photo"=>#, "title"=>"Emerald Panarama", "flickr_url"=>"", "sort"=>"", "description"=>""}, "commit"=>"Create Photo", "action"=>"create", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.7ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1h5yz7n-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1h5yz7n-0.jpg[0]' -resize "x224" -crop "224x224+125+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1h5yz7n-020101008-80675-wdd4hg-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1h5yz7n-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1h5yz7n-0.jpg[0]' -resize "x140" -crop "140x140+78+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1h5yz7n-020101008-80675-1y78s0v-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1h5yz7n-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1h5yz7n-0.jpg[0]' -resize "1024x1024>" '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1h5yz7n-020101008-80675-1fc374j-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1h5yz7n-020101008-80675-1fc374j-0[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1h5yz7n-020101008-80675-1fc374j-0[0]' -resize "x84" -crop "84x84+46+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1h5yz7n-020101008-80675-1fc374j-020101008-80675-1hwxu0w-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1h5yz7n-020101008-80675-1fc374j-0[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1h5yz7n-020101008-80675-1fc374j-0[0]' -resize "x56" -crop "56x56+31+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1h5yz7n-020101008-80675-1fc374j-020101008-80675-2lzo4h-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1h5yz7n-020101008-80675-1fc374j-0[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1h5yz7n-020101008-80675-1fc374j-0[0]' -resize "x308" -crop "308x308+171+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1h5yz7n-020101008-80675-1fc374j-020101008-80675-o1k2i3-0' 2>/dev/null
+ [4;35;1mPhoto Create (0.5ms)[0m [0mINSERT INTO "photos" ("photo_file_size", "created_at", "title", "flickr_url", "photo_file_name", "updated_at", "photo_content_type", "photo_updated_at", "description", "sort") VALUES(321666, '2010-10-08 18:03:46', 'Emerald Panarama', '', 'Emerald Panarama.jpg', '2010-10-08 18:03:46', 'image/jpeg', '2010-10-08 18:03:42', '', NULL)[0m
+[paperclip] Saving attachments.
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/4/size8/Emerald Panarama.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/4/size5/Emerald Panarama.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/4/size3/Emerald Panarama.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/4/original/Emerald Panarama.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/4/size2/Emerald Panarama.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/4/size11/Emerald Panarama.jpg
+Redirected to http://localhost:3000/admin/photos/edit/4
+Completed in 4841ms (DB: 1) | 302 Found [http://localhost/admin/photos/create]
+
+
+Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 14:03:47) [GET]
+ Parameters: {"action"=>"edit", "id"=>"4", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.5ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mPhoto Load (0.4ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 4) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.9ms)
+Rendered admin/helpers/_preview (1.0ms)
+Rendered admin/templates/_file (10.2ms)
+Rendered admin/templates/_string (0.8ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_text (0.5ms)
+Rendered admin/templates/_string (0.5ms)
+Rendered admin/resources/_form (17.4ms)
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" [0m
+ [4;36;1mCategory Load (0.1ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 4 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 4) [0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 4 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 4) [0m
+ [4;36;1mCategory Load (0.1ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 4 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.7ms)
+Rendered admin/helpers/_flash_message (0.1ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 68ms (View: 41, DB: 2) | 200 OK [http://localhost/admin/photos/edit/4]
+
+
+Processing Admin::PhotosController#show (for 127.0.0.1 at 2010-10-08 14:03:49) [GET]
+ Parameters: {"action"=>"show", "id"=>"4", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.5ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mPhoto Load (0.3ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 4) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/show
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.5ms)
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "categories" [0m
+ [4;36;1mCategory Load (0.5ms)[0m [0;1mSELECT * FROM "categories" [0m
+ [4;35;1mCategory Load (0.1ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 4 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 4) [0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 4 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 4) [0m
+ [4;35;1mCategory Load (0.1ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 4 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.3ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 107ms (View: 25, DB: 2) | 200 OK [http://localhost/admin/photos/show/4]
+
+
+Processing Admin::PhotosController#relate (for 127.0.0.1 at 2010-10-08 14:03:56) [POST]
+ Parameters: {"commit"=>"Add", "related"=>{"model"=>"Category", "relation"=>"categories", "id"=>"1"}, "action"=>"relate", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "id"=>"4", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.5ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mPhoto Load (0.3ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 4) [0m
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = 1) [0m
+ [4;35;1mSQL (0.2ms)[0m [0mINSERT INTO "categories_photos" ("category_id", "photo_id") VALUES (1, 4)[0m
+Redirected to http://localhost:3000/admin/photos/show/4
+Completed in 29ms (DB: 1) | 302 Found [http://localhost/admin/photos/relate/4]
+
+
+Processing Admin::PhotosController#show (for 127.0.0.1 at 2010-10-08 14:03:56) [GET]
+ Parameters: {"action"=>"show", "id"=>"4", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.5ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mPhoto Load (0.2ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 4) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/show
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.6ms)
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" [0m
+ [4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" [0m
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 4 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 4) [0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 4 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 4) [0m
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 4 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.1ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.3ms)
+Rendered admin/helpers/_flash_message (0.1ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 108ms (View: 23, DB: 2) | 200 OK [http://localhost/admin/photos/show/4]
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 14:04:01) [GET]
+ [4;35;1mCategory Load (0.8ms)[0m [0mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering categories/index
+Completed in 11ms (View: 5, DB: 1) | 200 OK [http://localhost/categories]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 14:04:02) [GET]
+ Parameters: {"category_id"=>"1"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;35;1mPhoto Load (0.4ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Completed in 99ms (View: 89, DB: 1) | 200 OK [http://localhost/categories/1/photos]
+
+
+Processing TypusController#dashboard (for 127.0.0.1 at 2010-10-08 14:04:08) [GET]
+ Parameters: {"action"=>"dashboard", "controller"=>"typus"}
+ [4;36;1mTypusUser Load (0.5ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+Rendering template within layouts/admin
+Rendering typus/dashboard
+Rendered admin/dashboard/_sidebar (0.2ms)
+Rendered admin/helpers/_applications (2.1ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.3ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 26ms (View: 21, DB: 0) | 200 OK [http://localhost/admin]
+
+
+Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-08 14:04:09) [GET]
+ Parameters: {"action"=>"index", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.5ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/admin
+Rendering admin/resources/index
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.4ms)
+ [4;35;1mPhoto Load (0.5ms)[0m [0mSELECT "photos".* FROM "photos" ORDER BY photos.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.1ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.3ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 42ms (View: 22, DB: 1) | 200 OK [http://localhost/admin/photos]
+
+
+Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 14:04:14) [GET]
+ Parameters: {"action"=>"edit", "id"=>"3", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.5ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mPhoto Load (0.3ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 3) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.4ms)
+Rendered admin/helpers/_preview (0.2ms)
+Rendered admin/templates/_file (4.2ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_text (0.4ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/resources/_form (9.8ms)
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 3 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 3) [0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 3 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 3) [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 3 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.1ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.3ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 53ms (View: 32, DB: 2) | 200 OK [http://localhost/admin/photos/edit/3]
+
+
+Processing Admin::PhotosController#update (for 127.0.0.1 at 2010-10-08 14:04:19) [PUT]
+ Parameters: {"photo"=>{"title"=>"Cross", "flickr_url"=>"", "sort"=>"", "description"=>"How can men feel themselves honoured by the humiliation of their fellow beings?"}, "commit"=>"Save Photo", "action"=>"update", "_method"=>"put", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "id"=>"3", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.6ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mPhoto Load (0.3ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 3) [0m
+ [4;35;1mPhoto Update (0.3ms)[0m [0mUPDATE "photos" SET "updated_at" = '2010-10-08 18:04:19', "title" = 'Cross', "flickr_url" = '', "description" = 'How can men feel themselves honoured by the humiliation of their fellow beings?' WHERE "id" = 3[0m
+[paperclip] Saving attachments.
+Redirected to http://localhost:3000/admin/photos/edit/3
+Completed in 24ms (DB: 1) | 302 Found [http://localhost/admin/photos/update/3]
+
+
+Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 14:04:19) [GET]
+ Parameters: {"action"=>"edit", "id"=>"3", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.7ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mPhoto Load (0.3ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 3) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.8ms)
+Rendered admin/helpers/_preview (0.2ms)
+Rendered admin/templates/_file (4.3ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_text (0.4ms)
+Rendered admin/templates/_string (0.5ms)
+Rendered admin/resources/_form (10.1ms)
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" [0m
+ [4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 3 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 3) [0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 3 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 3) [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 3 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.1ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.3ms)
+Rendered admin/helpers/_flash_message (0.1ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 58ms (View: 35, DB: 2) | 200 OK [http://localhost/admin/photos/edit/3]
+
+
+Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-08 14:04:23) [GET]
+ Parameters: {"action"=>"index", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.5ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/admin
+Rendering admin/resources/index
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.5ms)
+ [4;35;1mPhoto Load (0.5ms)[0m [0mSELECT "photos".* FROM "photos" ORDER BY photos.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.1ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.3ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 97ms (View: 21, DB: 1) | 200 OK [http://localhost/admin/photos]
+
+
+Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 14:04:26) [GET]
+ Parameters: {"action"=>"edit", "id"=>"2", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.5ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mPhoto Load (0.3ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 2) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.4ms)
+Rendered admin/helpers/_preview (0.2ms)
+Rendered admin/templates/_file (4.7ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_string (0.5ms)
+Rendered admin/templates/_text (0.4ms)
+Rendered admin/templates/_string (0.5ms)
+Rendered admin/resources/_form (10.1ms)
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" [0m
+ [4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" [0m
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 2 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 2) [0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 2 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 2) [0m
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 2 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.1ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.3ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 54ms (View: 31, DB: 2) | 200 OK [http://localhost/admin/photos/edit/2]
+
+
+Processing Admin::PhotosController#update (for 127.0.0.1 at 2010-10-08 14:04:30) [PUT]
+ Parameters: {"photo"=>{"title"=>"Bell Tower", "flickr_url"=>"", "sort"=>"", "description"=>"Church of Ireland bell tower, Tourmakeady, Co. Mayo."}, "commit"=>"Save Photo", "action"=>"update", "_method"=>"put", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "id"=>"2", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.5ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mPhoto Load (0.3ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 2) [0m
+ [4;35;1mPhoto Update (0.3ms)[0m [0mUPDATE "photos" SET "updated_at" = '2010-10-08 18:04:30', "title" = 'Bell Tower', "flickr_url" = '' WHERE "id" = 2[0m
+[paperclip] Saving attachments.
+Redirected to http://localhost:3000/admin/photos/edit/2
+Completed in 25ms (DB: 1) | 302 Found [http://localhost/admin/photos/update/2]
+
+
+Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 14:04:30) [GET]
+ Parameters: {"action"=>"edit", "id"=>"2", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.5ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mPhoto Load (0.3ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 2) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.9ms)
+Rendered admin/helpers/_preview (0.2ms)
+Rendered admin/templates/_file (5.2ms)
+Rendered admin/templates/_string (0.7ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_text (0.4ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/resources/_form (11.9ms)
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" [0m
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 2 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 2) [0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 2 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 2) [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 2 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.1ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.4ms)
+Rendered admin/helpers/_flash_message (0.1ms)
+Rendered admin/shared/_footer (0.3ms)
+Completed in 123ms (View: 97, DB: 2) | 200 OK [http://localhost/admin/photos/edit/2]
+
+
+Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-08 14:04:32) [GET]
+ Parameters: {"action"=>"index", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.5ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/admin
+Rendering admin/resources/index
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.5ms)
+ [4;35;1mPhoto Load (0.4ms)[0m [0mSELECT "photos".* FROM "photos" ORDER BY photos.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.1ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.4ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 42ms (View: 22, DB: 1) | 200 OK [http://localhost/admin/photos]
+
+
+Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 14:04:34) [GET]
+ Parameters: {"action"=>"edit", "id"=>"1", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.5ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mPhoto Load (0.2ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 1) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.5ms)
+Rendered admin/helpers/_preview (0.2ms)
+Rendered admin/templates/_file (4.5ms)
+Rendered admin/templates/_string (0.7ms)
+Rendered admin/templates/_string (0.5ms)
+Rendered admin/templates/_text (0.4ms)
+Rendered admin/templates/_string (0.5ms)
+Rendered admin/resources/_form (10.2ms)
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" [0m
+ [4;35;1mCategory Load (0.5ms)[0m [0mSELECT * FROM "categories" [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 1 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 1) [0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 1 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 1) [0m
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 1 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.1ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.6ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 114ms (View: 93, DB: 2) | 200 OK [http://localhost/admin/photos/edit/1]
+
+
+Processing Admin::PhotosController#update (for 127.0.0.1 at 2010-10-08 14:04:38) [PUT]
+ Parameters: {"photo"=>{"title"=>"Buttercup", "flickr_url"=>"", "sort"=>"", "description"=>""}, "commit"=>"Save Photo", "action"=>"update", "_method"=>"put", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "id"=>"1", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.5ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mPhoto Load (0.4ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 1) [0m
+ [4;35;1mPhoto Update (0.4ms)[0m [0mUPDATE "photos" SET "updated_at" = '2010-10-08 18:04:38', "title" = 'Buttercup', "flickr_url" = '', "description" = '' WHERE "id" = 1[0m
+[paperclip] Saving attachments.
+Redirected to http://localhost:3000/admin/photos/edit/1
+Completed in 31ms (DB: 1) | 302 Found [http://localhost/admin/photos/update/1]
+
+
+Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 14:04:38) [GET]
+ Parameters: {"action"=>"edit", "id"=>"1", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.6ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mPhoto Load (0.5ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 1) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.6ms)
+Rendered admin/helpers/_preview (0.2ms)
+Rendered admin/templates/_file (4.9ms)
+Rendered admin/templates/_string (0.7ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_text (0.4ms)
+Rendered admin/templates/_string (0.7ms)
+Rendered admin/resources/_form (12.0ms)
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" [0m
+ [4;35;1mCategory Load (0.6ms)[0m [0mSELECT * FROM "categories" [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 1 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 1) [0m
+ [4;36;1mSQL (0.3ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 1 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 1) [0m
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 1 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.2ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.5ms)
+Rendered admin/helpers/_flash_message (0.1ms)
+Rendered admin/shared/_footer (0.3ms)
+Completed in 131ms (View: 43, DB: 3) | 200 OK [http://localhost/admin/photos/edit/1]
+
+
+Processing TypusController#dashboard (for 127.0.0.1 at 2010-10-08 14:04:41) [GET]
+ Parameters: {"action"=>"dashboard", "controller"=>"typus"}
+ [4;35;1mTypusUser Load (0.5ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+Rendering template within layouts/admin
+Rendering typus/dashboard
+Rendered admin/dashboard/_sidebar (0.2ms)
+Rendered admin/helpers/_applications (2.2ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.3ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 25ms (View: 20, DB: 1) | 200 OK [http://localhost/admin]
+
+
+Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-08 14:04:43) [GET]
+ Parameters: {"action"=>"index", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.5ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/admin
+Rendering admin/resources/index
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.4ms)
+ [4;36;1mPhoto Load (0.5ms)[0m [0;1mSELECT "photos".* FROM "photos" ORDER BY photos.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.1ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.3ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 105ms (View: 24, DB: 1) | 200 OK [http://localhost/admin/photos]
+
+
+Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-08 14:04:59) [GET]
+ Parameters: {"action"=>"index", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.5ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/admin
+Rendering admin/resources/index
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.4ms)
+ [4;35;1mPhoto Load (0.5ms)[0m [0mSELECT "photos".* FROM "photos" ORDER BY photos.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.1ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.3ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 43ms (View: 22, DB: 1) | 200 OK [http://localhost/admin/photos]
+
+
+Processing TypusController#dashboard (for 127.0.0.1 at 2010-10-08 14:05:00) [GET]
+ Parameters: {"action"=>"dashboard", "controller"=>"typus"}
+ [4;36;1mTypusUser Load (0.5ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+Rendering template within layouts/admin
+Rendering typus/dashboard
+Rendered admin/dashboard/_sidebar (0.2ms)
+Rendered admin/helpers/_applications (2.0ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.3ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 26ms (View: 21, DB: 1) | 200 OK [http://localhost/admin]
+
+
+Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-08 14:05:12) [GET]
+ Parameters: {"action"=>"index", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.5ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/admin
+Rendering admin/resources/index
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.4ms)
+ [4;35;1mPhoto Load (0.5ms)[0m [0mSELECT "photos".* FROM "photos" ORDER BY photos.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.1ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.3ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 43ms (View: 23, DB: 1) | 200 OK [http://localhost/admin/photos]
+
+
+Processing Admin::CategoriesController#index (for 127.0.0.1 at 2010-10-08 14:06:32) [GET]
+ Parameters: {"action"=>"index", "controller"=>"admin/categories"}
+ [4;36;1mTypusUser Load (0.5ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "categories" [0m
+Rendering template within layouts/admin
+Rendering admin/resources/index
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.5ms)
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT "categories".* FROM "categories" ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.1ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.3ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 39ms (View: 21, DB: 1) | 200 OK [http://localhost/admin/categories]
+
+
+Processing Admin::CategoriesController#new (for 127.0.0.1 at 2010-10-08 14:06:35) [GET]
+ Parameters: {"action"=>"new", "controller"=>"admin/categories"}
+ [4;35;1mTypusUser Load (0.6ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/new
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/templates/_string (1.7ms)
+Rendered admin/templates/_text (0.7ms)
+Rendered admin/templates/_string (1.1ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_string (1.1ms)
+Rendered admin/resources/_form (68.5ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.6ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 104ms (View: 82, DB: 1) | 200 OK [http://localhost/admin/categories/new]
+
+
+Processing Admin::CategoriesController#create (for 127.0.0.1 at 2010-10-08 14:06:55) [POST]
+ Parameters: {"category"=>{"name"=>"Abstract", "sort"=>"", "base_colour"=>"#00bf7e", "photo_id"=>"", "description"=>""}, "commit"=>"Create Category", "action"=>"create", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "controller"=>"admin/categories"}
+ [4;36;1mTypusUser Load (0.5ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mCategory Create (0.4ms)[0m [0mINSERT INTO "categories" ("name", "created_at", "updated_at", "description", "photo_id", "base_colour", "sort") VALUES('Abstract', '2010-10-08 18:06:55', '2010-10-08 18:06:55', '', NULL, '#00bf7e', NULL)[0m
+Redirected to http://localhost:3000/admin/categories/edit/6
+Completed in 21ms (DB: 1) | 302 Found [http://localhost/admin/categories/create]
+
+
+Processing Admin::CategoriesController#edit (for 127.0.0.1 at 2010-10-08 14:06:55) [GET]
+ Parameters: {"action"=>"edit", "id"=>"6", "controller"=>"admin/categories"}
+ [4;36;1mTypusUser Load (0.5ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = 6) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.8ms)
+Rendered admin/templates/_string (1.6ms)
+Rendered admin/templates/_text (0.7ms)
+Rendered admin/templates/_string (0.9ms)
+Rendered admin/templates/_string (0.8ms)
+Rendered admin/templates/_string (0.5ms)
+Rendered admin/resources/_form (9.6ms)
+ [4;36;1mSQL (0.3ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" [0m
+ [4;35;1mPhoto Load (0.7ms)[0m [0mSELECT * FROM "photos" [0m
+ [4;36;1mPhoto Load (0.2ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 6 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = 6) [0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 6 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = 6) [0m
+ [4;36;1mPhoto Load (0.1ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 6 ) ORDER BY photos.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.4ms)
+Rendered admin/helpers/_flash_message (0.1ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 118ms (View: 93, DB: 2) | 200 OK [http://localhost/admin/categories/edit/6]
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 14:07:01) [GET]
+ [4;35;1mCategory Load (1.3ms)[0m [0mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering categories/index
+Completed in 11ms (View: 5, DB: 1) | 200 OK [http://localhost/categories]
+
+
+Processing Admin::CategoriesController#update (for 127.0.0.1 at 2010-10-08 14:07:21) [PUT]
+ Parameters: {"category"=>{"name"=>"Abstract", "sort"=>"", "base_colour"=>"#00bfab", "photo_id"=>"", "description"=>""}, "commit"=>"Save Category", "action"=>"update", "_method"=>"put", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "id"=>"6", "controller"=>"admin/categories"}
+ [4;36;1mTypusUser Load (0.6ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = 6) [0m
+ [4;36;1mCategory Update (0.3ms)[0m [0;1mUPDATE "categories" SET "updated_at" = '2010-10-08 18:07:21', "base_colour" = '#00bfab' WHERE "id" = 6[0m
+Redirected to http://localhost:3000/admin/categories/edit/6
+Completed in 22ms (DB: 1) | 302 Found [http://localhost/admin/categories/update/6]
+
+
+Processing Admin::CategoriesController#edit (for 127.0.0.1 at 2010-10-08 14:07:21) [GET]
+ Parameters: {"action"=>"edit", "id"=>"6", "controller"=>"admin/categories"}
+ [4;35;1mTypusUser Load (0.7ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = 6) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.8ms)
+Rendered admin/templates/_string (1.9ms)
+Rendered admin/templates/_text (0.5ms)
+Rendered admin/templates/_string (0.7ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_string (0.5ms)
+Rendered admin/resources/_form (8.0ms)
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "photos" [0m
+ [4;36;1mPhoto Load (0.5ms)[0m [0;1mSELECT * FROM "photos" [0m
+ [4;35;1mPhoto Load (0.1ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 6 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = 6) [0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 6 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = 6) [0m
+ [4;35;1mPhoto Load (0.1ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 6 ) ORDER BY photos.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.5ms)
+Rendered admin/helpers/_flash_message (0.1ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 119ms (View: 33, DB: 2) | 200 OK [http://localhost/admin/categories/edit/6]
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 14:07:22) [GET]
+ [4;36;1mCategory Load (0.7ms)[0m [0;1mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering categories/index
+Completed in 9ms (View: 4, DB: 1) | 200 OK [http://localhost/categories]
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 14:07:42) [GET]
+ [4;35;1mCategory Load (0.7ms)[0m [0mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering categories/index
+Completed in 12ms (View: 7, DB: 1) | 200 OK [http://localhost/categories]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 14:07:44) [GET]
+ Parameters: {"category_id"=>"1"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;35;1mPhoto Load (0.4ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Completed in 72ms (View: 62, DB: 1) | 200 OK [http://localhost/categories/1/photos]
+
+
+Processing TypusController#dashboard (for 127.0.0.1 at 2010-10-08 14:07:49) [GET]
+ Parameters: {"action"=>"dashboard", "controller"=>"typus"}
+ [4;36;1mTypusUser Load (0.5ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+Rendering template within layouts/admin
+Rendering typus/dashboard
+Rendered admin/dashboard/_sidebar (0.2ms)
+Rendered admin/helpers/_applications (2.1ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.3ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 26ms (View: 21, DB: 1) | 200 OK [http://localhost/admin]
+
+
+Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-08 14:07:50) [GET]
+ Parameters: {"action"=>"index", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.5ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/admin
+Rendering admin/resources/index
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.5ms)
+ [4;35;1mPhoto Load (0.5ms)[0m [0mSELECT "photos".* FROM "photos" ORDER BY photos.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.1ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.3ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 100ms (View: 80, DB: 1) | 200 OK [http://localhost/admin/photos]
+
+
+Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 14:07:52) [GET]
+ Parameters: {"action"=>"edit", "id"=>"1", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.5ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mPhoto Load (0.2ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 1) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.4ms)
+Rendered admin/helpers/_preview (0.2ms)
+Rendered admin/templates/_file (4.0ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_text (0.4ms)
+Rendered admin/templates/_string (0.5ms)
+Rendered admin/resources/_form (9.2ms)
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" [0m
+ [4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" [0m
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 1 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 1) [0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 1 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 1) [0m
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 1 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.1ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.3ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 52ms (View: 31, DB: 2) | 200 OK [http://localhost/admin/photos/edit/1]
+
+
+Processing Admin::PhotosController#new (for 127.0.0.1 at 2010-10-08 14:08:07) [GET]
+ Parameters: {"action"=>"new", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.5ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/new
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/templates/_file (1.7ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_string (0.5ms)
+Rendered admin/templates/_text (0.4ms)
+Rendered admin/templates/_string (1.0ms)
+Rendered admin/resources/_form (7.8ms)
+Rendered admin/helpers/_header (0.2ms)
+Rendered admin/helpers/_login_info (0.4ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 94ms (View: 19, DB: 1) | 200 OK [http://localhost/admin/photos/new]
+
+
+Processing Admin::PhotosController#create (for 127.0.0.1 at 2010-10-08 14:08:17) [POST]
+ Parameters: {"photo"=>{"photo"=>#, "title"=>"Rust", "flickr_url"=>"", "sort"=>"", "description"=>""}, "commit"=>"Create Photo", "action"=>"create", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.6ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-o06o6q-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-o06o6q-0.jpg[0]' -resize "x224" -crop "224x224+71+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-o06o6q-020101008-80675-1fmr351-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-o06o6q-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-o06o6q-0.jpg[0]' -resize "x140" -crop "140x140+44+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-o06o6q-020101008-80675-ayc2x-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-o06o6q-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-o06o6q-0.jpg[0]' -resize "1024x1024>" '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-o06o6q-020101008-80675-1fe9r11-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-o06o6q-020101008-80675-1fe9r11-0[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-o06o6q-020101008-80675-1fe9r11-0[0]' -resize "x84" -crop "84x84+26+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-o06o6q-020101008-80675-1fe9r11-020101008-80675-1odozu7-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-o06o6q-020101008-80675-1fe9r11-0[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-o06o6q-020101008-80675-1fe9r11-0[0]' -resize "x56" -crop "56x56+17+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-o06o6q-020101008-80675-1fe9r11-020101008-80675-12b47hw-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-o06o6q-020101008-80675-1fe9r11-0[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-o06o6q-020101008-80675-1fe9r11-0[0]' -resize "x308" -crop "308x308+97+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-o06o6q-020101008-80675-1fe9r11-020101008-80675-1fez4lu-0' 2>/dev/null
+ [4;35;1mPhoto Create (0.5ms)[0m [0mINSERT INTO "photos" ("photo_file_size", "created_at", "title", "flickr_url", "photo_file_name", "updated_at", "photo_content_type", "photo_updated_at", "description", "sort") VALUES(754653, '2010-10-08 18:08:19', 'Rust', '', '_.jpg', '2010-10-08 18:08:19', 'image/jpeg', '2010-10-08 18:08:17', '', NULL)[0m
+[paperclip] Saving attachments.
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/5/size8/_.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/5/size5/_.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/5/size3/_.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/5/original/_.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/5/size2/_.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/5/size11/_.jpg
+Redirected to http://localhost:3000/admin/photos/edit/5
+Completed in 2345ms (DB: 1) | 302 Found [http://localhost/admin/photos/create]
+
+
+Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 14:08:19) [GET]
+ Parameters: {"action"=>"edit", "id"=>"5", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.8ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mPhoto Load (0.3ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 5) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.6ms)
+Rendered admin/helpers/_preview (0.2ms)
+Rendered admin/templates/_file (6.5ms)
+Rendered admin/templates/_string (0.7ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_text (0.4ms)
+Rendered admin/templates/_string (164.7ms)
+Rendered admin/resources/_form (176.7ms)
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" [0m
+ [4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" [0m
+ [4;36;1mCategory Load (0.1ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 5 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 5) [0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 5 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 5) [0m
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 5 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.3ms)
+Rendered admin/helpers/_flash_message (0.1ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 229ms (View: 199, DB: 2) | 200 OK [http://localhost/admin/photos/edit/5]
+
+
+Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-08 14:08:22) [GET]
+ Parameters: {"action"=>"index", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.6ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/admin
+Rendering admin/resources/index
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.5ms)
+ [4;35;1mPhoto Load (0.7ms)[0m [0mSELECT "photos".* FROM "photos" ORDER BY photos.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.1ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.3ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 47ms (View: 24, DB: 1) | 200 OK [http://localhost/admin/photos]
+
+
+Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 14:08:26) [GET]
+ Parameters: {"action"=>"edit", "id"=>"5", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.6ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mPhoto Load (0.2ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 5) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.6ms)
+Rendered admin/helpers/_preview (0.2ms)
+Rendered admin/templates/_file (4.0ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_string (0.5ms)
+Rendered admin/templates/_text (0.4ms)
+Rendered admin/templates/_string (0.5ms)
+Rendered admin/resources/_form (9.2ms)
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" [0m
+ [4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" [0m
+ [4;36;1mCategory Load (0.1ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 5 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 5) [0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 5 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 5) [0m
+ [4;36;1mCategory Load (0.1ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 5 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.3ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 110ms (View: 29, DB: 2) | 200 OK [http://localhost/admin/photos/edit/5]
+
+
+Processing Admin::PhotosController#new (for 127.0.0.1 at 2010-10-08 14:08:29) [GET]
+ Parameters: {"action"=>"new", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.5ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/new
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/templates/_file (1.6ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_text (0.6ms)
+Rendered admin/templates/_string (0.5ms)
+Rendered admin/resources/_form (7.1ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.3ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 35ms (View: 16, DB: 1) | 200 OK [http://localhost/admin/photos/new]
+
+
+Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 14:08:32) [GET]
+ Parameters: {"action"=>"edit", "id"=>"5", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.5ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mPhoto Load (0.2ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 5) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.5ms)
+Rendered admin/helpers/_preview (0.2ms)
+Rendered admin/templates/_file (5.4ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_text (0.4ms)
+Rendered admin/templates/_string (0.5ms)
+Rendered admin/resources/_form (10.8ms)
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" [0m
+ [4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" [0m
+ [4;36;1mCategory Load (0.1ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 5 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 5) [0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 5 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 5) [0m
+ [4;36;1mCategory Load (0.1ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 5 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.3ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 52ms (View: 32, DB: 2) | 200 OK [http://localhost/admin/photos/edit/5]
+
+
+Processing Admin::PhotosController#relate (for 127.0.0.1 at 2010-10-08 14:08:35) [POST]
+ Parameters: {"commit"=>"Add", "related"=>{"model"=>"Category", "relation"=>"categories", "id"=>"6"}, "action"=>"relate", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "id"=>"5", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.5ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mPhoto Load (0.2ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 5) [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = 6) [0m
+ [4;36;1mSQL (0.3ms)[0m [0;1mINSERT INTO "categories_photos" ("category_id", "photo_id") VALUES (6, 5)[0m
+Redirected to http://localhost:3000/admin/photos/edit/5
+Completed in 82ms (DB: 1) | 302 Found [http://localhost/admin/photos/relate/5]
+
+
+Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 14:08:35) [GET]
+ Parameters: {"action"=>"edit", "id"=>"5", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.5ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mPhoto Load (0.4ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 5) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.8ms)
+Rendered admin/helpers/_preview (0.2ms)
+Rendered admin/templates/_file (4.5ms)
+Rendered admin/templates/_string (0.8ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_text (0.4ms)
+Rendered admin/templates/_string (0.5ms)
+Rendered admin/resources/_form (11.4ms)
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "categories" [0m
+ [4;36;1mCategory Load (0.7ms)[0m [0;1mSELECT * FROM "categories" [0m
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 5 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 5) [0m
+ [4;35;1mSQL (0.3ms)[0m [0mSELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 5 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 5) [0m
+ [4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 5 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.1ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.3ms)
+Rendered admin/helpers/_flash_message (0.1ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 62ms (View: 36, DB: 3) | 200 OK [http://localhost/admin/photos/edit/5]
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 14:08:42) [GET]
+ [4;36;1mCategory Load (0.8ms)[0m [0;1mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering categories/index
+Completed in 10ms (View: 4, DB: 1) | 200 OK [http://localhost/categories]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 14:08:42) [GET]
+ Parameters: {"category_id"=>"6"}
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '6') LIMIT 1[0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;36;1mPhoto Load (0.3ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 6 ) [0m
+Completed in 17ms (View: 6, DB: 0) | 200 OK [http://localhost/categories/6/photos]
+
+
+Processing Admin::PhotosController#new (for 127.0.0.1 at 2010-10-08 14:08:50) [GET]
+ Parameters: {"action"=>"new", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.5ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/new
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/templates/_file (1.6ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_string (0.5ms)
+Rendered admin/templates/_text (0.4ms)
+Rendered admin/templates/_string (0.5ms)
+Rendered admin/resources/_form (6.8ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.3ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 35ms (View: 16, DB: 1) | 200 OK [http://localhost/admin/photos/new]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 14:08:55) [GET]
+ [4;36;1mPhoto Load (0.8ms)[0m [0;1mSELECT * FROM "photos" [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 71ms (View: 8, DB: 1) | 200 OK [http://localhost/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 14:09:05) [GET]
+ [4;35;1mPhoto Load (1.2ms)[0m [0mSELECT * FROM "photos" [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 18ms (View: 8, DB: 1) | 200 OK [http://localhost/photos]
+
+
+Processing Admin::PhotosController#create (for 127.0.0.1 at 2010-10-08 14:09:35) [POST]
+ Parameters: {"photo"=>{"photo"=>#, "title"=>"Boathouse", "flickr_url"=>"", "sort"=>"", "description"=>""}, "commit"=>"Create Photo", "action"=>"create", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.5ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-j8cjn9-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-j8cjn9-0.jpg[0]' -resize "x224" -crop "224x224+107+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-j8cjn9-020101008-80675-20zj26-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-j8cjn9-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-j8cjn9-0.jpg[0]' -resize "x140" -crop "140x140+67+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-j8cjn9-020101008-80675-1hr4lxu-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-j8cjn9-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-j8cjn9-0.jpg[0]' -resize "1024x1024>" '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-j8cjn9-020101008-80675-lcnri9-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-j8cjn9-020101008-80675-lcnri9-0[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-j8cjn9-020101008-80675-lcnri9-0[0]' -resize "x84" -crop "84x84+40+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-j8cjn9-020101008-80675-lcnri9-020101008-80675-155kg67-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-j8cjn9-020101008-80675-lcnri9-0[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-j8cjn9-020101008-80675-lcnri9-0[0]' -resize "x56" -crop "56x56+26+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-j8cjn9-020101008-80675-lcnri9-020101008-80675-k9u5ho-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-j8cjn9-020101008-80675-lcnri9-0[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-j8cjn9-020101008-80675-lcnri9-0[0]' -resize "x308" -crop "308x308+148+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-j8cjn9-020101008-80675-lcnri9-020101008-80675-drmnto-0' 2>/dev/null
+ [4;35;1mPhoto Create (0.5ms)[0m [0mINSERT INTO "photos" ("photo_file_size", "created_at", "title", "flickr_url", "photo_file_name", "updated_at", "photo_content_type", "photo_updated_at", "description", "sort") VALUES(176111, '2010-10-08 18:09:37', 'Boathouse', '', 'Boathouse.jpg', '2010-10-08 18:09:37', 'image/jpeg', '2010-10-08 18:09:35', '', NULL)[0m
+[paperclip] Saving attachments.
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/6/size8/Boathouse.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/6/size5/Boathouse.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/6/size3/Boathouse.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/6/original/Boathouse.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/6/size2/Boathouse.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/6/size11/Boathouse.jpg
+Redirected to http://localhost:3000/admin/photos/edit/6
+Completed in 1731ms (DB: 1) | 302 Found [http://localhost/admin/photos/create]
+
+
+Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 14:09:37) [GET]
+ Parameters: {"action"=>"edit", "id"=>"6", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.6ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mPhoto Load (0.3ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 6) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.8ms)
+Rendered admin/helpers/_preview (0.2ms)
+Rendered admin/templates/_file (4.7ms)
+Rendered admin/templates/_string (81.4ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_text (0.4ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/resources/_form (91.8ms)
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" [0m
+ [4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" [0m
+ [4;36;1mCategory Load (0.1ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 6 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 6) [0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 6 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 6) [0m
+ [4;36;1mCategory Load (0.1ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 6 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.3ms)
+Rendered admin/helpers/_flash_message (0.1ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 139ms (View: 113, DB: 2) | 200 OK [http://localhost/admin/photos/edit/6]
+
+
+Processing Admin::PhotosController#relate (for 127.0.0.1 at 2010-10-08 14:09:43) [POST]
+ Parameters: {"commit"=>"Add", "related"=>{"model"=>"Category", "relation"=>"categories", "id"=>"4"}, "action"=>"relate", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "id"=>"6", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.5ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mPhoto Load (0.2ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 6) [0m
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = 4) [0m
+ [4;36;1mSQL (0.3ms)[0m [0;1mINSERT INTO "categories_photos" ("category_id", "photo_id") VALUES (4, 6)[0m
+Redirected to http://localhost:3000/admin/photos/edit/6
+Completed in 28ms (DB: 1) | 302 Found [http://localhost/admin/photos/relate/6]
+
+
+Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 14:09:43) [GET]
+ Parameters: {"action"=>"edit", "id"=>"6", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.5ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mPhoto Load (0.3ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 6) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.6ms)
+Rendered admin/helpers/_preview (0.2ms)
+Rendered admin/templates/_file (67.6ms)
+Rendered admin/templates/_string (0.8ms)
+Rendered admin/templates/_string (0.8ms)
+Rendered admin/templates/_text (0.6ms)
+Rendered admin/templates/_string (0.8ms)
+Rendered admin/resources/_form (74.4ms)
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "categories" [0m
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" [0m
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 6 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 6) [0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 6 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 6) [0m
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 6 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.1ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.3ms)
+Rendered admin/helpers/_flash_message (0.1ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 123ms (View: 97, DB: 2) | 200 OK [http://localhost/admin/photos/edit/6]
+
+
+Processing Admin::PhotosController#relate (for 127.0.0.1 at 2010-10-08 14:09:46) [POST]
+ Parameters: {"commit"=>"Add", "related"=>{"model"=>"Category", "relation"=>"categories", "id"=>"1"}, "action"=>"relate", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "id"=>"6", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.5ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mPhoto Load (0.3ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 6) [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = 1) [0m
+ [4;35;1mSQL (0.3ms)[0m [0mINSERT INTO "categories_photos" ("category_id", "photo_id") VALUES (1, 6)[0m
+Redirected to http://localhost:3000/admin/photos/edit/6
+Completed in 28ms (DB: 1) | 302 Found [http://localhost/admin/photos/relate/6]
+
+
+Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 14:09:46) [GET]
+ Parameters: {"action"=>"edit", "id"=>"6", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.6ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mPhoto Load (0.3ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 6) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.5ms)
+Rendered admin/helpers/_preview (0.2ms)
+Rendered admin/templates/_file (5.3ms)
+Rendered admin/templates/_string (0.7ms)
+Rendered admin/templates/_string (0.7ms)
+Rendered admin/templates/_text (0.5ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/resources/_form (11.3ms)
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" [0m
+ [4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 6 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 6) [0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 6 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 6) [0m
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 6 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.1ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.3ms)
+Rendered admin/helpers/_flash_message (0.1ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 125ms (View: 35, DB: 2) | 200 OK [http://localhost/admin/photos/edit/6]
+
+
+Processing Admin::PhotosController#new (for 127.0.0.1 at 2010-10-08 14:09:49) [GET]
+ Parameters: {"action"=>"new", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.6ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/new
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/templates/_file (1.7ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_string (0.5ms)
+Rendered admin/templates/_text (0.4ms)
+Rendered admin/templates/_string (0.5ms)
+Rendered admin/resources/_form (7.1ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.4ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 38ms (View: 17, DB: 1) | 200 OK [http://localhost/admin/photos/new]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 14:09:55) [GET]
+ [4;36;1mPhoto Load (0.8ms)[0m [0;1mSELECT * FROM "photos" [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 17ms (View: 9, DB: 1) | 200 OK [http://localhost/photos]
+
+
+Processing Admin::PhotosController#create (for 127.0.0.1 at 2010-10-08 14:10:07) [POST]
+ Parameters: {"photo"=>{"photo"=>#, "title"=>"Bubble #2", "flickr_url"=>"", "sort"=>"", "description"=>""}, "commit"=>"Create Photo", "action"=>"create", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.9ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-fytyfd-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-fytyfd-0.jpg[0]' -resize "x224" -crop "224x224+114+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-fytyfd-020101008-80675-5zi50z-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-fytyfd-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-fytyfd-0.jpg[0]' -resize "x140" -crop "140x140+71+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-fytyfd-020101008-80675-18n2dws-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-fytyfd-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-fytyfd-0.jpg[0]' -resize "1024x1024>" '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-fytyfd-020101008-80675-lc8z4b-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-fytyfd-020101008-80675-lc8z4b-0[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-fytyfd-020101008-80675-lc8z4b-0[0]' -resize "x84" -crop "84x84+42+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-fytyfd-020101008-80675-lc8z4b-020101008-80675-1aje0tp-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-fytyfd-020101008-80675-lc8z4b-0[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-fytyfd-020101008-80675-lc8z4b-0[0]' -resize "x56" -crop "56x56+28+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-fytyfd-020101008-80675-lc8z4b-020101008-80675-dqwo7w-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-fytyfd-020101008-80675-lc8z4b-0[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-fytyfd-020101008-80675-lc8z4b-0[0]' -resize "x308" -crop "308x308+157+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-fytyfd-020101008-80675-lc8z4b-020101008-80675-8tip8y-0' 2>/dev/null
+ [4;36;1mPhoto Create (0.5ms)[0m [0;1mINSERT INTO "photos" ("photo_file_size", "created_at", "title", "flickr_url", "photo_file_name", "updated_at", "photo_content_type", "photo_updated_at", "description", "sort") VALUES(380686, '2010-10-08 18:10:09', 'Bubble #2', '', 'Bubble no2.jpg', '2010-10-08 18:10:09', 'image/jpeg', '2010-10-08 18:10:07', '', NULL)[0m
+[paperclip] Saving attachments.
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/7/size8/Bubble no2.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/7/size5/Bubble no2.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/7/size3/Bubble no2.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/7/original/Bubble no2.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/7/size2/Bubble no2.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/7/size11/Bubble no2.jpg
+Redirected to http://localhost:3000/admin/photos/edit/7
+Completed in 2076ms (DB: 1) | 302 Found [http://localhost/admin/photos/create]
+
+
+Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 14:10:09) [GET]
+ Parameters: {"action"=>"edit", "id"=>"7", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.7ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mPhoto Load (0.3ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 7) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.6ms)
+Rendered admin/helpers/_preview (0.2ms)
+Rendered admin/templates/_file (84.1ms)
+Rendered admin/templates/_string (0.7ms)
+Rendered admin/templates/_string (0.5ms)
+Rendered admin/templates/_text (0.4ms)
+Rendered admin/templates/_string (0.7ms)
+Rendered admin/resources/_form (90.4ms)
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "categories" [0m
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" [0m
+ [4;35;1mCategory Load (0.1ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 7 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 7) [0m
+ [4;35;1mSQL (0.3ms)[0m [0mSELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 7 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 7) [0m
+ [4;35;1mCategory Load (0.5ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 7 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.3ms)
+Rendered admin/helpers/_flash_message (0.1ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 140ms (View: 112, DB: 3) | 200 OK [http://localhost/admin/photos/edit/7]
+
+
+Processing TypusController#dashboard (for 127.0.0.1 at 2010-10-08 14:10:14) [GET]
+ Parameters: {"action"=>"dashboard", "controller"=>"typus"}
+ [4;36;1mTypusUser Load (0.5ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+Rendering template within layouts/admin
+Rendering typus/dashboard
+Rendered admin/dashboard/_sidebar (0.2ms)
+Rendered admin/helpers/_applications (2.2ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.3ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 27ms (View: 22, DB: 1) | 200 OK [http://localhost/admin]
+
+
+Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-08 14:10:15) [GET]
+ Parameters: {"action"=>"index", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.5ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/admin
+Rendering admin/resources/index
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.5ms)
+ [4;35;1mPhoto Load (0.7ms)[0m [0mSELECT "photos".* FROM "photos" ORDER BY photos.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.1ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.3ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 108ms (View: 86, DB: 1) | 200 OK [http://localhost/admin/photos]
+
+
+Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 14:10:18) [GET]
+ Parameters: {"action"=>"edit", "id"=>"7", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.5ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mPhoto Load (0.4ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 7) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.2ms)
+Rendered admin/helpers/_search (0.8ms)
+Rendered admin/helpers/_preview (0.2ms)
+Rendered admin/templates/_file (4.2ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_string (0.5ms)
+Rendered admin/templates/_text (0.6ms)
+Rendered admin/templates/_string (0.9ms)
+Rendered admin/resources/_form (10.4ms)
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" [0m
+ [4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" [0m
+ [4;36;1mCategory Load (0.1ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 7 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 7) [0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 7 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 7) [0m
+ [4;36;1mCategory Load (0.1ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 7 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.3ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 53ms (View: 31, DB: 2) | 200 OK [http://localhost/admin/photos/edit/7]
+
+
+Processing Admin::PhotosController#relate (for 127.0.0.1 at 2010-10-08 14:10:25) [POST]
+ Parameters: {"commit"=>"Add", "related"=>{"model"=>"Category", "relation"=>"categories", "id"=>"6"}, "action"=>"relate", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "id"=>"7", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.5ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mPhoto Load (0.4ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 7) [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = 6) [0m
+ [4;36;1mSQL (0.3ms)[0m [0;1mINSERT INTO "categories_photos" ("category_id", "photo_id") VALUES (6, 7)[0m
+Redirected to http://localhost:3000/admin/photos/edit/7
+Completed in 29ms (DB: 1) | 302 Found [http://localhost/admin/photos/relate/7]
+
+
+Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 14:10:25) [GET]
+ Parameters: {"action"=>"edit", "id"=>"7", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.7ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mPhoto Load (0.3ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 7) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.6ms)
+Rendered admin/helpers/_preview (0.2ms)
+Rendered admin/templates/_file (4.7ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_string (0.8ms)
+Rendered admin/templates/_text (0.4ms)
+Rendered admin/templates/_string (0.5ms)
+Rendered admin/resources/_form (10.2ms)
+ [4;35;1mSQL (0.5ms)[0m [0mSELECT count(*) AS count_all FROM "categories" [0m
+ [4;36;1mCategory Load (0.9ms)[0m [0;1mSELECT * FROM "categories" [0m
+ [4;35;1mCategory Load (0.6ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 7 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 7) [0m
+ [4;35;1mSQL (0.3ms)[0m [0mSELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 7 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 7) [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 7 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.1ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.6ms)
+Rendered admin/helpers/_flash_message (0.1ms)
+Rendered admin/shared/_footer (0.3ms)
+Completed in 69ms (View: 41, DB: 4) | 200 OK [http://localhost/admin/photos/edit/7]
+
+
+Processing Admin::PhotosController#relate (for 127.0.0.1 at 2010-10-08 14:10:28) [POST]
+ Parameters: {"commit"=>"Add", "related"=>{"model"=>"Category", "relation"=>"categories", "id"=>"2"}, "action"=>"relate", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "id"=>"7", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.6ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mPhoto Load (0.2ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 7) [0m
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = 2) [0m
+ [4;35;1mSQL (0.2ms)[0m [0mINSERT INTO "categories_photos" ("category_id", "photo_id") VALUES (2, 7)[0m
+Redirected to http://localhost:3000/admin/photos/edit/7
+Completed in 27ms (DB: 1) | 302 Found [http://localhost/admin/photos/relate/7]
+
+
+Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 14:10:28) [GET]
+ Parameters: {"action"=>"edit", "id"=>"7", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.7ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mPhoto Load (0.3ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 7) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.6ms)
+Rendered admin/helpers/_preview (0.2ms)
+Rendered admin/templates/_file (4.4ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_text (0.4ms)
+Rendered admin/templates/_string (0.5ms)
+Rendered admin/resources/_form (9.8ms)
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" [0m
+ [4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 7 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 7) [0m
+ [4;36;1mSQL (0.1ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 7 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 7) [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 7 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.1ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.6ms)
+Rendered admin/helpers/_flash_message (0.1ms)
+Rendered admin/shared/_footer (0.3ms)
+Completed in 119ms (View: 91, DB: 2) | 200 OK [http://localhost/admin/photos/edit/7]
+
+
+Processing Admin::PhotosController#new (for 127.0.0.1 at 2010-10-08 14:10:29) [GET]
+ Parameters: {"action"=>"new", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.5ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/new
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/templates/_file (1.9ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_string (0.5ms)
+Rendered admin/templates/_text (0.4ms)
+Rendered admin/templates/_string (0.5ms)
+Rendered admin/resources/_form (7.3ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.3ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 35ms (View: 17, DB: 1) | 200 OK [http://localhost/admin/photos/new]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 14:10:34) [GET]
+ [4;36;1mPhoto Load (1.0ms)[0m [0;1mSELECT * FROM "photos" [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 15ms (View: 8, DB: 1) | 200 OK [http://localhost/photos]
+
+
+Processing Admin::PhotosController#create (for 127.0.0.1 at 2010-10-08 14:11:56) [POST]
+ Parameters: {"photo"=>{"photo"=>#, "title"=>"Cadover Horses", "flickr_url"=>"", "sort"=>"", "description"=>""}, "commit"=>"Create Photo", "action"=>"create", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.8ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-9kdwls-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-9kdwls-0.jpg[0]' -resize "x224" -crop "224x224+56+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-9kdwls-020101008-80675-36m2w4-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-9kdwls-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-9kdwls-0.jpg[0]' -resize "x140" -crop "140x140+35+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-9kdwls-020101008-80675-1314bwy-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-9kdwls-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-9kdwls-0.jpg[0]' -resize "1024x1024>" '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-9kdwls-020101008-80675-ssw9om-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-9kdwls-020101008-80675-ssw9om-0[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-9kdwls-020101008-80675-ssw9om-0[0]' -resize "x84" -crop "84x84+20+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-9kdwls-020101008-80675-ssw9om-020101008-80675-1npc5o3-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-9kdwls-020101008-80675-ssw9om-0[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-9kdwls-020101008-80675-ssw9om-0[0]' -resize "x56" -crop "56x56+13+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-9kdwls-020101008-80675-ssw9om-020101008-80675-yzue8b-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-9kdwls-020101008-80675-ssw9om-0[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-9kdwls-020101008-80675-ssw9om-0[0]' -resize "x308" -crop "308x308+76+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-9kdwls-020101008-80675-ssw9om-020101008-80675-1swg3bg-0' 2>/dev/null
+ [4;36;1mPhoto Create (0.4ms)[0m [0;1mINSERT INTO "photos" ("photo_file_size", "created_at", "title", "flickr_url", "photo_file_name", "updated_at", "photo_content_type", "photo_updated_at", "description", "sort") VALUES(206182, '2010-10-08 18:11:58', 'Cadover Horses', '', 'Cadover Horses.jpg', '2010-10-08 18:11:58', 'image/jpeg', '2010-10-08 18:11:56', '', NULL)[0m
+[paperclip] Saving attachments.
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/8/size8/Cadover Horses.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/8/size5/Cadover Horses.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/8/size3/Cadover Horses.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/8/original/Cadover Horses.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/8/size2/Cadover Horses.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/8/size11/Cadover Horses.jpg
+Redirected to http://localhost:3000/admin/photos/edit/8
+Completed in 2215ms (DB: 1) | 302 Found [http://localhost/admin/photos/create]
+
+
+Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 14:11:59) [GET]
+ Parameters: {"action"=>"edit", "id"=>"8", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.7ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mPhoto Load (0.3ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 8) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.7ms)
+Rendered admin/helpers/_preview (0.2ms)
+Rendered admin/templates/_file (7.1ms)
+Rendered admin/templates/_string (0.9ms)
+Rendered admin/templates/_string (0.7ms)
+Rendered admin/templates/_text (0.5ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/resources/_form (13.8ms)
+ [4;35;1mSQL (0.3ms)[0m [0mSELECT count(*) AS count_all FROM "categories" [0m
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" [0m
+ [4;35;1mCategory Load (0.1ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 8 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 8) [0m
+ [4;35;1mSQL (0.1ms)[0m [0mSELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 8 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 8) [0m
+ [4;35;1mCategory Load (0.1ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 8 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.3ms)
+Rendered admin/helpers/_flash_message (0.1ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 156ms (View: 130, DB: 2) | 200 OK [http://localhost/admin/photos/edit/8]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 14:13:14) [GET]
+ [4;36;1mPhoto Load (1.3ms)[0m [0;1mSELECT * FROM "photos" [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 20ms (View: 11, DB: 1) | 200 OK [http://localhost/photos]
+
+
+Processing PhotosController#new (for 127.0.0.1 at 2010-10-08 14:13:23) [GET]
+ [4;35;1mCategory Load (0.6ms)[0m [0mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering photos/new
+Completed in 25ms (View: 11, DB: 1) | 200 OK [http://localhost/photos/new]
+
+
+Processing PhotosController#create (for 127.0.0.1 at 2010-10-08 14:13:37) [POST]
+ Parameters: {"photo"=>{"photo"=>#}, "commit"=>"Upload", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw="}
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-z7h9as-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-z7h9as-0.jpg[0]' -resize "x224" -crop "224x224+125+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-z7h9as-020101008-80675-cxco3e-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-z7h9as-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-z7h9as-0.jpg[0]' -resize "x140" -crop "140x140+78+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-z7h9as-020101008-80675-1tr27aw-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-z7h9as-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-z7h9as-0.jpg[0]' -resize "1024x1024>" '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-z7h9as-020101008-80675-gwrgh4-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-z7h9as-020101008-80675-gwrgh4-0[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-z7h9as-020101008-80675-gwrgh4-0[0]' -resize "x84" -crop "84x84+46+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-z7h9as-020101008-80675-gwrgh4-020101008-80675-1rlwfv5-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-z7h9as-020101008-80675-gwrgh4-0[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-z7h9as-020101008-80675-gwrgh4-0[0]' -resize "x56" -crop "56x56+31+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-z7h9as-020101008-80675-gwrgh4-020101008-80675-szsol5-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-z7h9as-020101008-80675-gwrgh4-0[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-z7h9as-020101008-80675-gwrgh4-0[0]' -resize "x308" -crop "308x308+171+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-z7h9as-020101008-80675-gwrgh4-020101008-80675-1e86nhv-0' 2>/dev/null
+ [4;36;1mPhoto Create (1.0ms)[0m [0;1mINSERT INTO "photos" ("photo_file_size", "created_at", "title", "flickr_url", "photo_file_name", "updated_at", "photo_content_type", "photo_updated_at", "description", "sort") VALUES(321666, '2010-10-08 18:13:43', NULL, NULL, 'Emerald Panarama.jpg', '2010-10-08 18:13:43', 'image/jpeg', '2010-10-08 18:13:38', 'Four shots stiched together to make a single wide 20 megapixel image.', NULL)[0m
+[paperclip] Saving attachments.
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/9/size8/Emerald Panarama.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/9/size5/Emerald Panarama.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/9/size3/Emerald Panarama.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/9/original/Emerald Panarama.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/9/size2/Emerald Panarama.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/9/size11/Emerald Panarama.jpg
+Redirected to http://localhost:3000/photos/9
+Completed in 5471ms (DB: 1) | 302 Found [http://localhost/photos]
+
+
+Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-08 14:13:43) [GET]
+ Parameters: {"action"=>"index", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.5ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/admin
+Rendering admin/resources/index
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.5ms)
+ [4;35;1mPhoto Load (0.9ms)[0m [0mSELECT "photos".* FROM "photos" ORDER BY photos.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.1ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.5ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 66ms (View: 45, DB: 2) | 200 OK [http://localhost/admin/photos]
+
+
+Processing PhotosController#show (for 127.0.0.1 at 2010-10-08 14:13:43) [GET]
+ Parameters: {"id"=>"9"}
+ [4;36;1mPhoto Load (0.4ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 9) [0m
+Rendering template within layouts/photos
+Rendering photos/show
+Completed in 19ms (View: 7, DB: 0) | 200 OK [http://localhost/photos/9]
+
+
+Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 14:13:46) [GET]
+ Parameters: {"action"=>"edit", "id"=>"9", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.6ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mPhoto Load (0.3ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 9) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.5ms)
+Rendered admin/helpers/_preview (0.2ms)
+Rendered admin/templates/_file (4.7ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_text (0.4ms)
+Rendered admin/templates/_string (0.5ms)
+Rendered admin/resources/_form (10.4ms)
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "categories" [0m
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" [0m
+ [4;35;1mCategory Load (0.1ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 9 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 9) [0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 9 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 9) [0m
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 9 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.4ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 52ms (View: 30, DB: 2) | 200 OK [http://localhost/admin/photos/edit/9]
+
+
+Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-08 14:13:55) [GET]
+ Parameters: {"action"=>"index", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.5ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/admin
+Rendering admin/resources/index
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.5ms)
+ [4;36;1mPhoto Load (1.0ms)[0m [0;1mSELECT "photos".* FROM "photos" ORDER BY photos.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.1ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.4ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 109ms (View: 87, DB: 2) | 200 OK [http://localhost/admin/photos]
+
+
+Processing Admin::PhotosController#destroy (for 127.0.0.1 at 2010-10-08 14:14:01) [GET]
+ Parameters: {"action"=>"destroy", "id"=>"9", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.5ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mPhoto Load (0.2ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 9) [0m
+[paperclip] Deleting attachments.
+[paperclip] deleting /Users/danbee/Sites/rails/photos/public/system/photos/9/original/Emerald Panarama.jpg
+[paperclip] deleting /Users/danbee/Sites/rails/photos/public/system/photos/9/size8/Emerald Panarama.jpg
+[paperclip] deleting /Users/danbee/Sites/rails/photos/public/system/photos/9/size5/Emerald Panarama.jpg
+[paperclip] deleting /Users/danbee/Sites/rails/photos/public/system/photos/9/size3/Emerald Panarama.jpg
+[paperclip] deleting /Users/danbee/Sites/rails/photos/public/system/photos/9/size2/Emerald Panarama.jpg
+[paperclip] deleting /Users/danbee/Sites/rails/photos/public/system/photos/9/size11/Emerald Panarama.jpg
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 9 ) [0m
+ [4;36;1mPhoto Destroy (0.3ms)[0m [0;1mDELETE FROM "photos" WHERE "id" = 9[0m
+Redirected to http://localhost:3000/admin/photos
+Completed in 92ms (DB: 1) | 302 Found [http://localhost/admin/photos/destroy/9]
+
+
+Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-08 14:14:01) [GET]
+ Parameters: {"action"=>"index", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.6ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mSQL (0.3ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/admin
+Rendering admin/resources/index
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.5ms)
+ [4;35;1mPhoto Load (0.7ms)[0m [0mSELECT "photos".* FROM "photos" ORDER BY photos.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.1ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.3ms)
+Rendered admin/helpers/_flash_message (0.1ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 110ms (View: 29, DB: 2) | 200 OK [http://localhost/admin/photos]
+
+
+Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-08 14:14:17) [GET]
+ Parameters: {"action"=>"index", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.5ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/admin
+Rendering admin/resources/index
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.5ms)
+ [4;36;1mPhoto Load (0.7ms)[0m [0;1mSELECT "photos".* FROM "photos" ORDER BY photos.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.1ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.3ms)
+Rendered admin/shared/_footer (0.3ms)
+Completed in 50ms (View: 30, DB: 1) | 200 OK [http://localhost/admin/photos]
+
+
+Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-08 14:14:38) [GET]
+ Parameters: {"action"=>"index", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.6ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/admin
+Rendering admin/resources/index
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.4ms)
+ [4;35;1mPhoto Load (0.7ms)[0m [0mSELECT "photos".* FROM "photos" ORDER BY photos.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.1ms)
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 1 ) [0m
+ [4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 2 ) [0m
+ [4;36;1mCategory Load (0.5ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 3 ) [0m
+ [4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 4 ) [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 5 ) [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 6 ) [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 7 ) [0m
+ [4;35;1mCategory Load (0.1ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 8 ) [0m
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.4ms)
+Rendered admin/shared/_footer (0.4ms)
+Completed in 61ms (View: 38, DB: 4) | 200 OK [http://localhost/admin/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 14:15:01) [GET]
+ [4;36;1mPhoto Load (0.9ms)[0m [0;1mSELECT * FROM "photos" [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 16ms (View: 9, DB: 1) | 200 OK [http://localhost/photos]
+
+
+Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 14:15:11) [GET]
+ Parameters: {"action"=>"edit", "id"=>"3", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.5ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mPhoto Load (0.4ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 3) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.4ms)
+Rendered admin/helpers/_preview (0.1ms)
+Rendered admin/templates/_file (4.1ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_string (0.5ms)
+Rendered admin/templates/_text (0.5ms)
+Rendered admin/templates/_string (0.5ms)
+Rendered admin/resources/_form (9.3ms)
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "categories" [0m
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 3 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 3) [0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 3 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 3) [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 3 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.1ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.4ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 56ms (View: 34, DB: 2) | 200 OK [http://localhost/admin/photos/edit/3]
+
+
+Processing Admin::PhotosController#new (for 127.0.0.1 at 2010-10-08 14:15:58) [GET]
+ Parameters: {"action"=>"new", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.5ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/new
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/templates/_file (1.7ms)
+Rendered admin/templates/_string (0.8ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_text (0.6ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/resources/_form (8.2ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.3ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 93ms (View: 18, DB: 1) | 200 OK [http://localhost/admin/photos/new]
+
+
+Processing Admin::PhotosController#create (for 127.0.0.1 at 2010-10-08 14:16:09) [POST]
+ Parameters: {"photo"=>{"photo"=>#, "title"=>"Church of Ireland Gate", "flickr_url"=>"", "sort"=>"", "description"=>""}, "commit"=>"Create Photo", "action"=>"create", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.8ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1wcvl7h-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1wcvl7h-0.jpg[0]' -resize "224x" -crop "224x224+0+56" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1wcvl7h-020101008-80675-necn96-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1wcvl7h-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1wcvl7h-0.jpg[0]' -resize "140x" -crop "140x140+0+35" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1wcvl7h-020101008-80675-1ybgtkl-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1wcvl7h-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1wcvl7h-0.jpg[0]' -resize "1024x1024>" '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1wcvl7h-020101008-80675-6cffpt-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1wcvl7h-020101008-80675-6cffpt-0[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1wcvl7h-020101008-80675-6cffpt-0[0]' -resize "84x" -crop "84x84+0+20" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1wcvl7h-020101008-80675-6cffpt-020101008-80675-agpgrm-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1wcvl7h-020101008-80675-6cffpt-0[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1wcvl7h-020101008-80675-6cffpt-0[0]' -resize "56x" -crop "56x56+0+13" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1wcvl7h-020101008-80675-6cffpt-020101008-80675-1oy0hw5-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1wcvl7h-020101008-80675-6cffpt-0[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1wcvl7h-020101008-80675-6cffpt-0[0]' -resize "308x" -crop "308x308+0+76" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1wcvl7h-020101008-80675-6cffpt-020101008-80675-55vx5a-0' 2>/dev/null
+ [4;36;1mPhoto Create (1.0ms)[0m [0;1mINSERT INTO "photos" ("photo_file_size", "created_at", "title", "flickr_url", "photo_file_name", "updated_at", "photo_content_type", "photo_updated_at", "description", "sort") VALUES(329139, '2010-10-08 18:16:12', 'Church of Ireland Gate', '', 'Church of Ireland Gate.jpg', '2010-10-08 18:16:12', 'image/jpeg', '2010-10-08 18:16:09', '', NULL)[0m
+[paperclip] Saving attachments.
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/10/size8/Church of Ireland Gate.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/10/size5/Church of Ireland Gate.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/10/size3/Church of Ireland Gate.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/10/original/Church of Ireland Gate.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/10/size2/Church of Ireland Gate.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/10/size11/Church of Ireland Gate.jpg
+
+NoMethodError (undefined method `photo' for #):
+ app/models/photo.rb:17:in `get_exif'
+ vendor/plugins/typus/app/controllers/admin/master_controller.rb:92:in `create'
+
+Rendered rescues/_trace (40.6ms)
+Rendered rescues/_request_and_response (0.5ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing Admin::PhotosController#create (for 127.0.0.1 at 2010-10-08 14:16:20) [POST]
+ Parameters: {"photo"=>{"photo"=>#, "title"=>"Church of Ireland Gate", "flickr_url"=>"", "sort"=>"", "description"=>""}, "commit"=>"Create Photo", "action"=>"create", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.8ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1tz5x26-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1tz5x26-0.jpg[0]' -resize "224x" -crop "224x224+0+56" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1tz5x26-020101008-80675-e5b4ti-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1tz5x26-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1tz5x26-0.jpg[0]' -resize "140x" -crop "140x140+0+35" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1tz5x26-020101008-80675-1xrrdly-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1tz5x26-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1tz5x26-0.jpg[0]' -resize "1024x1024>" '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1tz5x26-020101008-80675-1atdqef-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1tz5x26-020101008-80675-1atdqef-0[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1tz5x26-020101008-80675-1atdqef-0[0]' -resize "84x" -crop "84x84+0+20" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1tz5x26-020101008-80675-1atdqef-020101008-80675-wzhqkt-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1tz5x26-020101008-80675-1atdqef-0[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1tz5x26-020101008-80675-1atdqef-0[0]' -resize "56x" -crop "56x56+0+13" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1tz5x26-020101008-80675-1atdqef-020101008-80675-folsiy-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1tz5x26-020101008-80675-1atdqef-0[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1tz5x26-020101008-80675-1atdqef-0[0]' -resize "308x" -crop "308x308+0+76" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1tz5x26-020101008-80675-1atdqef-020101008-80675-d5doja-0' 2>/dev/null
+ [4;36;1mPhoto Create (0.5ms)[0m [0;1mINSERT INTO "photos" ("photo_file_size", "created_at", "title", "flickr_url", "photo_file_name", "updated_at", "photo_content_type", "photo_updated_at", "description", "sort") VALUES(329139, '2010-10-08 18:16:23', 'Church of Ireland Gate', '', 'Church of Ireland Gate.jpg', '2010-10-08 18:16:23', 'image/jpeg', '2010-10-08 18:16:20', '', NULL)[0m
+[paperclip] Saving attachments.
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/10/size8/Church of Ireland Gate.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/10/size5/Church of Ireland Gate.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/10/size3/Church of Ireland Gate.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/10/original/Church of Ireland Gate.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/10/size2/Church of Ireland Gate.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/10/size11/Church of Ireland Gate.jpg
+Redirected to http://localhost:3000/admin/photos/edit/10
+Completed in 2272ms (DB: 1) | 302 Found [http://localhost/admin/photos/create]
+
+
+Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 14:16:23) [GET]
+ Parameters: {"action"=>"edit", "id"=>"10", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.5ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mPhoto Load (0.2ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 10) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.5ms)
+Rendered admin/helpers/_preview (0.2ms)
+Rendered admin/templates/_file (4.3ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_text (0.4ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/resources/_form (10.2ms)
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "categories" [0m
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" [0m
+ [4;35;1mCategory Load (0.1ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 10 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 10) [0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 10 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 10) [0m
+ [4;35;1mCategory Load (0.1ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 10 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.4ms)
+Rendered admin/helpers/_flash_message (0.1ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 51ms (View: 29, DB: 2) | 200 OK [http://localhost/admin/photos/edit/10]
+
+
+Processing Admin::PhotosController#new (for 127.0.0.1 at 2010-10-08 14:17:24) [GET]
+ Parameters: {"action"=>"new", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.6ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/new
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/templates/_file (1.8ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_string (0.5ms)
+Rendered admin/templates/_text (0.4ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/resources/_form (7.7ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.3ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 131ms (View: 18, DB: 1) | 200 OK [http://localhost/admin/photos/new]
+
+
+Processing Admin::PhotosController#create (for 127.0.0.1 at 2010-10-08 14:17:32) [POST]
+ Parameters: {"photo"=>{"photo"=>#, "title"=>"Church of Ireland", "flickr_url"=>"", "sort"=>"", "description"=>""}, "commit"=>"Create Photo", "action"=>"create", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.8ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-g5xeoq-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-g5xeoq-0.jpg[0]' -resize "224x" -crop "224x224+0+56" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-g5xeoq-020101008-80675-1ohzdpi-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-g5xeoq-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-g5xeoq-0.jpg[0]' -resize "140x" -crop "140x140+0+35" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-g5xeoq-020101008-80675-1kpm1xa-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-g5xeoq-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-g5xeoq-0.jpg[0]' -resize "1024x1024>" '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-g5xeoq-020101008-80675-9tneve-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-g5xeoq-020101008-80675-9tneve-0[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-g5xeoq-020101008-80675-9tneve-0[0]' -resize "84x" -crop "84x84+0+20" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-g5xeoq-020101008-80675-9tneve-020101008-80675-1nf487t-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-g5xeoq-020101008-80675-9tneve-0[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-g5xeoq-020101008-80675-9tneve-0[0]' -resize "56x" -crop "56x56+0+13" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-g5xeoq-020101008-80675-9tneve-020101008-80675-1rg5z00-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-g5xeoq-020101008-80675-9tneve-0[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-g5xeoq-020101008-80675-9tneve-0[0]' -resize "308x" -crop "308x308+0+76" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-g5xeoq-020101008-80675-9tneve-020101008-80675-kei9sg-0' 2>/dev/null
+ [4;36;1mPhoto Create (0.6ms)[0m [0;1mINSERT INTO "photos" ("photo_file_size", "created_at", "title", "flickr_url", "photo_file_name", "updated_at", "photo_content_type", "photo_updated_at", "description", "sort") VALUES(498517, '2010-10-08 18:17:35', 'Church of Ireland', '', 'Church of Ireland.jpg', '2010-10-08 18:17:35', 'image/jpeg', '2010-10-08 18:17:33', '', NULL)[0m
+[paperclip] Saving attachments.
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/11/size8/Church of Ireland.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/11/size5/Church of Ireland.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/11/size3/Church of Ireland.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/11/original/Church of Ireland.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/11/size2/Church of Ireland.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/11/size11/Church of Ireland.jpg
+
+NoMethodError (undefined method `path' for nil:NilClass):
+ app/models/photo.rb:17:in `get_exif'
+ vendor/plugins/typus/app/controllers/admin/master_controller.rb:92:in `create'
+
+Rendered rescues/_trace (171.0ms)
+Rendered rescues/_request_and_response (0.4ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing Admin::PhotosController#create (for 127.0.0.1 at 2010-10-08 14:19:38) [POST]
+ Parameters: {"photo"=>{"photo"=>#, "title"=>"Church of Ireland", "flickr_url"=>"", "sort"=>"", "description"=>""}, "commit"=>"Create Photo", "action"=>"create", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.6ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-o135nr-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-o135nr-0.jpg[0]' -resize "224x" -crop "224x224+0+56" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-o135nr-020101008-80675-wij7rq-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-o135nr-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-o135nr-0.jpg[0]' -resize "140x" -crop "140x140+0+35" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-o135nr-020101008-80675-1swnk4g-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-o135nr-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-o135nr-0.jpg[0]' -resize "1024x1024>" '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-o135nr-020101008-80675-17vty88-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-o135nr-020101008-80675-17vty88-0[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-o135nr-020101008-80675-17vty88-0[0]' -resize "84x" -crop "84x84+0+20" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-o135nr-020101008-80675-17vty88-020101008-80675-nt9e06-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-o135nr-020101008-80675-17vty88-0[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-o135nr-020101008-80675-17vty88-0[0]' -resize "56x" -crop "56x56+0+13" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-o135nr-020101008-80675-17vty88-020101008-80675-1iopca8-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-o135nr-020101008-80675-17vty88-0[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-o135nr-020101008-80675-17vty88-0[0]' -resize "308x" -crop "308x308+0+76" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-o135nr-020101008-80675-17vty88-020101008-80675-s9lmu5-0' 2>/dev/null
+ [4;36;1mPhoto Create (0.9ms)[0m [0;1mINSERT INTO "photos" ("photo_file_size", "created_at", "title", "flickr_url", "photo_file_name", "updated_at", "photo_content_type", "photo_updated_at", "description", "sort") VALUES(498517, '2010-10-08 18:19:40', 'Church of Ireland', '', 'Church of Ireland.jpg', '2010-10-08 18:19:40', 'image/jpeg', '2010-10-08 18:19:38', '', NULL)[0m
+[paperclip] Saving attachments.
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/11/size8/Church of Ireland.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/11/size5/Church of Ireland.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/11/size3/Church of Ireland.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/11/original/Church of Ireland.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/11/size2/Church of Ireland.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/11/size11/Church of Ireland.jpg
+Redirected to http://localhost:3000/admin/photos/edit/11
+Completed in 2370ms (DB: 1) | 302 Found [http://localhost/admin/photos/create]
+
+
+Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 14:19:40) [GET]
+ Parameters: {"action"=>"edit", "id"=>"11", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.7ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mPhoto Load (0.3ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 11) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.5ms)
+Rendered admin/helpers/_preview (0.2ms)
+Rendered admin/templates/_file (5.0ms)
+Rendered admin/templates/_string (0.7ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_text (0.4ms)
+Rendered admin/templates/_string (0.7ms)
+Rendered admin/resources/_form (11.0ms)
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "categories" [0m
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" [0m
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 11 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 11) [0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 11 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 11) [0m
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 11 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.3ms)
+Rendered admin/helpers/_flash_message (0.1ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 58ms (View: 31, DB: 2) | 200 OK [http://localhost/admin/photos/edit/11]
+
+
+Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-08 14:20:01) [GET]
+ Parameters: {"action"=>"index", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.5ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/admin
+Rendering admin/resources/index
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.4ms)
+ [4;36;1mPhoto Load (0.9ms)[0m [0;1mSELECT "photos".* FROM "photos" ORDER BY photos.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.1ms)
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 1 ) [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 2 ) [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 3 ) [0m
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 4 ) [0m
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 5 ) [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 6 ) [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 7 ) [0m
+ [4;36;1mCategory Load (0.1ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 8 ) [0m
+ [4;35;1mCategory Load (0.1ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 10 ) [0m
+ [4;36;1mCategory Load (0.1ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 11 ) [0m
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.4ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 121ms (View: 98, DB: 4) | 200 OK [http://localhost/admin/photos]
+
+
+Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 14:20:04) [GET]
+ Parameters: {"action"=>"edit", "id"=>"11", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.6ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mPhoto Load (0.3ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 11) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.5ms)
+Rendered admin/helpers/_preview (0.2ms)
+Rendered admin/templates/_file (4.0ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_string (0.5ms)
+Rendered admin/templates/_text (0.4ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/resources/_form (9.3ms)
+ [4;35;1mSQL (0.1ms)[0m [0mSELECT count(*) AS count_all FROM "categories" [0m
+ [4;36;1mCategory Load (0.5ms)[0m [0;1mSELECT * FROM "categories" [0m
+ [4;35;1mCategory Load (0.1ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 11 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 11) [0m
+ [4;35;1mSQL (0.1ms)[0m [0mSELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 11 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 11) [0m
+ [4;35;1mCategory Load (0.1ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 11 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.4ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 49ms (View: 28, DB: 2) | 200 OK [http://localhost/admin/photos/edit/11]
+
+
+Processing PhotosController#new (for 127.0.0.1 at 2010-10-08 14:20:11) [GET]
+ [4;36;1mCategory Load (0.5ms)[0m [0;1mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering photos/new
+Completed in 26ms (View: 12, DB: 1) | 200 OK [http://localhost/photos/new]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 14:20:26) [GET]
+ [4;35;1mPhoto Load (1.0ms)[0m [0mSELECT * FROM "photos" [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 17ms (View: 10, DB: 1) | 200 OK [http://localhost/photos]
+
+
+Processing PhotosController#create (for 127.0.0.1 at 2010-10-08 14:20:48) [POST]
+ Parameters: {"photo"=>{"photo"=>#}, "commit"=>"Upload", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw="}
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-i5blh0-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-i5blh0-0.jpg[0]' -resize "224x" -crop "224x224+0+56" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-i5blh0-020101008-80675-1tlja46-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-i5blh0-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-i5blh0-0.jpg[0]' -resize "140x" -crop "140x140+0+35" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-i5blh0-020101008-80675-lmpodj-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-i5blh0-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-i5blh0-0.jpg[0]' -resize "1024x1024>" '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-i5blh0-020101008-80675-12hqa8i-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-i5blh0-020101008-80675-12hqa8i-0[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-i5blh0-020101008-80675-12hqa8i-0[0]' -resize "84x" -crop "84x84+0+20" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-i5blh0-020101008-80675-12hqa8i-020101008-80675-dhne88-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-i5blh0-020101008-80675-12hqa8i-0[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-i5blh0-020101008-80675-12hqa8i-0[0]' -resize "56x" -crop "56x56+0+13" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-i5blh0-020101008-80675-12hqa8i-020101008-80675-4vh02g-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-i5blh0-020101008-80675-12hqa8i-0[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-i5blh0-020101008-80675-12hqa8i-0[0]' -resize "308x" -crop "308x308+0+76" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-i5blh0-020101008-80675-12hqa8i-020101008-80675-1nofh9e-0' 2>/dev/null
+ [4;36;1mPhoto Create (0.4ms)[0m [0;1mINSERT INTO "photos" ("photo_file_size", "created_at", "title", "flickr_url", "photo_file_name", "updated_at", "photo_content_type", "photo_updated_at", "description", "sort") VALUES(389062, '2010-10-08 18:20:50', NULL, NULL, 'Croagh Patrick no1.jpg', '2010-10-08 18:20:50', 'image/jpeg', '2010-10-08 18:20:48', NULL, NULL)[0m
+[paperclip] Saving attachments.
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/12/size8/Croagh Patrick no1.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/12/size5/Croagh Patrick no1.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/12/size3/Croagh Patrick no1.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/12/original/Croagh Patrick no1.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/12/size2/Croagh Patrick no1.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/12/size11/Croagh Patrick no1.jpg
+Redirected to http://localhost:3000/photos/12
+Completed in 2282ms (DB: 0) | 302 Found [http://localhost/photos]
+
+
+Processing PhotosController#show (for 127.0.0.1 at 2010-10-08 14:20:50) [GET]
+ Parameters: {"id"=>"12"}
+ [4;35;1mPhoto Load (0.2ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 12) [0m
+Rendering template within layouts/photos
+Rendering photos/show
+Completed in 108ms (View: 5, DB: 0) | 200 OK [http://localhost/photos/12]
+
+
+Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-08 14:20:52) [GET]
+ Parameters: {"action"=>"index", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.6ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/admin
+Rendering admin/resources/index
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.5ms)
+ [4;36;1mPhoto Load (1.3ms)[0m [0;1mSELECT "photos".* FROM "photos" ORDER BY photos.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.1ms)
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 1 ) [0m
+ [4;36;1mCategory Load (0.5ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 2 ) [0m
+ [4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 3 ) [0m
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 4 ) [0m
+ [4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 5 ) [0m
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 6 ) [0m
+ [4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 7 ) [0m
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 8 ) [0m
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 10 ) [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 11 ) [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 12 ) [0m
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.4ms)
+Rendered admin/helpers/_flash_message (0.1ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 80ms (View: 52, DB: 6) | 200 OK [http://localhost/admin/photos]
+
+
+Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 14:20:55) [GET]
+ Parameters: {"action"=>"edit", "id"=>"12", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.5ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mPhoto Load (0.2ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 12) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.4ms)
+Rendered admin/helpers/_preview (0.2ms)
+Rendered admin/templates/_file (4.2ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_string (0.5ms)
+Rendered admin/templates/_text (0.4ms)
+Rendered admin/templates/_string (0.5ms)
+Rendered admin/resources/_form (9.3ms)
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" [0m
+ [4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" [0m
+ [4;36;1mCategory Load (0.1ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 12 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 12) [0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 12 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 12) [0m
+ [4;36;1mCategory Load (0.1ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 12 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.3ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 48ms (View: 28, DB: 2) | 200 OK [http://localhost/admin/photos/edit/12]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 14:21:06) [GET]
+ [4;35;1mPhoto Load (1.1ms)[0m [0mSELECT * FROM "photos" [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 18ms (View: 11, DB: 1) | 200 OK [http://localhost/photos]
+
+
+Processing PhotosController#index (for 192.168.42.102 at 2010-10-08 14:53:36) [GET]
+ [4;36;1mPhoto Load (1.3ms)[0m [0;1mSELECT * FROM "photos" [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 23ms (View: 16, DB: 1) | 200 OK [http://junpei/photos]
+
+
+Processing CategoriesController#index (for 192.168.42.102 at 2010-10-08 14:53:58) [GET]
+ [4;35;1mCategory Load (0.9ms)[0m [0mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering categories/index
+Completed in 60ms (View: 31, DB: 1) | 200 OK [http://junpei/categories]
+
+
+Processing ApplicationController#index (for 192.168.42.102 at 2010-10-08 14:53:59) [GET]
+
+ActionController::RoutingError (No route matches "/images/sg_grid_sub.png" with {:method=>:get}):
+
+
+Rendering rescues/layout (not_found)
+
+
+Processing PhotosController#index (for 192.168.42.102 at 2010-10-08 14:54:01) [GET]
+ Parameters: {"category_id"=>"1"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;35;1mPhoto Load (0.4ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Completed in 18ms (View: 8, DB: 1) | 200 OK [http://junpei/categories/1/photos]
+
+
+Processing ApplicationController#index (for 192.168.42.102 at 2010-10-08 14:54:01) [GET]
+
+ActionController::RoutingError (No route matches "/images/sg_grid_sub.png" with {:method=>:get}):
+
+
+Rendering rescues/layout (not_found)
+
+
+Processing PhotosController#index (for 192.168.42.102 at 2010-10-08 14:54:05) [GET]
+ Parameters: {"category_id"=>"2"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '2') LIMIT 1[0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;35;1mPhoto Load (0.4ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 2 ) [0m
+Completed in 77ms (View: 8, DB: 1) | 200 OK [http://junpei/categories/2/photos]
+
+
+Processing ApplicationController#index (for 192.168.42.102 at 2010-10-08 14:54:06) [GET]
+
+ActionController::RoutingError (No route matches "/images/sg_grid_sub.png" with {:method=>:get}):
+
+
+Rendering rescues/layout (not_found)
+
+
+Processing PhotosController#index (for 192.168.42.102 at 2010-10-08 14:54:09) [GET]
+ Parameters: {"category_id"=>"3"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '3') LIMIT 1[0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;35;1mPhoto Load (0.7ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 3 ) [0m
+Completed in 19ms (View: 8, DB: 1) | 200 OK [http://junpei/categories/3/photos]
+
+
+Processing ApplicationController#index (for 192.168.42.102 at 2010-10-08 14:54:09) [GET]
+
+ActionController::RoutingError (No route matches "/images/sg_grid_sub.png" with {:method=>:get}):
+
+
+Rendering rescues/layout (not_found)
+
+
+Processing PhotosController#index (for 192.168.42.102 at 2010-10-08 14:54:18) [GET]
+ Parameters: {"category_id"=>"4"}
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '4') LIMIT 1[0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;35;1mPhoto Load (0.5ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 4 ) [0m
+Completed in 26ms (View: 10, DB: 1) | 200 OK [http://junpei/categories/4/photos]
+
+
+Processing ApplicationController#index (for 192.168.42.102 at 2010-10-08 14:54:18) [GET]
+
+ActionController::RoutingError (No route matches "/images/sg_grid_sub.png" with {:method=>:get}):
+
+
+Rendering rescues/layout (not_found)
+
+
+Processing PhotosController#index (for 192.168.42.102 at 2010-10-08 14:54:29) [GET]
+ Parameters: {"category_id"=>"5"}
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '5') LIMIT 1[0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;35;1mPhoto Load (0.2ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 ) [0m
+Completed in 19ms (View: 6, DB: 1) | 200 OK [http://junpei/categories/5/photos]
+
+
+Processing ApplicationController#index (for 192.168.42.102 at 2010-10-08 14:54:30) [GET]
+
+ActionController::RoutingError (No route matches "/images/sg_grid_sub.png" with {:method=>:get}):
+
+
+Rendering rescues/layout (not_found)
+
+
+Processing PhotosController#index (for 192.168.42.102 at 2010-10-08 14:54:32) [GET]
+ Parameters: {"category_id"=>"6"}
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '6') LIMIT 1[0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;35;1mPhoto Load (0.6ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 6 ) [0m
+Completed in 22ms (View: 10, DB: 1) | 200 OK [http://junpei/categories/6/photos]
+
+
+Processing ApplicationController#index (for 192.168.42.102 at 2010-10-08 14:54:33) [GET]
+
+ActionController::RoutingError (No route matches "/images/sg_grid_sub.png" with {:method=>:get}):
+
+
+Rendering rescues/layout (not_found)
+
+
+Processing PhotosController#index (for 192.168.42.102 at 2010-10-08 14:54:53) [GET]
+ Parameters: {"category_id"=>"1"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;35;1mPhoto Load (0.4ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Completed in 17ms (View: 8, DB: 1) | 200 OK [http://junpei/categories/1/photos]
+
+
+Processing ApplicationController#index (for 192.168.42.102 at 2010-10-08 14:54:54) [GET]
+
+ActionController::RoutingError (No route matches "/images/sg_grid_sub.png" with {:method=>:get}):
+
+
+Rendering rescues/layout (not_found)
+
+
+Processing PhotosController#index (for 192.168.42.102 at 2010-10-08 15:19:23) [GET]
+ Parameters: {"category_id"=>"4"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '4') LIMIT 1[0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;35;1mPhoto Load (0.4ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 4 ) [0m
+Completed in 39ms (View: 9, DB: 1) | 200 OK [http://junpei/categories/4/photos]
+
+
+Processing ApplicationController#index (for 192.168.42.102 at 2010-10-08 15:19:23) [GET]
+
+ActionController::RoutingError (No route matches "/images/sg_grid_sub.png" with {:method=>:get}):
+
+
+Rendering rescues/layout (not_found)
+
+
+Processing PhotosController#index (for 192.168.42.102 at 2010-10-08 15:19:41) [GET]
+ Parameters: {"category_id"=>"2"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '2') LIMIT 1[0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;35;1mPhoto Load (0.4ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 2 ) [0m
+Completed in 16ms (View: 7, DB: 1) | 200 OK [http://junpei/categories/2/photos]
+
+
+Processing ApplicationController#index (for 192.168.42.102 at 2010-10-08 15:19:41) [GET]
+
+ActionController::RoutingError (No route matches "/images/sg_grid_sub.png" with {:method=>:get}):
+
+
+Rendering rescues/layout (not_found)
+
+
+Processing PhotosController#index (for 192.168.42.102 at 2010-10-08 15:19:59) [GET]
+ Parameters: {"category_id"=>"6"}
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '6') LIMIT 1[0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;35;1mPhoto Load (0.4ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 6 ) [0m
+Completed in 72ms (View: 7, DB: 1) | 200 OK [http://junpei/categories/6/photos]
+
+
+Processing ApplicationController#index (for 192.168.42.102 at 2010-10-08 15:20:00) [GET]
+
+ActionController::RoutingError (No route matches "/images/sg_grid_sub.png" with {:method=>:get}):
+
+
+Rendering rescues/layout (not_found)
+
+
+Processing PhotosController#index (for 192.168.42.102 at 2010-10-08 15:20:28) [GET]
+ Parameters: {"category_id"=>"5"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '5') LIMIT 1[0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;35;1mPhoto Load (0.2ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 ) [0m
+Completed in 13ms (View: 4, DB: 0) | 200 OK [http://junpei/categories/5/photos]
+
+
+Processing ApplicationController#index (for 192.168.42.102 at 2010-10-08 15:20:29) [GET]
+
+ActionController::RoutingError (No route matches "/images/sg_grid_sub.png" with {:method=>:get}):
+
+
+Rendering rescues/layout (not_found)
+
+
+Processing PhotosController#index (for 192.168.42.102 at 2010-10-08 15:20:32) [GET]
+ Parameters: {"category_id"=>"2"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '2') LIMIT 1[0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;35;1mPhoto Load (0.4ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 2 ) [0m
+Completed in 17ms (View: 7, DB: 1) | 200 OK [http://junpei/categories/2/photos]
+
+
+Processing ApplicationController#index (for 192.168.42.102 at 2010-10-08 15:20:33) [GET]
+
+ActionController::RoutingError (No route matches "/images/sg_grid_sub.png" with {:method=>:get}):
+
+
+Rendering rescues/layout (not_found)
+
+
+Processing TypusController#dashboard (for 192.168.42.102 at 2010-10-08 15:20:41) [GET]
+ Parameters: {"action"=>"dashboard", "controller"=>"typus"}
+Redirected to http://junpei:3000/admin/sign_in
+Filter chain halted as [:require_login] rendered_or_redirected.
+Completed in 217ms (DB: 0) | 302 Found [http://junpei/admin]
+
+
+Processing TypusController#sign_in (for 192.168.42.102 at 2010-10-08 15:20:41) [GET]
+ Parameters: {"action"=>"sign_in", "controller"=>"typus"}
+ [4;36;1mSQL (0.5ms)[0m [0;1mSELECT count(*) AS count_all FROM "typus_users" [0m
+Rendering template within layouts/typus
+Rendering typus/sign_in
+Rendered admin/shared/_footer (0.2ms)
+Completed in 32ms (View: 28, DB: 1) | 200 OK [http://junpei/admin/sign_in]
+
+
+Processing TypusController#sign_in (for 192.168.42.102 at 2010-10-08 15:21:11) [POST]
+ Parameters: {"typus_user"=>{"password"=>"[FILTERED]", "email"=>"danbee@gmail.com"}, "commit"=>"Sign in", "action"=>"sign_in", "authenticity_token"=>"PKpPTAedEzahxXzQabewgEm9kPrYc0PbZ/6cvAlIhEQ=", "controller"=>"typus"}
+ [4;35;1mSQL (0.6ms)[0m [0mSELECT count(*) AS count_all FROM "typus_users" [0m
+ [4;36;1mTypusUser Load (0.2ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."status" = 't' AND "typus_users"."email" = 'danbee@gmail.com') LIMIT 1[0m
+Redirected to http://junpei:3000/admin
+Completed in 8ms (DB: 1) | 302 Found [http://junpei/admin/sign_in]
+
+
+Processing TypusController#dashboard (for 192.168.42.102 at 2010-10-08 15:21:11) [GET]
+ Parameters: {"action"=>"dashboard", "controller"=>"typus"}
+ [4;35;1mTypusUser Load (0.6ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+Rendering template within layouts/admin
+Rendering typus/dashboard
+Rendered admin/dashboard/_sidebar (0.2ms)
+Rendered admin/helpers/_applications (2.1ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.3ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 26ms (View: 21, DB: 1) | 200 OK [http://junpei/admin]
+
+
+Processing Admin::PhotosController#index (for 192.168.42.102 at 2010-10-08 15:21:16) [GET]
+ Parameters: {"action"=>"index", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.5ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/admin
+Rendering admin/resources/index
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.6ms)
+ [4;36;1mPhoto Load (0.9ms)[0m [0;1mSELECT "photos".* FROM "photos" ORDER BY photos.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.1ms)
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 1 ) [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 2 ) [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 3 ) [0m
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 4 ) [0m
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 5 ) [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 6 ) [0m
+ [4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 7 ) [0m
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 8 ) [0m
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 10 ) [0m
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 11 ) [0m
+ [4;35;1mCategory Load (0.1ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 12 ) [0m
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.4ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 66ms (View: 42, DB: 4) | 200 OK [http://junpei/admin/photos]
+
+
+Processing Admin::PhotosController#edit (for 192.168.42.102 at 2010-10-08 15:21:25) [GET]
+ Parameters: {"action"=>"edit", "id"=>"1", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.5ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mPhoto Load (0.3ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 1) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.4ms)
+Rendered admin/helpers/_preview (0.2ms)
+Rendered admin/templates/_file (4.5ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_text (0.4ms)
+Rendered admin/templates/_string (0.5ms)
+Rendered admin/resources/_form (10.0ms)
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" [0m
+ [4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" [0m
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 1 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 1) [0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 1 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 1) [0m
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 1 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.1ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.5ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 110ms (View: 32, DB: 2) | 200 OK [http://junpei/admin/photos/edit/1]
+
+
+Processing Admin::PhotosController#relate (for 192.168.42.102 at 2010-10-08 15:21:36) [POST]
+ Parameters: {"commit"=>"Add", "related"=>{"model"=>"Category", "relation"=>"categories", "id"=>"5"}, "action"=>"relate", "authenticity_token"=>"PKpPTAedEzahxXzQabewgEm9kPrYc0PbZ/6cvAlIhEQ=", "id"=>"1", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.5ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mPhoto Load (0.4ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 1) [0m
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = 5) [0m
+ [4;36;1mSQL (0.3ms)[0m [0;1mINSERT INTO "categories_photos" ("category_id", "photo_id") VALUES (5, 1)[0m
+Redirected to http://junpei:3000/admin/photos/edit/1
+Completed in 28ms (DB: 1) | 302 Found [http://junpei/admin/photos/relate/1]
+
+
+Processing Admin::PhotosController#edit (for 192.168.42.102 at 2010-10-08 15:21:36) [GET]
+ Parameters: {"action"=>"edit", "id"=>"1", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.5ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mPhoto Load (0.4ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 1) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.6ms)
+Rendered admin/helpers/_preview (0.3ms)
+Rendered admin/templates/_file (5.8ms)
+Rendered admin/templates/_string (1.0ms)
+Rendered admin/templates/_string (0.7ms)
+Rendered admin/templates/_text (0.5ms)
+Rendered admin/templates/_string (0.9ms)
+Rendered admin/resources/_form (13.3ms)
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "categories" [0m
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 1 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 1) [0m
+ [4;35;1mSQL (0.3ms)[0m [0mSELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 1 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 1) [0m
+ [4;35;1mCategory Load (0.5ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 1 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.1ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.6ms)
+Rendered admin/helpers/_flash_message (0.1ms)
+Rendered admin/shared/_footer (0.3ms)
+Completed in 138ms (View: 45, DB: 3) | 200 OK [http://junpei/admin/photos/edit/1]
+
+
+Processing CategoriesController#index (for 192.168.42.102 at 2010-10-08 15:21:53) [GET]
+ [4;36;1mCategory Load (0.7ms)[0m [0;1mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering categories/index
+Completed in 9ms (View: 4, DB: 1) | 200 OK [http://junpei/categories]
+
+
+Processing ApplicationController#index (for 192.168.42.102 at 2010-10-08 15:21:54) [GET]
+
+ActionController::RoutingError (No route matches "/images/sg_grid_sub.png" with {:method=>:get}):
+
+
+Rendering rescues/layout (not_found)
+
+
+Processing PhotosController#index (for 192.168.42.102 at 2010-10-08 15:21:56) [GET]
+ Parameters: {"category_id"=>"5"}
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '5') LIMIT 1[0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;36;1mPhoto Load (0.3ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 ) [0m
+Completed in 15ms (View: 6, DB: 0) | 200 OK [http://junpei/categories/5/photos]
+
+
+Processing ApplicationController#index (for 192.168.42.102 at 2010-10-08 15:21:56) [GET]
+
+ActionController::RoutingError (No route matches "/images/sg_grid_sub.png" with {:method=>:get}):
+
+
+Rendering rescues/layout (not_found)
+
+
+Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 17:02:30) [GET]
+ Parameters: {"action"=>"edit", "id"=>"12", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.7ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mPhoto Load (0.3ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 12) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.4ms)
+Rendered admin/helpers/_preview (0.2ms)
+Rendered admin/templates/_file (4.6ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_string (0.5ms)
+Rendered admin/templates/_text (0.4ms)
+Rendered admin/templates/_string (0.5ms)
+Rendered admin/resources/_form (9.9ms)
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "categories" [0m
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" [0m
+ [4;35;1mCategory Load (0.1ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 12 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 12) [0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 12 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 12) [0m
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 12 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.4ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 165ms (View: 45, DB: 2) | 200 OK [http://localhost/admin/photos/edit/12]
+
+
+Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-08 17:02:41) [GET]
+ Parameters: {"action"=>"index", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.5ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/admin
+Rendering admin/resources/index
+Rendered admin/helpers/_list (0.2ms)
+Rendered admin/helpers/_search (0.5ms)
+ [4;36;1mPhoto Load (0.9ms)[0m [0;1mSELECT "photos".* FROM "photos" ORDER BY photos.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.1ms)
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 1 ) [0m
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 2 ) [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 3 ) [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 4 ) [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 5 ) [0m
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 6 ) [0m
+ [4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 7 ) [0m
+ [4;36;1mCategory Load (0.1ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 8 ) [0m
+ [4;35;1mCategory Load (0.1ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 10 ) [0m
+ [4;36;1mCategory Load (0.1ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 11 ) [0m
+ [4;35;1mCategory Load (0.1ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 12 ) [0m
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.8ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 123ms (View: 100, DB: 4) | 200 OK [http://localhost/admin/photos]
+
+
+Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 17:02:44) [GET]
+ Parameters: {"action"=>"edit", "id"=>"12", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.6ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mPhoto Load (0.2ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 12) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.4ms)
+Rendered admin/helpers/_preview (0.2ms)
+Rendered admin/templates/_file (4.0ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_string (0.5ms)
+Rendered admin/templates/_text (0.5ms)
+Rendered admin/templates/_string (0.5ms)
+Rendered admin/resources/_form (9.1ms)
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" [0m
+ [4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" [0m
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 12 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 12) [0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 12 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 12) [0m
+ [4;36;1mCategory Load (0.1ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 12 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_header (0.2ms)
+Rendered admin/helpers/_login_info (0.4ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 109ms (View: 88, DB: 2) | 200 OK [http://localhost/admin/photos/edit/12]
+
+
+Processing Admin::PhotosController#relate (for 127.0.0.1 at 2010-10-08 17:02:56) [POST]
+ Parameters: {"commit"=>"Add", "related"=>{"model"=>"Category", "relation"=>"categories", "id"=>"1"}, "action"=>"relate", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "id"=>"12", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.5ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mPhoto Load (0.3ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 12) [0m
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = 1) [0m
+ [4;36;1mSQL (22.9ms)[0m [0;1mINSERT INTO "categories_photos" ("category_id", "photo_id") VALUES (1, 12)[0m
+Redirected to http://localhost:3000/admin/photos/edit/12
+Completed in 49ms (DB: 24) | 302 Found [http://localhost/admin/photos/relate/12]
+
+
+Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 17:02:56) [GET]
+ Parameters: {"action"=>"edit", "id"=>"12", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.5ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mPhoto Load (0.2ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 12) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.4ms)
+Rendered admin/helpers/_preview (0.2ms)
+Rendered admin/templates/_file (4.0ms)
+Rendered admin/templates/_string (0.7ms)
+Rendered admin/templates/_string (0.5ms)
+Rendered admin/templates/_text (0.4ms)
+Rendered admin/templates/_string (0.5ms)
+Rendered admin/resources/_form (9.1ms)
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "categories" [0m
+ [4;36;1mCategory Load (0.6ms)[0m [0;1mSELECT * FROM "categories" [0m
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 12 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 12) [0m
+ [4;35;1mSQL (0.3ms)[0m [0mSELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 12 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 12) [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 12 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.1ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.3ms)
+Rendered admin/helpers/_flash_message (0.1ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 113ms (View: 92, DB: 2) | 200 OK [http://localhost/admin/photos/edit/12]
+
+
+Processing Admin::PhotosController#update (for 127.0.0.1 at 2010-10-08 17:02:57) [PUT]
+ Parameters: {"photo"=>{"title"=>"", "flickr_url"=>"", "sort"=>"", "description"=>""}, "commit"=>"Save Photo", "action"=>"update", "_method"=>"put", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "id"=>"12", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.6ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mPhoto Load (0.2ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 12) [0m
+ [4;36;1mPhoto Update (0.4ms)[0m [0;1mUPDATE "photos" SET "updated_at" = '2010-10-08 21:02:57', "title" = '', "flickr_url" = '', "description" = '' WHERE "id" = 12[0m
+[paperclip] Saving attachments.
+Redirected to http://localhost:3000/admin/photos/edit/12
+Completed in 45ms (DB: 1) | 302 Found [http://localhost/admin/photos/update/12]
+
+
+Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 17:02:57) [GET]
+ Parameters: {"action"=>"edit", "id"=>"12", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.5ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mPhoto Load (0.4ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 12) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.6ms)
+Rendered admin/helpers/_preview (0.2ms)
+Rendered admin/templates/_file (4.3ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_text (0.5ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/resources/_form (10.1ms)
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "categories" [0m
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" [0m
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 12 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 12) [0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 12 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 12) [0m
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 12 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.1ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.5ms)
+Rendered admin/helpers/_flash_message (0.1ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 119ms (View: 35, DB: 2) | 200 OK [http://localhost/admin/photos/edit/12]
+
+
+Processing Admin::PhotosController#update (for 127.0.0.1 at 2010-10-08 17:03:05) [PUT]
+ Parameters: {"photo"=>{"title"=>"Croagh Patrick #1", "flickr_url"=>"", "sort"=>"", "description"=>""}, "commit"=>"Save Photo", "action"=>"update", "_method"=>"put", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "id"=>"12", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.5ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mPhoto Load (0.3ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 12) [0m
+ [4;36;1mPhoto Update (0.3ms)[0m [0;1mUPDATE "photos" SET "updated_at" = '2010-10-08 21:03:05', "title" = 'Croagh Patrick #1' WHERE "id" = 12[0m
+[paperclip] Saving attachments.
+Redirected to http://localhost:3000/admin/photos/edit/12
+Completed in 30ms (DB: 1) | 302 Found [http://localhost/admin/photos/update/12]
+
+
+Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 17:03:05) [GET]
+ Parameters: {"action"=>"edit", "id"=>"12", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.5ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mPhoto Load (0.3ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 12) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.5ms)
+Rendered admin/helpers/_preview (0.2ms)
+Rendered admin/templates/_file (4.3ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_string (0.5ms)
+Rendered admin/templates/_text (0.4ms)
+Rendered admin/templates/_string (0.5ms)
+Rendered admin/resources/_form (9.6ms)
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "categories" [0m
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" [0m
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 12 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 12) [0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 12 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 12) [0m
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 12 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.1ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.3ms)
+Rendered admin/helpers/_flash_message (0.1ms)
+Rendered admin/shared/_footer (0.3ms)
+Completed in 54ms (View: 32, DB: 2) | 200 OK [http://localhost/admin/photos/edit/12]
+
+
+Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-08 17:03:07) [GET]
+ Parameters: {"action"=>"index", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.5ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/admin
+Rendering admin/resources/index
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.4ms)
+ [4;36;1mPhoto Load (1.0ms)[0m [0;1mSELECT "photos".* FROM "photos" ORDER BY photos.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.1ms)
+ [4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 1 ) [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 2 ) [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 3 ) [0m
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 4 ) [0m
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 5 ) [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 6 ) [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 7 ) [0m
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 8 ) [0m
+ [4;35;1mCategory Load (0.1ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 10 ) [0m
+ [4;36;1mCategory Load (0.1ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 11 ) [0m
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 12 ) [0m
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.8ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 122ms (View: 99, DB: 4) | 200 OK [http://localhost/admin/photos]
+
+
+Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 17:03:11) [GET]
+ Parameters: {"action"=>"edit", "id"=>"11", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.6ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mPhoto Load (0.3ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 11) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.5ms)
+Rendered admin/helpers/_preview (0.1ms)
+Rendered admin/templates/_file (4.1ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_text (0.4ms)
+Rendered admin/templates/_string (0.5ms)
+Rendered admin/resources/_form (9.3ms)
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" [0m
+ [4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" [0m
+ [4;36;1mCategory Load (0.1ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 11 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 11) [0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 11 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 11) [0m
+ [4;36;1mCategory Load (0.1ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 11 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.3ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 51ms (View: 27, DB: 2) | 200 OK [http://localhost/admin/photos/edit/11]
+
+
+Processing Admin::PhotosController#relate (for 127.0.0.1 at 2010-10-08 17:03:16) [POST]
+ Parameters: {"commit"=>"Add", "related"=>{"model"=>"Category", "relation"=>"categories", "id"=>"1"}, "action"=>"relate", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "id"=>"11", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.6ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mPhoto Load (0.2ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 11) [0m
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = 1) [0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mINSERT INTO "categories_photos" ("category_id", "photo_id") VALUES (1, 11)[0m
+Redirected to http://localhost:3000/admin/photos/edit/11
+Completed in 28ms (DB: 1) | 302 Found [http://localhost/admin/photos/relate/11]
+
+
+Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 17:03:16) [GET]
+ Parameters: {"action"=>"edit", "id"=>"11", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.5ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mPhoto Load (0.3ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 11) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.4ms)
+Rendered admin/helpers/_preview (0.2ms)
+Rendered admin/templates/_file (5.3ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_text (0.4ms)
+Rendered admin/templates/_string (0.5ms)
+Rendered admin/resources/_form (10.7ms)
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "categories" [0m
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" [0m
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 11 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 11) [0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 11 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 11) [0m
+ [4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 11 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.1ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.4ms)
+Rendered admin/helpers/_flash_message (0.1ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 110ms (View: 89, DB: 2) | 200 OK [http://localhost/admin/photos/edit/11]
+
+
+Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-08 17:03:23) [GET]
+ Parameters: {"action"=>"index", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.6ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mSQL (0.3ms)[0m [0mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/admin
+Rendering admin/resources/index
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.7ms)
+ [4;36;1mPhoto Load (1.8ms)[0m [0;1mSELECT "photos".* FROM "photos" ORDER BY photos.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.1ms)
+ [4;35;1mCategory Load (0.5ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 1 ) [0m
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 2 ) [0m
+ [4;35;1mCategory Load (0.5ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 3 ) [0m
+ [4;36;1mCategory Load (0.5ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 4 ) [0m
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 5 ) [0m
+ [4;36;1mCategory Load (0.5ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 6 ) [0m
+ [4;35;1mCategory Load (0.6ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 7 ) [0m
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 8 ) [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 10 ) [0m
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 11 ) [0m
+ [4;35;1mCategory Load (0.5ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 12 ) [0m
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.4ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 95ms (View: 60, DB: 7) | 200 OK [http://localhost/admin/photos]
+
+
+Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 17:03:27) [GET]
+ Parameters: {"action"=>"edit", "id"=>"8", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.5ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mPhoto Load (0.3ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 8) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.5ms)
+Rendered admin/helpers/_preview (0.2ms)
+Rendered admin/templates/_file (82.6ms)
+Rendered admin/templates/_string (0.9ms)
+Rendered admin/templates/_string (0.8ms)
+Rendered admin/templates/_text (0.6ms)
+Rendered admin/templates/_string (0.8ms)
+Rendered admin/resources/_form (89.6ms)
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" [0m
+ [4;35;1mCategory Load (0.6ms)[0m [0mSELECT * FROM "categories" [0m
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 8 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 8) [0m
+ [4;36;1mSQL (0.3ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 8 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 8) [0m
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 8 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.5ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 134ms (View: 112, DB: 2) | 200 OK [http://localhost/admin/photos/edit/8]
+
+
+Processing Admin::PhotosController#relate (for 127.0.0.1 at 2010-10-08 17:03:31) [POST]
+ Parameters: {"commit"=>"Add", "related"=>{"model"=>"Category", "relation"=>"categories", "id"=>"4"}, "action"=>"relate", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "id"=>"8", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.5ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mPhoto Load (0.3ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 8) [0m
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = 4) [0m
+ [4;36;1mSQL (0.3ms)[0m [0;1mINSERT INTO "categories_photos" ("category_id", "photo_id") VALUES (4, 8)[0m
+Redirected to http://localhost:3000/admin/photos/edit/8
+Completed in 26ms (DB: 1) | 302 Found [http://localhost/admin/photos/relate/8]
+
+
+Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 17:03:31) [GET]
+ Parameters: {"action"=>"edit", "id"=>"8", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.5ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mPhoto Load (0.3ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 8) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.6ms)
+Rendered admin/helpers/_preview (0.2ms)
+Rendered admin/templates/_file (4.0ms)
+Rendered admin/templates/_string (0.7ms)
+Rendered admin/templates/_string (0.5ms)
+Rendered admin/templates/_text (0.4ms)
+Rendered admin/templates/_string (0.5ms)
+Rendered admin/resources/_form (9.2ms)
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "categories" [0m
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" [0m
+ [4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 8 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 8) [0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 8 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 8) [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 8 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.1ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.3ms)
+Rendered admin/helpers/_flash_message (0.1ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 54ms (View: 33, DB: 2) | 200 OK [http://localhost/admin/photos/edit/8]
+
+
+Processing Admin::PhotosController#relate (for 127.0.0.1 at 2010-10-08 17:03:34) [POST]
+ Parameters: {"commit"=>"Add", "related"=>{"model"=>"Category", "relation"=>"categories", "id"=>"1"}, "action"=>"relate", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "id"=>"8", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.6ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mPhoto Load (0.2ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 8) [0m
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = 1) [0m
+ [4;35;1mSQL (0.3ms)[0m [0mINSERT INTO "categories_photos" ("category_id", "photo_id") VALUES (1, 8)[0m
+Redirected to http://localhost:3000/admin/photos/edit/8
+Completed in 85ms (DB: 1) | 302 Found [http://localhost/admin/photos/relate/8]
+
+
+Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 17:03:34) [GET]
+ Parameters: {"action"=>"edit", "id"=>"8", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.7ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mPhoto Load (0.3ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 8) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.6ms)
+Rendered admin/helpers/_preview (0.2ms)
+Rendered admin/templates/_file (4.3ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_string (0.5ms)
+Rendered admin/templates/_text (0.4ms)
+Rendered admin/templates/_string (0.5ms)
+Rendered admin/resources/_form (9.8ms)
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" [0m
+ [4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 8 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 8) [0m
+ [4;36;1mSQL (0.3ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 8 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 8) [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 8 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.1ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.3ms)
+Rendered admin/helpers/_flash_message (0.1ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 57ms (View: 35, DB: 2) | 200 OK [http://localhost/admin/photos/edit/8]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 17:03:37) [GET]
+ [4;35;1mPhoto Load (1.0ms)[0m [0mSELECT * FROM "photos" [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 61ms (View: 55, DB: 1) | 200 OK [http://localhost/photos]
+
+
+Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-08 17:03:41) [GET]
+ Parameters: {"action"=>"index", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.5ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/admin
+Rendering admin/resources/index
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.5ms)
+ [4;36;1mPhoto Load (0.9ms)[0m [0;1mSELECT "photos".* FROM "photos" ORDER BY photos.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.1ms)
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 1 ) [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 2 ) [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 3 ) [0m
+ [4;36;1mCategory Load (0.5ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 4 ) [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 5 ) [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 6 ) [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 7 ) [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 8 ) [0m
+ [4;35;1mCategory Load (0.1ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 10 ) [0m
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 11 ) [0m
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 12 ) [0m
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.4ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 66ms (View: 41, DB: 5) | 200 OK [http://localhost/admin/photos]
+
+
+Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 17:03:46) [GET]
+ Parameters: {"action"=>"edit", "id"=>"10", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.5ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mPhoto Load (0.3ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 10) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.4ms)
+Rendered admin/helpers/_preview (0.2ms)
+Rendered admin/templates/_file (4.0ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_text (0.4ms)
+Rendered admin/templates/_string (0.5ms)
+Rendered admin/resources/_form (9.1ms)
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" [0m
+ [4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" [0m
+ [4;36;1mCategory Load (0.1ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 10 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 10) [0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 10 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 10) [0m
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 10 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.4ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 49ms (View: 28, DB: 2) | 200 OK [http://localhost/admin/photos/edit/10]
+
+
+Processing Admin::PhotosController#relate (for 127.0.0.1 at 2010-10-08 17:03:50) [POST]
+ Parameters: {"commit"=>"Add", "related"=>{"model"=>"Category", "relation"=>"categories", "id"=>"2"}, "action"=>"relate", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "id"=>"10", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.6ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mPhoto Load (0.3ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 10) [0m
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = 2) [0m
+ [4;36;1mSQL (0.3ms)[0m [0;1mINSERT INTO "categories_photos" ("category_id", "photo_id") VALUES (2, 10)[0m
+Redirected to http://localhost:3000/admin/photos/edit/10
+Completed in 26ms (DB: 1) | 302 Found [http://localhost/admin/photos/relate/10]
+
+
+Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 17:03:50) [GET]
+ Parameters: {"action"=>"edit", "id"=>"10", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.5ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mPhoto Load (0.3ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 10) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.6ms)
+Rendered admin/helpers/_preview (0.2ms)
+Rendered admin/templates/_file (5.2ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_text (0.4ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/resources/_form (10.6ms)
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "categories" [0m
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" [0m
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 10 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 10) [0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 10 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 10) [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 10 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.1ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.3ms)
+Rendered admin/helpers/_flash_message (0.1ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 54ms (View: 32, DB: 2) | 200 OK [http://localhost/admin/photos/edit/10]
+
+
+Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 17:03:52) [GET]
+ Parameters: {"action"=>"edit", "id"=>"10", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.6ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mPhoto Load (0.3ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 10) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.4ms)
+Rendered admin/helpers/_preview (0.2ms)
+Rendered admin/templates/_file (4.6ms)
+Rendered admin/templates/_string (0.7ms)
+Rendered admin/templates/_string (0.7ms)
+Rendered admin/templates/_text (0.6ms)
+Rendered admin/templates/_string (1.0ms)
+Rendered admin/resources/_form (11.7ms)
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" [0m
+ [4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" [0m
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 10 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 10) [0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 10 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 10) [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 10 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.1ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.4ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 117ms (View: 91, DB: 2) | 200 OK [http://localhost/admin/photos/edit/10]
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 17:03:57) [GET]
+ [4;35;1mCategory Load (1.2ms)[0m [0mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering categories/index
+Completed in 28ms (View: 20, DB: 1) | 200 OK [http://localhost/categories]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 17:03:59) [GET]
+ Parameters: {"category_id"=>"4"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '4') LIMIT 1[0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;35;1mPhoto Load (0.4ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 4 ) [0m
+Completed in 18ms (View: 8, DB: 1) | 200 OK [http://localhost/categories/4/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 17:04:02) [GET]
+ Parameters: {"category_id"=>"1"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;35;1mPhoto Load (0.7ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Completed in 76ms (View: 66, DB: 1) | 200 OK [http://localhost/categories/1/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 17:04:40) [GET]
+ Parameters: {"category_id"=>"4"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '4') LIMIT 1[0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;35;1mPhoto Load (0.6ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 4 ) [0m
+Completed in 18ms (View: 8, DB: 1) | 200 OK [http://localhost/categories/4/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 17:04:43) [GET]
+ Parameters: {"category_id"=>"5"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '5') LIMIT 1[0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;35;1mPhoto Load (0.3ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 ) [0m
+Completed in 15ms (View: 6, DB: 0) | 200 OK [http://localhost/categories/5/photos]
+
+
+Processing Admin::PhotosController#new (for 127.0.0.1 at 2010-10-08 17:04:49) [GET]
+ Parameters: {"action"=>"new", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.5ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/new
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/templates/_file (1.7ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_string (0.5ms)
+Rendered admin/templates/_text (0.4ms)
+Rendered admin/templates/_string (0.5ms)
+Rendered admin/resources/_form (7.3ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.3ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 96ms (View: 17, DB: 1) | 200 OK [http://localhost/admin/photos/new]
+
+
+Processing Admin::PhotosController#create (for 127.0.0.1 at 2010-10-08 17:05:07) [POST]
+ Parameters: {"photo"=>{"photo"=>#, "title"=>"Croagh Patrick #2", "flickr_url"=>"", "sort"=>"", "description"=>""}, "commit"=>"Create Photo", "action"=>"create", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.6ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-btlhmu-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-btlhmu-0.jpg[0]' -resize "x224" -crop "224x224+103+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-btlhmu-020101008-80675-1iu1e1c-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-btlhmu-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-btlhmu-0.jpg[0]' -resize "x140" -crop "140x140+64+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-btlhmu-020101008-80675-1hendga-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-btlhmu-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-btlhmu-0.jpg[0]' -resize "1024x1024>" '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-btlhmu-020101008-80675-608lmi-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-btlhmu-020101008-80675-608lmi-0[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-btlhmu-020101008-80675-608lmi-0[0]' -resize "x84" -crop "84x84+38+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-btlhmu-020101008-80675-608lmi-020101008-80675-17e0iqi-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-btlhmu-020101008-80675-608lmi-0[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-btlhmu-020101008-80675-608lmi-0[0]' -resize "x56" -crop "56x56+25+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-btlhmu-020101008-80675-608lmi-020101008-80675-1f832u2-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-btlhmu-020101008-80675-608lmi-0[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-btlhmu-020101008-80675-608lmi-0[0]' -resize "x308" -crop "308x308+141+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-btlhmu-020101008-80675-608lmi-020101008-80675-1hhwn8x-0' 2>/dev/null
+ [4;36;1mPhoto Create (0.4ms)[0m [0;1mINSERT INTO "photos" ("photo_file_size", "created_at", "title", "flickr_url", "photo_file_name", "updated_at", "photo_content_type", "photo_updated_at", "description", "sort") VALUES(91876, '2010-10-08 21:05:10', 'Croagh Patrick #2', '', 'Croagh Patrick no2.jpg', '2010-10-08 21:05:10', 'image/jpeg', '2010-10-08 21:05:07', '', NULL)[0m
+[paperclip] Saving attachments.
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/13/size8/Croagh Patrick no2.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/13/size5/Croagh Patrick no2.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/13/size3/Croagh Patrick no2.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/13/original/Croagh Patrick no2.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/13/size2/Croagh Patrick no2.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/13/size11/Croagh Patrick no2.jpg
+Redirected to http://localhost:3000/admin/photos/edit/13
+Completed in 3271ms (DB: 1) | 302 Found [http://localhost/admin/photos/create]
+
+
+Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 17:05:10) [GET]
+ Parameters: {"action"=>"edit", "id"=>"13", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.5ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mPhoto Load (0.2ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 13) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.5ms)
+Rendered admin/helpers/_preview (0.2ms)
+Rendered admin/templates/_file (6.4ms)
+Rendered admin/templates/_string (0.7ms)
+Rendered admin/templates/_string (0.9ms)
+Rendered admin/templates/_text (0.4ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/resources/_form (12.5ms)
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "categories" [0m
+ [4;36;1mCategory Load (0.5ms)[0m [0;1mSELECT * FROM "categories" [0m
+ [4;35;1mCategory Load (0.1ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 13 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 13) [0m
+ [4;35;1mSQL (0.4ms)[0m [0mSELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 13 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 13) [0m
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 13 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.6ms)
+Rendered admin/helpers/_flash_message (0.1ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 204ms (View: 181, DB: 2) | 200 OK [http://localhost/admin/photos/edit/13]
+
+
+Processing Admin::PhotosController#relate (for 127.0.0.1 at 2010-10-08 17:05:17) [POST]
+ Parameters: {"commit"=>"Add", "related"=>{"model"=>"Category", "relation"=>"categories", "id"=>"4"}, "action"=>"relate", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "id"=>"13", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.5ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mPhoto Load (0.3ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 13) [0m
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = 4) [0m
+ [4;35;1mSQL (0.3ms)[0m [0mINSERT INTO "categories_photos" ("category_id", "photo_id") VALUES (4, 13)[0m
+Redirected to http://localhost:3000/admin/photos/edit/13
+Completed in 26ms (DB: 1) | 302 Found [http://localhost/admin/photos/relate/13]
+
+
+Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 17:05:17) [GET]
+ Parameters: {"action"=>"edit", "id"=>"13", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.8ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mPhoto Load (0.3ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 13) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.4ms)
+Rendered admin/helpers/_preview (0.2ms)
+Rendered admin/templates/_file (4.9ms)
+Rendered admin/templates/_string (0.7ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_text (0.4ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/resources/_form (10.5ms)
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" [0m
+ [4;35;1mCategory Load (0.5ms)[0m [0mSELECT * FROM "categories" [0m
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 13 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 13) [0m
+ [4;36;1mSQL (0.3ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 13 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 13) [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 13 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.1ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.3ms)
+Rendered admin/helpers/_flash_message (0.1ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 123ms (View: 99, DB: 2) | 200 OK [http://localhost/admin/photos/edit/13]
+
+
+Processing Admin::PhotosController#relate (for 127.0.0.1 at 2010-10-08 17:05:20) [POST]
+ Parameters: {"commit"=>"Add", "related"=>{"model"=>"Category", "relation"=>"categories", "id"=>"1"}, "action"=>"relate", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "id"=>"13", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.6ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mPhoto Load (0.2ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 13) [0m
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = 1) [0m
+ [4;36;1mSQL (0.3ms)[0m [0;1mINSERT INTO "categories_photos" ("category_id", "photo_id") VALUES (1, 13)[0m
+Redirected to http://localhost:3000/admin/photos/edit/13
+Completed in 28ms (DB: 1) | 302 Found [http://localhost/admin/photos/relate/13]
+
+
+Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 17:05:20) [GET]
+ Parameters: {"action"=>"edit", "id"=>"13", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.5ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mPhoto Load (0.3ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 13) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.5ms)
+Rendered admin/helpers/_preview (0.3ms)
+Rendered admin/templates/_file (63.7ms)
+Rendered admin/templates/_string (0.7ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_text (0.5ms)
+Rendered admin/templates/_string (0.5ms)
+Rendered admin/resources/_form (70.0ms)
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "categories" [0m
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 13 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 13) [0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 13 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 13) [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 13 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.1ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.3ms)
+Rendered admin/helpers/_flash_message (0.1ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 114ms (View: 93, DB: 2) | 200 OK [http://localhost/admin/photos/edit/13]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 17:05:23) [GET]
+ Parameters: {"category_id"=>"1"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;35;1mPhoto Load (0.8ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Completed in 21ms (View: 11, DB: 1) | 200 OK [http://localhost/categories/1/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 17:05:26) [GET]
+ Parameters: {"category_id"=>"4"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '4') LIMIT 1[0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;35;1mPhoto Load (0.8ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 4 ) [0m
+Completed in 22ms (View: 11, DB: 1) | 200 OK [http://localhost/categories/4/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 17:05:29) [GET]
+ Parameters: {"category_id"=>"2"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '2') LIMIT 1[0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;35;1mPhoto Load (0.5ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 2 ) [0m
+Completed in 78ms (View: 8, DB: 1) | 200 OK [http://localhost/categories/2/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 17:05:33) [GET]
+ Parameters: {"category_id"=>"6"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '6') LIMIT 1[0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;35;1mPhoto Load (0.3ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 6 ) [0m
+Completed in 16ms (View: 7, DB: 1) | 200 OK [http://localhost/categories/6/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 17:05:35) [GET]
+ Parameters: {"category_id"=>"2"}
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '2') LIMIT 1[0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;35;1mPhoto Load (0.4ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 2 ) [0m
+Completed in 18ms (View: 8, DB: 1) | 200 OK [http://localhost/categories/2/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 17:06:13) [GET]
+ Parameters: {"category_id"=>"6"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '6') LIMIT 1[0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;35;1mPhoto Load (0.4ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 6 ) [0m
+Completed in 71ms (View: 61, DB: 1) | 200 OK [http://localhost/categories/6/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 17:06:19) [GET]
+ Parameters: {"category_id"=>"1"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;35;1mPhoto Load (0.8ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Completed in 22ms (View: 11, DB: 1) | 200 OK [http://localhost/categories/1/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 03:57:31) [GET]
+ Parameters: {"category_id"=>"5"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '5') LIMIT 1[0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;35;1mPhoto Load (0.3ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 ) [0m
+Completed in 29ms (View: 17, DB: 1) | 200 OK [http://localhost/categories/5/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 03:57:32) [GET]
+ Parameters: {"category_id"=>"1"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;35;1mPhoto Load (0.7ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Completed in 20ms (View: 11, DB: 1) | 200 OK [http://localhost/categories/1/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 04:39:02) [GET]
+ Parameters: {"category_id"=>"5"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '5') LIMIT 1[0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;35;1mPhoto Load (0.4ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 ) [0m
+Completed in 51ms (View: 42, DB: 1) | 200 OK [http://localhost/categories/5/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 04:41:24) [GET]
+ Parameters: {"category_id"=>"6"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '6') LIMIT 1[0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;35;1mPhoto Load (0.4ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 6 ) [0m
+Completed in 17ms (View: 8, DB: 1) | 200 OK [http://localhost/categories/6/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 04:41:27) [GET]
+ Parameters: {"category_id"=>"2"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '2') LIMIT 1[0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;35;1mPhoto Load (0.5ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 2 ) [0m
+Completed in 20ms (View: 8, DB: 1) | 200 OK [http://localhost/categories/2/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 04:41:29) [GET]
+ Parameters: {"category_id"=>"1"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;35;1mPhoto Load (0.7ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Completed in 21ms (View: 11, DB: 1) | 200 OK [http://localhost/categories/1/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 04:41:33) [GET]
+ Parameters: {"category_id"=>"2"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '2') LIMIT 1[0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;35;1mPhoto Load (0.5ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 2 ) [0m
+Completed in 18ms (View: 8, DB: 1) | 200 OK [http://localhost/categories/2/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 04:41:46) [GET]
+ Parameters: {"category_id"=>"5"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '5') LIMIT 1[0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;35;1mPhoto Load (0.4ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 ) [0m
+Completed in 17ms (View: 7, DB: 1) | 200 OK [http://localhost/categories/5/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 04:42:02) [GET]
+ Parameters: {"category_id"=>"2"}
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '2') LIMIT 1[0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;35;1mPhoto Load (0.5ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 2 ) [0m
+Completed in 20ms (View: 10, DB: 1) | 200 OK [http://localhost/categories/2/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 04:42:19) [GET]
+ Parameters: {"category_id"=>"1"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;35;1mPhoto Load (0.7ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Completed in 20ms (View: 10, DB: 1) | 200 OK [http://localhost/categories/1/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 04:43:02) [GET]
+ Parameters: {"category_id"=>"3"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '3') LIMIT 1[0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;35;1mPhoto Load (0.3ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 3 ) [0m
+Completed in 17ms (View: 7, DB: 1) | 200 OK [http://localhost/categories/3/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 04:46:56) [GET]
+ [4;36;1mPhoto Load (1.1ms)[0m [0;1mSELECT * FROM "photos" [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 67ms (View: 60, DB: 1) | 200 OK [http://localhost/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 04:47:01) [GET]
+ [4;35;1mPhoto Load (1.3ms)[0m [0mSELECT * FROM "photos" [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 19ms (View: 12, DB: 1) | 200 OK [http://localhost/photos]
+
+
+Processing PhotosController#index (for 192.168.42.18 at 2010-10-09 04:49:22) [GET]
+ [4;36;1mPhoto Load (1.2ms)[0m [0;1mSELECT * FROM "photos" [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 19ms (View: 12, DB: 1) | 200 OK [http://junpei/photos]
+
+
+Processing ApplicationController#index (for 192.168.42.18 at 2010-10-09 04:49:22) [GET]
+
+ActionController::RoutingError (No route matches "/images/sg_grid_sub.png" with {:method=>:get}):
+
+
+Rendering rescues/layout (not_found)
+
+
+Processing CategoriesController#index (for 192.168.42.18 at 2010-10-09 04:49:32) [GET]
+ [4;35;1mCategory Load (0.8ms)[0m [0mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering categories/index
+Completed in 30ms (View: 25, DB: 1) | 200 OK [http://junpei/categories]
+
+
+Processing PhotosController#index (for 192.168.42.18 at 2010-10-09 04:49:39) [GET]
+ Parameters: {"category_id"=>"4"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '4') LIMIT 1[0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;35;1mPhoto Load (0.5ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 4 ) [0m
+Completed in 17ms (View: 8, DB: 1) | 200 OK [http://junpei/categories/4/photos]
+
+
+Processing PhotosController#index (for 192.168.42.18 at 2010-10-09 04:49:54) [GET]
+ Parameters: {"category_id"=>"6"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '6') LIMIT 1[0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;35;1mPhoto Load (0.4ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 6 ) [0m
+Completed in 18ms (View: 8, DB: 1) | 200 OK [http://junpei/categories/6/photos]
+
+
+Processing PhotosController#index (for 192.168.42.18 at 2010-10-09 04:50:13) [GET]
+ Parameters: {"category_id"=>"6"}
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '6') LIMIT 1[0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;35;1mPhoto Load (0.4ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 6 ) [0m
+Completed in 70ms (View: 8, DB: 1) | 200 OK [http://junpei/categories/6/photos]
+
+
+Processing ApplicationController#index (for 192.168.42.18 at 2010-10-09 04:50:18) [GET]
+
+ActionController::RoutingError (No route matches "/images/sg_grid_sub.png" with {:method=>:get}):
+
+
+Rendering rescues/layout (not_found)
+
+
+Processing CategoriesController#index (for 192.168.42.18 at 2010-10-09 04:50:20) [GET]
+ [4;36;1mCategory Load (0.7ms)[0m [0;1mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering categories/index
+Completed in 9ms (View: 4, DB: 1) | 200 OK [http://junpei/categories]
+
+
+Processing PhotosController#index (for 192.168.42.18 at 2010-10-09 04:50:44) [GET]
+ Parameters: {"category_id"=>"4"}
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '4') LIMIT 1[0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;36;1mPhoto Load (0.5ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 4 ) [0m
+Completed in 17ms (View: 8, DB: 1) | 200 OK [http://junpei/categories/4/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:08:12) [GET]
+ [4;35;1mPhoto Load (1.1ms)[0m [0mSELECT * FROM "photos" [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 100ms (View: 38, DB: 1) | 200 OK [http://localhost/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:09:38) [GET]
+ [4;36;1mPhoto Load (1.2ms)[0m [0;1mSELECT * FROM "photos" [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 24ms (View: 16, DB: 1) | 200 OK [http://localhost/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:10:32) [GET]
+ [4;35;1mPhoto Load (1.2ms)[0m [0mSELECT * FROM "photos" [0m
+Rendering template within layouts/photos
+Rendering photos/index
+
+ActionView::TemplateError (nil can't be coerced into Fixnum) on line #7 of app/views/photos/index.html.erb:
+4:
+5: <% @num_blank = 13 - @num_photos %>
+6: <% else %>
+7: <% @num_blank = 14 - @num_photos %>
+8: <% end %>
+9:
+10: <% @photos.each do |photo| %>
+
+ app/views/photos/index.html.erb:7
+
+Rendered rescues/_trace (25.4ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:11:14) [GET]
+ [4;36;1mPhoto Load (1.2ms)[0m [0;1mSELECT * FROM "photos" [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 21ms (View: 13, DB: 1) | 200 OK [http://localhost/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:11:20) [GET]
+ Parameters: {"category_id"=>"3"}
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '3') LIMIT 1[0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 3 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;35;1mPhoto Load (0.3ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 3 ) [0m
+Completed in 77ms (View: 66, DB: 1) | 200 OK [http://localhost/categories/3/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:11:23) [GET]
+ Parameters: {"category_id"=>"4"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '4') LIMIT 1[0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 4 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;36;1mPhoto Load (0.5ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 4 ) [0m
+Completed in 19ms (View: 7, DB: 1) | 200 OK [http://localhost/categories/4/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:11:26) [GET]
+ Parameters: {"category_id"=>"5"}
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '5') LIMIT 1[0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;35;1mPhoto Load (0.2ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 ) [0m
+Completed in 16ms (View: 5, DB: 1) | 200 OK [http://localhost/categories/5/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:11:59) [GET]
+ [4;36;1mPhoto Load (1.1ms)[0m [0;1mSELECT * FROM "photos" [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 21ms (View: 14, DB: 1) | 200 OK [http://localhost/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:12:01) [GET]
+ Parameters: {"category_id"=>"1"}
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;36;1mSQL (0.3ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;35;1mPhoto Load (1.0ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Completed in 26ms (View: 11, DB: 2) | 200 OK [http://localhost/categories/1/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:12:23) [GET]
+ Parameters: {"category_id"=>"1"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;36;1mPhoto Load (0.7ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Completed in 25ms (View: 13, DB: 1) | 200 OK [http://localhost/categories/1/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:12:24) [GET]
+ [4;35;1mPhoto Load (1.2ms)[0m [0mSELECT * FROM "photos" [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 18ms (View: 12, DB: 1) | 200 OK [http://localhost/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:13:39) [GET]
+ Parameters: {"category_id"=>"1"}
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;36;1mPhoto Load (0.8ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+
+ActionView::TemplateError (undefined local variable or method `categories' for #) on line #5 of app/views/photos/index.html.erb:
+2:
+3: <% if @category %>
+4:
+5: <%= link_to '
'+h(@category.name.downcase)+' ', categories %>
+6:
+7: <% @num_blank = 11 - @num_photos %>
+8: <% else %>
+
+ app/views/photos/index.html.erb:5
+
+Rendered rescues/_trace (26.1ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:13:45) [GET]
+ Parameters: {"category_id"=>"1"}
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;35;1mPhoto Load (0.7ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Completed in 81ms (View: 12, DB: 1) | 200 OK [http://localhost/categories/1/photos]
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 05:13:47) [GET]
+ [4;36;1mCategory Load (0.7ms)[0m [0;1mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering categories/index
+Completed in 92ms (View: 13, DB: 1) | 200 OK [http://localhost/categories]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:13:48) [GET]
+ Parameters: {"category_id"=>"2"}
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '2') LIMIT 1[0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 2 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;35;1mPhoto Load (0.4ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 2 ) [0m
+Completed in 18ms (View: 7, DB: 1) | 200 OK [http://localhost/categories/2/photos]
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 05:13:51) [GET]
+ [4;36;1mCategory Load (0.8ms)[0m [0;1mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering categories/index
+Completed in 12ms (View: 6, DB: 1) | 200 OK [http://localhost/categories]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:13:52) [GET]
+ Parameters: {"category_id"=>"4"}
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '4') LIMIT 1[0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 4 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;35;1mPhoto Load (0.5ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 4 ) [0m
+Completed in 19ms (View: 8, DB: 1) | 200 OK [http://localhost/categories/4/photos]
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 05:13:53) [GET]
+ [4;36;1mCategory Load (0.7ms)[0m [0;1mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering categories/index
+Completed in 9ms (View: 4, DB: 1) | 200 OK [http://localhost/categories]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:13:54) [GET]
+ Parameters: {"category_id"=>"5"}
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '5') LIMIT 1[0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;35;1mPhoto Load (0.3ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 ) [0m
+Completed in 16ms (View: 6, DB: 1) | 200 OK [http://localhost/categories/5/photos]
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 05:13:55) [GET]
+ [4;36;1mCategory Load (0.7ms)[0m [0;1mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering categories/index
+Completed in 9ms (View: 4, DB: 1) | 200 OK [http://localhost/categories]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:13:57) [GET]
+ Parameters: {"category_id"=>"6"}
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '6') LIMIT 1[0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 6 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;35;1mPhoto Load (0.3ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 6 ) [0m
+Completed in 19ms (View: 6, DB: 1) | 200 OK [http://localhost/categories/6/photos]
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 05:13:58) [GET]
+ [4;36;1mCategory Load (0.7ms)[0m [0;1mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering categories/index
+Completed in 9ms (View: 4, DB: 1) | 200 OK [http://localhost/categories]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:13:59) [GET]
+ Parameters: {"category_id"=>"3"}
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '3') LIMIT 1[0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 3 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;35;1mPhoto Load (0.3ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 3 ) [0m
+Completed in 16ms (View: 5, DB: 1) | 200 OK [http://localhost/categories/3/photos]
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 05:14:00) [GET]
+ [4;36;1mCategory Load (0.8ms)[0m [0;1mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering categories/index
+Completed in 9ms (View: 4, DB: 1) | 200 OK [http://localhost/categories]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:14:01) [GET]
+ Parameters: {"category_id"=>"2"}
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '2') LIMIT 1[0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 2 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;35;1mPhoto Load (0.4ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 2 ) [0m
+Completed in 72ms (View: 7, DB: 1) | 200 OK [http://localhost/categories/2/photos]
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 05:14:08) [GET]
+ [4;36;1mCategory Load (1.1ms)[0m [0;1mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering categories/index
+Completed in 10ms (View: 4, DB: 1) | 200 OK [http://localhost/categories]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:14:12) [GET]
+ Parameters: {"category_id"=>"1"}
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;35;1mPhoto Load (0.7ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Completed in 21ms (View: 10, DB: 1) | 200 OK [http://localhost/categories/1/photos]
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 05:14:22) [GET]
+ [4;36;1mCategory Load (0.7ms)[0m [0;1mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering categories/index
+Completed in 9ms (View: 4, DB: 1) | 200 OK [http://localhost/categories]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:14:25) [GET]
+ Parameters: {"category_id"=>"5"}
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '5') LIMIT 1[0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;35;1mPhoto Load (0.3ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 ) [0m
+Completed in 71ms (View: 6, DB: 1) | 200 OK [http://localhost/categories/5/photos]
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 05:14:30) [GET]
+ [4;36;1mCategory Load (0.7ms)[0m [0;1mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering categories/index
+Completed in 9ms (View: 4, DB: 1) | 200 OK [http://localhost/categories]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:28:43) [GET]
+ Parameters: {"category_id"=>"1"}
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;35;1mPhoto Load (0.7ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Completed in 84ms (View: 43, DB: 1) | 200 OK [http://localhost/categories/1/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:29:07) [GET]
+ Parameters: {"category_id"=>"1"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;36;1mPhoto Load (0.7ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Completed in 21ms (View: 10, DB: 1) | 200 OK [http://localhost/categories/1/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:29:35) [GET]
+ Parameters: {"category_id"=>"1"}
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;35;1mPhoto Load (0.7ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Completed in 20ms (View: 10, DB: 1) | 200 OK [http://localhost/categories/1/photos]
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 05:29:40) [GET]
+ [4;36;1mCategory Load (0.7ms)[0m [0;1mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering categories/index
+Completed in 47ms (View: 42, DB: 1) | 200 OK [http://localhost/categories]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:29:41) [GET]
+ Parameters: {"category_id"=>"4"}
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '4') LIMIT 1[0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 4 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;35;1mPhoto Load (0.6ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 4 ) [0m
+Completed in 20ms (View: 8, DB: 1) | 200 OK [http://localhost/categories/4/photos]
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 05:29:43) [GET]
+ [4;36;1mCategory Load (0.7ms)[0m [0;1mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering categories/index
+Completed in 9ms (View: 4, DB: 1) | 200 OK [http://localhost/categories]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:29:44) [GET]
+ Parameters: {"category_id"=>"5"}
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '5') LIMIT 1[0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;35;1mPhoto Load (0.2ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 ) [0m
+Completed in 17ms (View: 6, DB: 1) | 200 OK [http://localhost/categories/5/photos]
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 05:29:47) [GET]
+ [4;36;1mCategory Load (0.7ms)[0m [0;1mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering categories/index
+Completed in 10ms (View: 4, DB: 1) | 200 OK [http://localhost/categories]
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 05:30:10) [GET]
+ [4;35;1mCategory Load (0.7ms)[0m [0mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering categories/index
+Completed in 9ms (View: 4, DB: 1) | 200 OK [http://localhost/categories]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:30:11) [GET]
+ Parameters: {"category_id"=>"5"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '5') LIMIT 1[0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;36;1mPhoto Load (0.5ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 ) [0m
+Completed in 70ms (View: 59, DB: 1) | 200 OK [http://localhost/categories/5/photos]
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 05:30:13) [GET]
+ [4;35;1mCategory Load (0.7ms)[0m [0mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering categories/index
+Completed in 9ms (View: 4, DB: 1) | 200 OK [http://localhost/categories]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:30:14) [GET]
+ Parameters: {"category_id"=>"1"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;36;1mPhoto Load (0.7ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Completed in 21ms (View: 10, DB: 1) | 200 OK [http://localhost/categories/1/photos]
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 05:30:15) [GET]
+ [4;35;1mCategory Load (0.7ms)[0m [0mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering categories/index
+Completed in 10ms (View: 5, DB: 1) | 200 OK [http://localhost/categories]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:30:16) [GET]
+ Parameters: {"category_id"=>"6"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '6') LIMIT 1[0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 6 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;36;1mPhoto Load (0.3ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 6 ) [0m
+Completed in 17ms (View: 6, DB: 1) | 200 OK [http://localhost/categories/6/photos]
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 05:30:16) [GET]
+ [4;35;1mCategory Load (0.7ms)[0m [0mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering categories/index
+Completed in 9ms (View: 4, DB: 1) | 200 OK [http://localhost/categories]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:30:17) [GET]
+ Parameters: {"category_id"=>"5"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '5') LIMIT 1[0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;36;1mPhoto Load (0.3ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 ) [0m
+Completed in 17ms (View: 6, DB: 1) | 200 OK [http://localhost/categories/5/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:30:51) [GET]
+ Parameters: {"category_id"=>"5"}
+ [4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '5') LIMIT 1[0m
+ [4;36;1mSQL (0.3ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;35;1mPhoto Load (0.3ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 ) [0m
+Completed in 22ms (View: 7, DB: 1) | 200 OK [http://localhost/categories/5/photos]
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 05:30:52) [GET]
+ [4;36;1mCategory Load (0.7ms)[0m [0;1mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering categories/index
+Completed in 9ms (View: 4, DB: 1) | 200 OK [http://localhost/categories]
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 05:31:11) [GET]
+ [4;35;1mCategory Load (0.7ms)[0m [0mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering categories/index
+Completed in 9ms (View: 4, DB: 1) | 200 OK [http://localhost/categories]
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 05:31:20) [GET]
+ [4;36;1mCategory Load (0.7ms)[0m [0;1mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering categories/index
+Completed in 9ms (View: 4, DB: 1) | 200 OK [http://localhost/categories]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:31:21) [GET]
+ Parameters: {"category_id"=>"1"}
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;35;1mPhoto Load (0.7ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Completed in 20ms (View: 9, DB: 1) | 200 OK [http://localhost/categories/1/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:31:22) [GET]
+ Parameters: {"category_id"=>"5"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '5') LIMIT 1[0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;36;1mPhoto Load (0.4ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 ) [0m
+Completed in 71ms (View: 60, DB: 1) | 200 OK [http://localhost/categories/5/photos]
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 05:31:23) [GET]
+ [4;35;1mCategory Load (0.8ms)[0m [0mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering categories/index
+Completed in 10ms (View: 4, DB: 1) | 200 OK [http://localhost/categories]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:31:24) [GET]
+ Parameters: {"category_id"=>"6"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '6') LIMIT 1[0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 6 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;36;1mPhoto Load (0.3ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 6 ) [0m
+Completed in 17ms (View: 6, DB: 1) | 200 OK [http://localhost/categories/6/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:31:25) [GET]
+ Parameters: {"category_id"=>"3"}
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '3') LIMIT 1[0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 3 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;35;1mPhoto Load (0.3ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 3 ) [0m
+Completed in 17ms (View: 6, DB: 1) | 200 OK [http://localhost/categories/3/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:31:27) [GET]
+ Parameters: {"category_id"=>"4"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '4') LIMIT 1[0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 4 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;36;1mPhoto Load (0.9ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 4 ) [0m
+Completed in 77ms (View: 66, DB: 1) | 200 OK [http://localhost/categories/4/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:31:29) [GET]
+ Parameters: {"category_id"=>"5"}
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '5') LIMIT 1[0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;35;1mPhoto Load (0.3ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 ) [0m
+Completed in 17ms (View: 6, DB: 1) | 200 OK [http://localhost/categories/5/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:31:37) [GET]
+ Parameters: {"category_id"=>"5"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '5') LIMIT 1[0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;36;1mPhoto Load (0.2ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 ) [0m
+Completed in 17ms (View: 6, DB: 1) | 200 OK [http://localhost/categories/5/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:31:48) [GET]
+ Parameters: {"category_id"=>"5"}
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '5') LIMIT 1[0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;35;1mPhoto Load (0.3ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 ) [0m
+Completed in 17ms (View: 6, DB: 1) | 200 OK [http://localhost/categories/5/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:31:54) [GET]
+ Parameters: {"category_id"=>"5"}
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '5') LIMIT 1[0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;36;1mPhoto Load (0.3ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 ) [0m
+Completed in 18ms (View: 6, DB: 1) | 200 OK [http://localhost/categories/5/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:32:00) [GET]
+ Parameters: {"category_id"=>"5"}
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '5') LIMIT 1[0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;35;1mPhoto Load (0.3ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 ) [0m
+Completed in 16ms (View: 6, DB: 1) | 200 OK [http://localhost/categories/5/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:32:06) [GET]
+ Parameters: {"category_id"=>"5"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '5') LIMIT 1[0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;36;1mPhoto Load (0.3ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 ) [0m
+Completed in 18ms (View: 6, DB: 1) | 200 OK [http://localhost/categories/5/photos]
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 05:32:07) [GET]
+ [4;35;1mCategory Load (0.7ms)[0m [0mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering categories/index
+Completed in 9ms (View: 4, DB: 1) | 200 OK [http://localhost/categories]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:32:08) [GET]
+ Parameters: {"category_id"=>"5"}
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '5') LIMIT 1[0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;36;1mPhoto Load (0.3ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 ) [0m
+Completed in 18ms (View: 6, DB: 1) | 200 OK [http://localhost/categories/5/photos]
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 05:32:11) [GET]
+ [4;35;1mCategory Load (0.7ms)[0m [0mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering categories/index
+Completed in 9ms (View: 4, DB: 1) | 200 OK [http://localhost/categories]
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 05:32:16) [GET]
+ [4;36;1mCategory Load (0.7ms)[0m [0;1mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering categories/index
+Completed in 9ms (View: 4, DB: 1) | 200 OK [http://localhost/categories]
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 05:32:20) [GET]
+ [4;35;1mCategory Load (0.8ms)[0m [0mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering categories/index
+Completed in 8ms (View: 4, DB: 1) | 200 OK [http://localhost/categories]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:32:21) [GET]
+ Parameters: {"category_id"=>"5"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '5') LIMIT 1[0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;36;1mPhoto Load (0.3ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 ) [0m
+Completed in 71ms (View: 6, DB: 1) | 200 OK [http://localhost/categories/5/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:32:25) [GET]
+ Parameters: {"category_id"=>"5"}
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '5') LIMIT 1[0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;35;1mPhoto Load (0.3ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 ) [0m
+Completed in 18ms (View: 6, DB: 1) | 200 OK [http://localhost/categories/5/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:32:28) [GET]
+ Parameters: {"category_id"=>"5"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '5') LIMIT 1[0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;36;1mPhoto Load (0.2ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 ) [0m
+Completed in 17ms (View: 6, DB: 1) | 200 OK [http://localhost/categories/5/photos]
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 05:32:32) [GET]
+ [4;35;1mCategory Load (1.1ms)[0m [0mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering categories/index
+Completed in 10ms (View: 5, DB: 1) | 200 OK [http://localhost/categories]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:32:33) [GET]
+ Parameters: {"category_id"=>"5"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '5') LIMIT 1[0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;36;1mPhoto Load (0.3ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 ) [0m
+Completed in 73ms (View: 6, DB: 1) | 200 OK [http://localhost/categories/5/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:32:51) [GET]
+ Parameters: {"category_id"=>"5"}
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '5') LIMIT 1[0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;35;1mPhoto Load (0.3ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 ) [0m
+Completed in 21ms (View: 9, DB: 1) | 200 OK [http://localhost/categories/5/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:32:55) [GET]
+ Parameters: {"category_id"=>"5"}
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '5') LIMIT 1[0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;36;1mPhoto Load (0.3ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 ) [0m
+Completed in 20ms (View: 9, DB: 1) | 200 OK [http://localhost/categories/5/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:33:00) [GET]
+ Parameters: {"category_id"=>"5"}
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '5') LIMIT 1[0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;35;1mPhoto Load (0.3ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 ) [0m
+Completed in 74ms (View: 9, DB: 1) | 200 OK [http://localhost/categories/5/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:36:07) [GET]
+ [4;36;1mPhoto Load (1.2ms)[0m [0;1mSELECT * FROM "photos" [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 19ms (View: 12, DB: 1) | 200 OK [http://localhost/photos]
+
+
+Processing Admin::PhotosController#new (for 127.0.0.1 at 2010-10-09 05:38:22) [GET]
+ Parameters: {"action"=>"new", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.3ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/new
+Rendered admin/helpers/_list (12.9ms)
+Rendered admin/templates/_file (3.3ms)
+Rendered admin/templates/_string (1.9ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_text (1.4ms)
+Rendered admin/templates/_string (0.7ms)
+Rendered admin/resources/_form (24.3ms)
+Rendered admin/helpers/_header (0.9ms)
+Rendered admin/helpers/_login_info (1.0ms)
+Rendered admin/shared/_footer (1.1ms)
+Completed in 267ms (View: 177, DB: 0) | 200 OK [http://localhost/admin/photos/new]
+
+
+Processing Admin::PhotosController#create (for 127.0.0.1 at 2010-10-09 05:38:41) [POST]
+ Parameters: {"photo"=>{"photo"=>#, "title"=>"Croagh Patrick #3", "flickr_url"=>"", "sort"=>"", "description"=>""}, "commit"=>"Create Photo", "action"=>"create", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.7ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-86937-4yl3u1-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-86937-4yl3u1-0.jpg[0]' -resize "x224" -crop "224x224+119+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-86937-4yl3u1-020101009-86937-wkyb2n-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-86937-4yl3u1-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-86937-4yl3u1-0.jpg[0]' -resize "x140" -crop "140x140+74+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-86937-4yl3u1-020101009-86937-1jxt6nw-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-86937-4yl3u1-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-86937-4yl3u1-0.jpg[0]' -resize "x84" -crop "84x84+44+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-86937-4yl3u1-020101009-86937-1vqeyjw-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-86937-4yl3u1-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-86937-4yl3u1-0.jpg[0]' -resize "1024x1024>" '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-86937-4yl3u1-020101009-86937-1clkrci-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-86937-4yl3u1-020101009-86937-1clkrci-0[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-86937-4yl3u1-020101009-86937-1clkrci-0[0]' -resize "x56" -crop "56x56+29+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-86937-4yl3u1-020101009-86937-1clkrci-020101009-86937-abfbuf-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-86937-4yl3u1-020101009-86937-1clkrci-0[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-86937-4yl3u1-020101009-86937-1clkrci-0[0]' -resize "x308" -crop "308x308+163+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-86937-4yl3u1-020101009-86937-1clkrci-020101009-86937-g7lhaj-0' 2>/dev/null
+ [4;36;1mPhoto Create (0.6ms)[0m [0;1mINSERT INTO "photos" ("photo_file_size", "created_at", "title", "flickr_url", "photo_file_name", "updated_at", "photo_content_type", "photo_updated_at", "description", "sort") VALUES(134145, '2010-10-09 09:38:45', 'Croagh Patrick #3', '', 'Croagh Patrick no3.jpg', '2010-10-09 09:38:45', 'image/jpeg', '2010-10-09 09:38:41', '', NULL)[0m
+[paperclip] Saving attachments.
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/14/size8/Croagh Patrick no3.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/14/size5/Croagh Patrick no3.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/14/size3/Croagh Patrick no3.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/14/size2/Croagh Patrick no3.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/14/original/Croagh Patrick no3.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/14/size11/Croagh Patrick no3.jpg
+ [4;35;1mPhoto Update (0.2ms)[0m [0mUPDATE "photos" SET "updated_at" = '2010-10-09 09:39:48', "created_at" = '2010-10-09 09:38:45', "photo_file_name" = 'Croagh Patrick no3.jpg', "title" = 'Croagh Patrick #3', "photo_file_size" = 134145, "photo_updated_at" = '2010-10-09 09:38:41', "flickr_url" = '', "description" = '', "photo_content_type" = 'image/jpeg' WHERE "id" = 14[0m
+[paperclip] Saving attachments.
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:40:54) [GET]
+ [4;36;1mPhoto Load (1.7ms)[0m [0;1mSELECT * FROM "photos" [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 86ms (View: 51, DB: 2) | 200 OK [http://localhost/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:40:58) [GET]
+ [4;35;1mPhoto Load (1.5ms)[0m [0mSELECT * FROM "photos" [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 22ms (View: 14, DB: 2) | 200 OK [http://localhost/photos]
+
+
+Processing Admin::PhotosController#create (for 127.0.0.1 at 2010-10-09 05:41:18) [POST]
+ Parameters: {"photo"=>{"photo"=>#, "title"=>"Croagh Patrick #3", "flickr_url"=>"", "sort"=>"", "description"=>""}, "commit"=>"Create Photo", "action"=>"create", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.3ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87024-1pu5k99-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87024-1pu5k99-0.jpg[0]' -resize "x308" -crop "308x308+163+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87024-1pu5k99-020101009-87024-u0wc3e-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87024-1pu5k99-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87024-1pu5k99-0.jpg[0]' -resize "x224" -crop "224x224+119+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87024-1pu5k99-020101009-87024-1bnvv6l-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87024-1pu5k99-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87024-1pu5k99-0.jpg[0]' -resize "x140" -crop "140x140+74+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87024-1pu5k99-020101009-87024-x5qypy-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87024-1pu5k99-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87024-1pu5k99-0.jpg[0]' -resize "1024x1024>" '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87024-1pu5k99-020101009-87024-1wm4bdf-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87024-1pu5k99-020101009-87024-1wm4bdf-0[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87024-1pu5k99-020101009-87024-1wm4bdf-0[0]' -resize "x84" -crop "84x84+44+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87024-1pu5k99-020101009-87024-1wm4bdf-020101009-87024-1fbd1eh-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87024-1pu5k99-020101009-87024-1wm4bdf-0[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87024-1pu5k99-020101009-87024-1wm4bdf-0[0]' -resize "x56" -crop "56x56+29+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87024-1pu5k99-020101009-87024-1wm4bdf-020101009-87024-mzen1p-0' 2>/dev/null
+ [4;35;1mPhoto Create (0.5ms)[0m [0mINSERT INTO "photos" ("photo_file_size", "created_at", "title", "flickr_url", "photo_file_name", "updated_at", "photo_content_type", "photo_updated_at", "description", "sort") VALUES(134145, '2010-10-09 09:41:20', 'Croagh Patrick #3', '', 'Croagh Patrick no3.jpg', '2010-10-09 09:41:20', 'image/jpeg', '2010-10-09 09:41:18', '', NULL)[0m
+[paperclip] Saving attachments.
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/14/size11/Croagh Patrick no3.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/14/size8/Croagh Patrick no3.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/14/size5/Croagh Patrick no3.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/14/original/Croagh Patrick no3.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/14/size3/Croagh Patrick no3.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/14/size2/Croagh Patrick no3.jpg
+
+
+Processing TypusController#dashboard (for 127.0.0.1 at 2010-10-09 05:41:48) [GET]
+ Parameters: {"action"=>"dashboard", "controller"=>"typus"}
+ [4;36;1mTypusUser Load (0.4ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+Rendering template within layouts/admin
+Rendering typus/dashboard
+Rendered admin/dashboard/_sidebar (0.6ms)
+Rendered admin/helpers/_applications (5.2ms)
+Rendered admin/helpers/_header (0.7ms)
+Rendered admin/helpers/_login_info (0.8ms)
+Rendered admin/shared/_footer (0.6ms)
+Completed in 94ms (View: 82, DB: 0) | 200 OK [http://localhost/admin]
+
+
+Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-09 05:41:52) [GET]
+ Parameters: {"action"=>"index", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.6ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mSQL (0.3ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/admin
+Rendering admin/resources/index
+Rendered admin/helpers/_list (0.6ms)
+Rendered admin/helpers/_search (1.8ms)
+ [4;35;1mPhoto Load (1.2ms)[0m [0mSELECT "photos".* FROM "photos" ORDER BY photos.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.9ms)
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 1 ) [0m
+ [4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 2 ) [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 3 ) [0m
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 4 ) [0m
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 5 ) [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 6 ) [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 7 ) [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 8 ) [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 10 ) [0m
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 11 ) [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 12 ) [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 13 ) [0m
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.4ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 116ms (View: 86, DB: 6) | 200 OK [http://localhost/admin/photos]
+
+
+Processing Admin::PhotosController#new (for 127.0.0.1 at 2010-10-09 05:41:55) [GET]
+ Parameters: {"action"=>"new", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.5ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/new
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/templates/_file (2.7ms)
+Rendered admin/templates/_string (1.4ms)
+Rendered admin/templates/_string (0.8ms)
+Rendered admin/templates/_text (1.1ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/resources/_form (21.5ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.4ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 61ms (View: 38, DB: 1) | 200 OK [http://localhost/admin/photos/new]
+
+
+Processing Admin::PhotosController#create (for 127.0.0.1 at 2010-10-09 05:42:03) [POST]
+ Parameters: {"photo"=>{"photo"=>#, "title"=>"Croagh Patrick #3", "flickr_url"=>"", "sort"=>"", "description"=>""}, "commit"=>"Create Photo", "action"=>"create", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.6ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87063-147zia2-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87063-147zia2-0.jpg[0]' -resize "x84" -crop "84x84+44+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87063-147zia2-020101009-87063-w0oxlg-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87063-147zia2-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87063-147zia2-0.jpg[0]' -resize "x56" -crop "56x56+29+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87063-147zia2-020101009-87063-1s49olp-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87063-147zia2-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87063-147zia2-0.jpg[0]' -resize "x308" -crop "308x308+163+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87063-147zia2-020101009-87063-1ce9ra2-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87063-147zia2-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87063-147zia2-0.jpg[0]' -resize "1024x1024>" '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87063-147zia2-020101009-87063-1d6mcyb-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87063-147zia2-020101009-87063-1d6mcyb-0[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87063-147zia2-020101009-87063-1d6mcyb-0[0]' -resize "x224" -crop "224x224+119+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87063-147zia2-020101009-87063-1d6mcyb-020101009-87063-1nahg8r-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87063-147zia2-020101009-87063-1d6mcyb-0[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87063-147zia2-020101009-87063-1d6mcyb-0[0]' -resize "x140" -crop "140x140+74+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87063-147zia2-020101009-87063-1d6mcyb-020101009-87063-1k7a439-0' 2>/dev/null
+ [4;36;1mPhoto Create (0.8ms)[0m [0;1mINSERT INTO "photos" ("photo_file_size", "created_at", "title", "flickr_url", "photo_file_name", "updated_at", "photo_content_type", "photo_updated_at", "description", "sort") VALUES(134145, '2010-10-09 09:42:05', 'Croagh Patrick #3', '', 'Croagh Patrick no3.jpg', '2010-10-09 09:42:05', 'image/jpeg', '2010-10-09 09:42:03', '', NULL)[0m
+[paperclip] Saving attachments.
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/14/size3/Croagh Patrick no3.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/14/size2/Croagh Patrick no3.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/14/size11/Croagh Patrick no3.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/14/size8/Croagh Patrick no3.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/14/original/Croagh Patrick no3.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/14/size5/Croagh Patrick no3.jpg
+Redirected to http://localhost:3000/admin/photos/edit/14
+Completed in 50227ms (DB: 1) | 302 Found [http://localhost/admin/photos/create]
+
+
+Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-09 05:42:53) [GET]
+ Parameters: {"action"=>"edit", "id"=>"14", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.7ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mPhoto Load (0.3ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 14) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.2ms)
+Rendered admin/helpers/_search (0.9ms)
+Rendered admin/helpers/_preview (1.2ms)
+Rendered admin/templates/_file (9.6ms)
+Rendered admin/templates/_string (0.8ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_text (0.6ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/resources/_form (17.0ms)
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "categories" [0m
+ [4;36;1mCategory Load (0.5ms)[0m [0;1mSELECT * FROM "categories" [0m
+ [4;35;1mCategory Load (0.1ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 14 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 14) [0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 14 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 14) [0m
+ [4;35;1mCategory Load (0.1ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 14 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.4ms)
+Rendered admin/helpers/_flash_message (8.7ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 95ms (View: 68, DB: 2) | 200 OK [http://localhost/admin/photos/edit/14]
+
+
+Processing Admin::PhotosController#new (for 127.0.0.1 at 2010-10-09 05:42:57) [GET]
+ Parameters: {"action"=>"new", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.6ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/new
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/templates/_file (2.0ms)
+Rendered admin/templates/_string (0.7ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_text (0.5ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/resources/_form (8.5ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.4ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 102ms (View: 20, DB: 1) | 200 OK [http://localhost/admin/photos/new]
+
+
+Processing Admin::PhotosController#create (for 127.0.0.1 at 2010-10-09 05:43:08) [POST]
+ Parameters: {"photo"=>{"photo"=>#, "title"=>"Croagh Patrick Sunset", "flickr_url"=>"", "sort"=>"", "description"=>""}, "commit"=>"Create Photo", "action"=>"create", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.6ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87063-ik19lc-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87063-ik19lc-0.jpg[0]' -resize "x84" -crop "84x84+40+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87063-ik19lc-020101009-87063-1rxs712-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87063-ik19lc-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87063-ik19lc-0.jpg[0]' -resize "x56" -crop "56x56+26+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87063-ik19lc-020101009-87063-1lhd3y7-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87063-ik19lc-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87063-ik19lc-0.jpg[0]' -resize "x308" -crop "308x308+147+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87063-ik19lc-020101009-87063-3bwju4-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87063-ik19lc-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87063-ik19lc-0.jpg[0]' -resize "1024x1024>" '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87063-ik19lc-020101009-87063-1qyasq6-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87063-ik19lc-020101009-87063-1qyasq6-0[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87063-ik19lc-020101009-87063-1qyasq6-0[0]' -resize "x224" -crop "224x224+107+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87063-ik19lc-020101009-87063-1qyasq6-020101009-87063-vtv045-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87063-ik19lc-020101009-87063-1qyasq6-0[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87063-ik19lc-020101009-87063-1qyasq6-0[0]' -resize "x140" -crop "140x140+67+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87063-ik19lc-020101009-87063-1qyasq6-020101009-87063-7ebtfa-0' 2>/dev/null
+ [4;36;1mPhoto Create (0.5ms)[0m [0;1mINSERT INTO "photos" ("photo_file_size", "created_at", "title", "flickr_url", "photo_file_name", "updated_at", "photo_content_type", "photo_updated_at", "description", "sort") VALUES(133140, '2010-10-09 09:43:10', 'Croagh Patrick Sunset', '', 'Croagh Patrick Sunset.jpg', '2010-10-09 09:43:10', 'image/jpeg', '2010-10-09 09:43:08', '', NULL)[0m
+[paperclip] Saving attachments.
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/15/size3/Croagh Patrick Sunset.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/15/size2/Croagh Patrick Sunset.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/15/size11/Croagh Patrick Sunset.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/15/size8/Croagh Patrick Sunset.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/15/original/Croagh Patrick Sunset.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/15/size5/Croagh Patrick Sunset.jpg
+ [4;35;1mPhoto Update (0.3ms)[0m [0mUPDATE "photos" SET "updated_at" = '2010-10-09 09:43:10', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15[0m
+[paperclip] Saving attachments.
+ [4;36;1mPhoto Update (0.2ms)[0m [0;1mUPDATE "photos" SET "updated_at" = '2010-10-09 09:43:10', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15[0m
+[paperclip] Saving attachments.
+ [4;35;1mPhoto Update (0.2ms)[0m [0mUPDATE "photos" SET "updated_at" = '2010-10-09 09:43:10', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15[0m
+[paperclip] Saving attachments.
+ [4;36;1mPhoto Update (0.2ms)[0m [0;1mUPDATE "photos" SET "updated_at" = '2010-10-09 09:43:10', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15[0m
+[paperclip] Saving attachments.
+ [4;35;1mPhoto Update (0.2ms)[0m [0mUPDATE "photos" SET "updated_at" = '2010-10-09 09:43:10', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15[0m
+[paperclip] Saving attachments.
+ [4;36;1mPhoto Update (0.2ms)[0m [0;1mUPDATE "photos" SET "updated_at" = '2010-10-09 09:43:10', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15[0m
+[paperclip] Saving attachments.
+ [4;35;1mPhoto Update (0.2ms)[0m [0mUPDATE "photos" SET "updated_at" = '2010-10-09 09:43:10', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15[0m
+[paperclip] Saving attachments.
+ [4;36;1mPhoto Update (0.2ms)[0m [0;1mUPDATE "photos" SET "updated_at" = '2010-10-09 09:43:10', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15[0m
+[paperclip] Saving attachments.
+ [4;35;1mPhoto Update (0.2ms)[0m [0mUPDATE "photos" SET "updated_at" = '2010-10-09 09:43:10', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15[0m
+[paperclip] Saving attachments.
+ [4;36;1mPhoto Update (0.2ms)[0m [0;1mUPDATE "photos" SET "updated_at" = '2010-10-09 09:43:10', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15[0m
+[paperclip] Saving attachments.
+ [4;35;1mPhoto Update (0.2ms)[0m [0mUPDATE "photos" SET "updated_at" = '2010-10-09 09:43:10', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15[0m
+[paperclip] Saving attachments.
+ [4;36;1mPhoto Update (0.2ms)[0m [0;1mUPDATE "photos" SET "updated_at" = '2010-10-09 09:43:10', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15[0m
+[paperclip] Saving attachments.
+ [4;35;1mPhoto Update (0.2ms)[0m [0mUPDATE "photos" SET "updated_at" = '2010-10-09 09:43:10', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15[0m
+[paperclip] Saving attachments.
+ [4;36;1mPhoto Update (0.2ms)[0m [0;1mUPDATE "photos" SET "updated_at" = '2010-10-09 09:43:11', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15[0m
+[paperclip] Saving attachments.
+ [4;35;1mPhoto Update (0.2ms)[0m [0mUPDATE "photos" SET "updated_at" = '2010-10-09 09:43:11', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15[0m
+[paperclip] Saving attachments.
+ [4;36;1mPhoto Update (0.2ms)[0m [0;1mUPDATE "photos" SET "updated_at" = '2010-10-09 09:43:11', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15[0m
+[paperclip] Saving attachments.
+ [4;35;1mPhoto Update (0.2ms)[0m [0mUPDATE "photos" SET "updated_at" = '2010-10-09 09:43:11', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15[0m
+[paperclip] Saving attachments.
+ [4;36;1mPhoto Update (0.2ms)[0m [0;1mUPDATE "photos" SET "updated_at" = '2010-10-09 09:43:11', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15[0m
+[paperclip] Saving attachments.
+ [4;35;1mPhoto Update (0.2ms)[0m [0mUPDATE "photos" SET "updated_at" = '2010-10-09 09:43:11', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15[0m
+[paperclip] Saving attachments.
+ [4;36;1mPhoto Update (0.2ms)[0m [0;1mUPDATE "photos" SET "updated_at" = '2010-10-09 09:43:12', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15[0m
+[paperclip] Saving attachments.
+ [4;35;1mPhoto Update (0.2ms)[0m [0mUPDATE "photos" SET "updated_at" = '2010-10-09 09:43:12', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15[0m
+[paperclip] Saving attachments.
+ [4;36;1mPhoto Update (0.2ms)[0m [0;1mUPDATE "photos" SET "updated_at" = '2010-10-09 09:43:12', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15[0m
+[paperclip] Saving attachments.
+ [4;35;1mPhoto Update (0.2ms)[0m [0mUPDATE "photos" SET "updated_at" = '2010-10-09 09:43:12', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15[0m
+[paperclip] Saving attachments.
+ [4;36;1mPhoto Update (0.2ms)[0m [0;1mUPDATE "photos" SET "updated_at" = '2010-10-09 09:43:13', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15[0m
+[paperclip] Saving attachments.
+ [4;35;1mPhoto Update (0.2ms)[0m [0mUPDATE "photos" SET "updated_at" = '2010-10-09 09:43:13', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15[0m
+[paperclip] Saving attachments.
+ [4;36;1mPhoto Update (0.2ms)[0m [0;1mUPDATE "photos" SET "updated_at" = '2010-10-09 09:43:13', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15[0m
+[paperclip] Saving attachments.
+ [4;35;1mPhoto Update (0.2ms)[0m [0mUPDATE "photos" SET "updated_at" = '2010-10-09 09:43:13', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15[0m
+[paperclip] Saving attachments.
+ [4;36;1mPhoto Update (0.2ms)[0m [0;1mUPDATE "photos" SET "updated_at" = '2010-10-09 09:43:14', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15[0m
+[paperclip] Saving attachments.
+ [4;35;1mPhoto Update (0.2ms)[0m [0mUPDATE "photos" SET "updated_at" = '2010-10-09 09:43:14', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15[0m
+[paperclip] Saving attachments.
+ [4;36;1mPhoto Update (0.3ms)[0m [0;1mUPDATE "photos" SET "updated_at" = '2010-10-09 09:43:15', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15[0m
+[paperclip] Saving attachments.
+ [4;35;1mPhoto Update (0.2ms)[0m [0mUPDATE "photos" SET "updated_at" = '2010-10-09 09:43:15', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15[0m
+[paperclip] Saving attachments.
+ [4;36;1mPhoto Update (0.2ms)[0m [0;1mUPDATE "photos" SET "updated_at" = '2010-10-09 09:43:15', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15[0m
+[paperclip] Saving attachments.
+ [4;35;1mPhoto Update (0.2ms)[0m [0mUPDATE "photos" SET "updated_at" = '2010-10-09 09:43:16', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15[0m
+[paperclip] Saving attachments.
+ [4;36;1mPhoto Update (0.2ms)[0m [0;1mUPDATE "photos" SET "updated_at" = '2010-10-09 09:43:17', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15[0m
+[paperclip] Saving attachments.
+ [4;35;1mPhoto Update (0.2ms)[0m [0mUPDATE "photos" SET "updated_at" = '2010-10-09 09:43:17', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15[0m
+[paperclip] Saving attachments.
+ [4;36;1mPhoto Update (0.2ms)[0m [0;1mUPDATE "photos" SET "updated_at" = '2010-10-09 09:43:18', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15[0m
+[paperclip] Saving attachments.
+ [4;35;1mPhoto Update (0.2ms)[0m [0mUPDATE "photos" SET "updated_at" = '2010-10-09 09:43:18', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15[0m
+[paperclip] Saving attachments.
+ [4;36;1mPhoto Update (0.2ms)[0m [0;1mUPDATE "photos" SET "updated_at" = '2010-10-09 09:43:19', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15[0m
+[paperclip] Saving attachments.
+ [4;35;1mPhoto Update (0.2ms)[0m [0mUPDATE "photos" SET "updated_at" = '2010-10-09 09:43:19', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15[0m
+[paperclip] Saving attachments.
+ [4;36;1mPhoto Update (0.2ms)[0m [0;1mUPDATE "photos" SET "updated_at" = '2010-10-09 09:43:20', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15[0m
+[paperclip] Saving attachments.
+ [4;35;1mPhoto Update (0.2ms)[0m [0mUPDATE "photos" SET "updated_at" = '2010-10-09 09:43:21', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15[0m
+[paperclip] Saving attachments.
+ [4;36;1mPhoto Update (0.2ms)[0m [0;1mUPDATE "photos" SET "updated_at" = '2010-10-09 09:43:22', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15[0m
+[paperclip] Saving attachments.
+ [4;35;1mPhoto Update (0.2ms)[0m [0mUPDATE "photos" SET "updated_at" = '2010-10-09 09:43:22', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15[0m
+[paperclip] Saving attachments.
+ [4;36;1mPhoto Update (0.2ms)[0m [0;1mUPDATE "photos" SET "updated_at" = '2010-10-09 09:43:23', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15[0m
+[paperclip] Saving attachments.
+ [4;35;1mPhoto Update (0.2ms)[0m [0mUPDATE "photos" SET "updated_at" = '2010-10-09 09:43:24', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15[0m
+[paperclip] Saving attachments.
+ [4;36;1mPhoto Update (0.2ms)[0m [0;1mUPDATE "photos" SET "updated_at" = '2010-10-09 09:43:25', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15[0m
+[paperclip] Saving attachments.
+ [4;35;1mPhoto Update (0.2ms)[0m [0mUPDATE "photos" SET "updated_at" = '2010-10-09 09:43:26', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15[0m
+[paperclip] Saving attachments.
+ [4;36;1mPhoto Update (0.2ms)[0m [0;1mUPDATE "photos" SET "updated_at" = '2010-10-09 09:43:27', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15[0m
+[paperclip] Saving attachments.
+ [4;35;1mPhoto Update (0.3ms)[0m [0mUPDATE "photos" SET "updated_at" = '2010-10-09 09:43:28', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15[0m
+[paperclip] Saving attachments.
+ [4;36;1mPhoto Update (0.3ms)[0m [0;1mUPDATE "photos" SET "updated_at" = '2010-10-09 09:43:29', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15[0m
+[paperclip] Saving attachments.
+ [4;35;1mPhoto Update (0.3ms)[0m [0mUPDATE "photos" SET "updated_at" = '2010-10-09 09:43:30', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15[0m
+[paperclip] Saving attachments.
+ [4;36;1mPhoto Update (0.2ms)[0m [0;1mUPDATE "photos" SET "updated_at" = '2010-10-09 09:43:31', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15[0m
+[paperclip] Saving attachments.
+ [4;35;1mPhoto Update (0.2ms)[0m [0mUPDATE "photos" SET "updated_at" = '2010-10-09 09:43:32', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15[0m
+[paperclip] Saving attachments.
+ [4;36;1mPhoto Update (0.2ms)[0m [0;1mUPDATE "photos" SET "updated_at" = '2010-10-09 09:43:33', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15[0m
+[paperclip] Saving attachments.
+ [4;35;1mPhoto Update (0.2ms)[0m [0mUPDATE "photos" SET "updated_at" = '2010-10-09 09:43:34', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15[0m
+[paperclip] Saving attachments.
+ [4;36;1mPhoto Update (0.2ms)[0m [0;1mUPDATE "photos" SET "updated_at" = '2010-10-09 09:43:35', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15[0m
+[paperclip] Saving attachments.
+ [4;35;1mPhoto Update (0.4ms)[0m [0mUPDATE "photos" SET "updated_at" = '2010-10-09 09:43:37', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15[0m
+[paperclip] Saving attachments.
+ [4;36;1mPhoto Update (0.2ms)[0m [0;1mUPDATE "photos" SET "updated_at" = '2010-10-09 09:43:38', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15[0m
+[paperclip] Saving attachments.
+ [4;35;1mPhoto Update (0.2ms)[0m [0mUPDATE "photos" SET "updated_at" = '2010-10-09 09:43:39', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15[0m
+[paperclip] Saving attachments.
+ [4;36;1mPhoto Update (0.3ms)[0m [0;1mUPDATE "photos" SET "updated_at" = '2010-10-09 09:43:41', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15[0m
+[paperclip] Saving attachments.
+ [4;35;1mPhoto Update (0.3ms)[0m [0mUPDATE "photos" SET "updated_at" = '2010-10-09 09:43:42', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15[0m
+[paperclip] Saving attachments.
+ [4;36;1mPhoto Update (0.2ms)[0m [0;1mUPDATE "photos" SET "updated_at" = '2010-10-09 09:43:44', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15[0m
+[paperclip] Saving attachments.
+ [4;35;1mPhoto Update (0.2ms)[0m [0mUPDATE "photos" SET "updated_at" = '2010-10-09 09:43:45', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15[0m
+[paperclip] Saving attachments.
+ [4;36;1mPhoto Update (0.3ms)[0m [0;1mUPDATE "photos" SET "updated_at" = '2010-10-09 09:43:47', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15[0m
+[paperclip] Saving attachments.
+ [4;35;1mPhoto Update (0.2ms)[0m [0mUPDATE "photos" SET "updated_at" = '2010-10-09 09:43:49', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15[0m
+[paperclip] Saving attachments.
+ [4;36;1mPhoto Update (0.2ms)[0m [0;1mUPDATE "photos" SET "updated_at" = '2010-10-09 09:43:51', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15[0m
+[paperclip] Saving attachments.
+
+
+Processing Admin::PhotosController#create (for 127.0.0.1 at 2010-10-09 05:44:12) [POST]
+ Parameters: {"photo"=>{"photo"=>#, "title"=>"Croagh Patrick Sunset", "flickr_url"=>"", "sort"=>"", "description"=>""}, "commit"=>"Create Photo", "action"=>"create", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.3ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mSQL (0.6ms)[0m [0m SELECT name
+ FROM sqlite_master
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
+[0m
+
+NoMethodError (undefined method `after_post_processing' for #):
+ app/models/photo.rb:13
+ vendor/plugins/typus/app/controllers/admin/master_controller.rb:277:in `set_resource'
+
+Rendered rescues/_trace (97.6ms)
+Rendered rescues/_request_and_response (1.5ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing Admin::PhotosController#create (for 127.0.0.1 at 2010-10-09 05:44:34) [POST]
+ Parameters: {"photo"=>{"photo"=>#, "title"=>"Croagh Patrick Sunset", "flickr_url"=>"", "sort"=>"", "description"=>""}, "commit"=>"Create Photo", "action"=>"create", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.7ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-mrktxx-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-mrktxx-0.jpg[0]' -resize "x308" -crop "308x308+147+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-mrktxx-020101009-87161-9if1wr-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-mrktxx-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-mrktxx-0.jpg[0]' -resize "x224" -crop "224x224+107+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-mrktxx-020101009-87161-5n4pej-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-mrktxx-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-mrktxx-0.jpg[0]' -resize "x140" -crop "140x140+67+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-mrktxx-020101009-87161-yjv0b1-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-mrktxx-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-mrktxx-0.jpg[0]' -resize "1024x1024>" '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-mrktxx-020101009-87161-178mx0b-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-mrktxx-020101009-87161-178mx0b-0[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-mrktxx-020101009-87161-178mx0b-0[0]' -resize "x84" -crop "84x84+40+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-mrktxx-020101009-87161-178mx0b-020101009-87161-ir9b94-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-mrktxx-020101009-87161-178mx0b-0[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-mrktxx-020101009-87161-178mx0b-0[0]' -resize "x56" -crop "56x56+26+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-mrktxx-020101009-87161-178mx0b-020101009-87161-1qyom69-0' 2>/dev/null
+
+Errno::ENOENT (No such file or directory - /Users/danbee/Sites/rails/photos/public/system/photos//original/Croagh Patrick Sunset.jpg):
+ exifr (1.0.3) lib/jpeg.rb:29:in `initialize'
+ exifr (1.0.3) lib/jpeg.rb:29:in `open'
+ exifr (1.0.3) lib/jpeg.rb:29:in `initialize'
+ app/models/photo.rb:17:in `new'
+ app/models/photo.rb:17:in `get_exif'
+ vendor/plugins/typus/app/controllers/admin/master_controller.rb:92:in `create'
+
+Rendered rescues/_trace (150.6ms)
+Rendered rescues/_request_and_response (0.5ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing Admin::PhotosController#create (for 127.0.0.1 at 2010-10-09 05:47:53) [POST]
+ Parameters: {"photo"=>{"photo"=>#, "title"=>"Croagh Patrick Sunset", "flickr_url"=>"", "sort"=>"", "description"=>""}, "commit"=>"Create Photo", "action"=>"create", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.7ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-2qbi0z-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-2qbi0z-0.jpg[0]' -resize "x308" -crop "308x308+147+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-2qbi0z-020101009-87161-oerhhk-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-2qbi0z-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-2qbi0z-0.jpg[0]' -resize "x224" -crop "224x224+107+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-2qbi0z-020101009-87161-q7cj6-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-2qbi0z-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-2qbi0z-0.jpg[0]' -resize "x140" -crop "140x140+67+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-2qbi0z-020101009-87161-1xyek95-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-2qbi0z-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-2qbi0z-0.jpg[0]' -resize "1024x1024>" '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-2qbi0z-020101009-87161-cc8r1l-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-2qbi0z-020101009-87161-cc8r1l-0[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-2qbi0z-020101009-87161-cc8r1l-0[0]' -resize "x84" -crop "84x84+40+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-2qbi0z-020101009-87161-cc8r1l-020101009-87161-dkxpwu-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-2qbi0z-020101009-87161-cc8r1l-0[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-2qbi0z-020101009-87161-cc8r1l-0[0]' -resize "x56" -crop "56x56+26+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-2qbi0z-020101009-87161-cc8r1l-020101009-87161-sgr7f4-0' 2>/dev/null
+
+Errno::ENOENT (No such file or directory - /Users/danbee/Sites/rails/photos/public/system/photos//original/Croagh Patrick Sunset.jpg):
+ exifr (1.0.3) lib/jpeg.rb:29:in `initialize'
+ exifr (1.0.3) lib/jpeg.rb:29:in `open'
+ exifr (1.0.3) lib/jpeg.rb:29:in `initialize'
+ app/models/photo.rb:17:in `new'
+ app/models/photo.rb:17:in `get_exif'
+ vendor/plugins/typus/app/controllers/admin/master_controller.rb:84:in `new'
+ vendor/plugins/typus/app/controllers/admin/master_controller.rb:84:in `create'
+
+Rendered rescues/_trace (46.6ms)
+Rendered rescues/_request_and_response (0.9ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing Admin::PhotosController#create (for 127.0.0.1 at 2010-10-09 05:52:37) [POST]
+ Parameters: {"photo"=>{"photo"=>#, "title"=>"Croagh Patrick Sunset", "flickr_url"=>"", "sort"=>"", "description"=>""}, "commit"=>"Create Photo", "action"=>"create", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.9ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1kbmloy-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1kbmloy-0.jpg[0]' -resize "x308" -crop "308x308+147+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1kbmloy-020101009-87161-1v3bbk0-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1kbmloy-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1kbmloy-0.jpg[0]' -resize "x224" -crop "224x224+107+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1kbmloy-020101009-87161-m5iyrs-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1kbmloy-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1kbmloy-0.jpg[0]' -resize "x140" -crop "140x140+67+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1kbmloy-020101009-87161-6rpvw4-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1kbmloy-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1kbmloy-0.jpg[0]' -resize "1024x1024>" '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1kbmloy-020101009-87161-5q8pf9-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1kbmloy-020101009-87161-5q8pf9-0[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1kbmloy-020101009-87161-5q8pf9-0[0]' -resize "x84" -crop "84x84+40+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1kbmloy-020101009-87161-5q8pf9-020101009-87161-y2e3q6-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1kbmloy-020101009-87161-5q8pf9-0[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1kbmloy-020101009-87161-5q8pf9-0[0]' -resize "x56" -crop "56x56+26+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1kbmloy-020101009-87161-5q8pf9-020101009-87161-1820vgw-0' 2>/dev/null
+ [4;35;1mPhoto Create (1.0ms)[0m [0mINSERT INTO "photos" ("photo_file_size", "created_at", "title", "flickr_url", "photo_file_name", "updated_at", "photo_content_type", "photo_updated_at", "description", "sort") VALUES(133140, '2010-10-09 09:52:55', 'Croagh Patrick Sunset', '', 'Croagh Patrick Sunset.jpg', '2010-10-09 09:52:55', 'image/jpeg', '2010-10-09 09:52:37', '', NULL)[0m
+[paperclip] Saving attachments.
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/16/size11/Croagh Patrick Sunset.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/16/size8/Croagh Patrick Sunset.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/16/size5/Croagh Patrick Sunset.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/16/size3/Croagh Patrick Sunset.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/16/original/Croagh Patrick Sunset.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/16/size2/Croagh Patrick Sunset.jpg
+Redirected to http://localhost:3000/admin/photos/edit/16
+Completed in 17854ms (DB: 2) | 302 Found [http://localhost/admin/photos/create]
+
+
+Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-09 05:52:55) [GET]
+ Parameters: {"action"=>"edit", "id"=>"16", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.6ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mPhoto Load (0.3ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 16) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.6ms)
+Rendered admin/helpers/_search (3.8ms)
+Rendered admin/helpers/_preview (1.3ms)
+Rendered admin/templates/_file (10.7ms)
+Rendered admin/templates/_string (1.4ms)
+Rendered admin/templates/_string (0.8ms)
+Rendered admin/templates/_text (1.0ms)
+Rendered admin/templates/_string (0.7ms)
+Rendered admin/resources/_form (30.4ms)
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" [0m
+ [4;35;1mCategory Load (0.5ms)[0m [0mSELECT * FROM "categories" [0m
+ [4;36;1mCategory Load (0.1ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 16 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 16) [0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 16 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 16) [0m
+ [4;36;1mCategory Load (0.1ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 16 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_header (0.7ms)
+Rendered admin/helpers/_login_info (1.1ms)
+Rendered admin/helpers/_flash_message (19.7ms)
+Rendered admin/shared/_footer (0.7ms)
+Completed in 261ms (View: 230, DB: 2) | 200 OK [http://localhost/admin/photos/edit/16]
+
+
+Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-09 05:53:56) [GET]
+ Parameters: {"action"=>"edit", "id"=>"16", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (1.1ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mPhoto Load (0.3ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 16) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.6ms)
+Rendered admin/helpers/_preview (0.2ms)
+Rendered admin/templates/_file (4.7ms)
+Rendered admin/templates/_string (0.7ms)
+Rendered admin/templates/_string (0.8ms)
+Rendered admin/templates/_text (0.5ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/resources/_form (10.9ms)
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "categories" [0m
+ [4;36;1mCategory Load (0.5ms)[0m [0;1mSELECT * FROM "categories" [0m
+ [4;35;1mCategory Load (0.1ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 16 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 16) [0m
+ [4;35;1mSQL (0.3ms)[0m [0mSELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 16 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 16) [0m
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 16 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.4ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 58ms (View: 33, DB: 3) | 200 OK [http://localhost/admin/photos/edit/16]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:53:57) [GET]
+ [4;36;1mPhoto Load (1.8ms)[0m [0;1mSELECT * FROM "photos" [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 134ms (View: 60, DB: 2) | 200 OK [http://localhost/photos]
+
+
+Processing Admin::PhotosController#show (for 127.0.0.1 at 2010-10-09 05:54:01) [GET]
+ Parameters: {"action"=>"show", "id"=>"16", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.6ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mPhoto Load (0.4ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 16) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/show
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.5ms)
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "categories" [0m
+ [4;36;1mCategory Load (0.5ms)[0m [0;1mSELECT * FROM "categories" [0m
+ [4;35;1mCategory Load (0.1ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 16 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 16) [0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 16 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 16) [0m
+ [4;35;1mCategory Load (0.1ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 16 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.4ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 70ms (View: 44, DB: 2) | 200 OK [http://localhost/admin/photos/show/16]
+
+
+Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-09 05:54:03) [GET]
+ Parameters: {"action"=>"index", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.6ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/admin
+Rendering admin/resources/index
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (1.2ms)
+ [4;36;1mPhoto Load (1.5ms)[0m [0;1mSELECT "photos".* FROM "photos" ORDER BY photos.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (1.1ms)
+ [4;35;1mCategory Load (0.6ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 1 ) [0m
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 2 ) [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 3 ) [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 4 ) [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 5 ) [0m
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 6 ) [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 7 ) [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 8 ) [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 10 ) [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 11 ) [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 12 ) [0m
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 13 ) [0m
+ [4;35;1mCategory Load (0.1ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 14 ) [0m
+ [4;36;1mCategory Load (0.1ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 15 ) [0m
+ [4;35;1mCategory Load (0.1ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 16 ) [0m
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.4ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 179ms (View: 95, DB: 7) | 200 OK [http://localhost/admin/photos]
+
+
+Processing Admin::PhotosController#destroy (for 127.0.0.1 at 2010-10-09 05:54:07) [GET]
+ Parameters: {"action"=>"destroy", "id"=>"16", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.6ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mPhoto Load (0.3ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 16) [0m
+[paperclip] Deleting attachments.
+[paperclip] deleting /Users/danbee/Sites/rails/photos/public/system/photos/16/original/Croagh Patrick Sunset.jpg
+[paperclip] deleting /Users/danbee/Sites/rails/photos/public/system/photos/16/size11/Croagh Patrick Sunset.jpg
+[paperclip] deleting /Users/danbee/Sites/rails/photos/public/system/photos/16/size8/Croagh Patrick Sunset.jpg
+[paperclip] deleting /Users/danbee/Sites/rails/photos/public/system/photos/16/size5/Croagh Patrick Sunset.jpg
+[paperclip] deleting /Users/danbee/Sites/rails/photos/public/system/photos/16/size3/Croagh Patrick Sunset.jpg
+[paperclip] deleting /Users/danbee/Sites/rails/photos/public/system/photos/16/size2/Croagh Patrick Sunset.jpg
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 16 ) [0m
+ [4;35;1mPhoto Destroy (0.2ms)[0m [0mDELETE FROM "photos" WHERE "id" = 16[0m
+Redirected to http://localhost:3000/admin/photos
+Completed in 103ms (DB: 1) | 302 Found [http://localhost/admin/photos/destroy/16]
+
+
+Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-09 05:54:07) [GET]
+ Parameters: {"action"=>"index", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.7ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mSQL (0.3ms)[0m [0mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/admin
+Rendering admin/resources/index
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.6ms)
+ [4;36;1mPhoto Load (1.3ms)[0m [0;1mSELECT "photos".* FROM "photos" ORDER BY photos.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.1ms)
+ [4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 1 ) [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 2 ) [0m
+ [4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 3 ) [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 4 ) [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 5 ) [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 6 ) [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 7 ) [0m
+ [4;36;1mCategory Load (0.5ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 8 ) [0m
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 10 ) [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 11 ) [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 12 ) [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 13 ) [0m
+ [4;35;1mCategory Load (0.1ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 14 ) [0m
+ [4;36;1mCategory Load (0.1ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 15 ) [0m
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.4ms)
+Rendered admin/helpers/_flash_message (0.1ms)
+Rendered admin/shared/_footer (59.3ms)
+Completed in 151ms (View: 115, DB: 6) | 200 OK [http://localhost/admin/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:54:09) [GET]
+ [4;35;1mPhoto Load (2.3ms)[0m [0mSELECT * FROM "photos" [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 27ms (View: 17, DB: 2) | 200 OK [http://localhost/photos]
+
+
+Processing Admin::PhotosController#new (for 127.0.0.1 at 2010-10-09 05:54:13) [GET]
+ Parameters: {"action"=>"new", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.7ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/new
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/templates/_file (1.9ms)
+Rendered admin/templates/_string (1.2ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_text (0.5ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/resources/_form (65.9ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.4ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 105ms (View: 80, DB: 1) | 200 OK [http://localhost/admin/photos/new]
+
+
+Processing Admin::PhotosController#create (for 127.0.0.1 at 2010-10-09 05:54:36) [POST]
+ Parameters: {"photo"=>{"photo"=>#, "title"=>"Doolough", "flickr_url"=>"", "sort"=>"", "description"=>""}, "commit"=>"Create Photo", "action"=>"create", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.6ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-sa3tl0-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-sa3tl0-0.jpg[0]' -resize "308x" -crop "308x308+0+77" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-sa3tl0-020101009-87161-16e1jgc-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-sa3tl0-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-sa3tl0-0.jpg[0]' -resize "224x" -crop "224x224+0+56" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-sa3tl0-020101009-87161-a8zovc-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-sa3tl0-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-sa3tl0-0.jpg[0]' -resize "140x" -crop "140x140+0+35" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-sa3tl0-020101009-87161-1sk5m9t-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-sa3tl0-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-sa3tl0-0.jpg[0]' -resize "1024x1024>" '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-sa3tl0-020101009-87161-yx3dmp-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-sa3tl0-020101009-87161-yx3dmp-0[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-sa3tl0-020101009-87161-yx3dmp-0[0]' -resize "84x" -crop "84x84+0+20" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-sa3tl0-020101009-87161-yx3dmp-020101009-87161-oqj40b-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-sa3tl0-020101009-87161-yx3dmp-0[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-sa3tl0-020101009-87161-yx3dmp-0[0]' -resize "56x" -crop "56x56+0+13" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-sa3tl0-020101009-87161-yx3dmp-020101009-87161-19v0m20-0' 2>/dev/null
+ [4;36;1mPhoto Create (1.1ms)[0m [0;1mINSERT INTO "photos" ("photo_file_size", "created_at", "title", "flickr_url", "photo_file_name", "updated_at", "photo_content_type", "photo_updated_at", "description", "sort") VALUES(284028, '2010-10-09 09:54:39', 'Doolough', '', 'Doolough.jpg', '2010-10-09 09:54:39', 'image/jpeg', '2010-10-09 09:54:36', '', NULL)[0m
+[paperclip] Saving attachments.
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/17/size11/Doolough.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/17/size8/Doolough.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/17/size5/Doolough.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/17/size3/Doolough.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/17/original/Doolough.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/17/size2/Doolough.jpg
+Redirected to http://localhost:3000/admin/photos/edit/17
+Completed in 12004ms (DB: 2) | 302 Found [http://localhost/admin/photos/create]
+
+
+Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-09 05:54:48) [GET]
+ Parameters: {"action"=>"edit", "id"=>"17", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.7ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mPhoto Load (0.3ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 17) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.6ms)
+Rendered admin/helpers/_preview (0.2ms)
+Rendered admin/templates/_file (6.2ms)
+Rendered admin/templates/_string (0.8ms)
+Rendered admin/templates/_string (0.7ms)
+Rendered admin/templates/_text (0.5ms)
+Rendered admin/templates/_string (0.7ms)
+Rendered admin/resources/_form (13.7ms)
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "categories" [0m
+ [4;36;1mCategory Load (0.5ms)[0m [0;1mSELECT * FROM "categories" [0m
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 17 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 17) [0m
+ [4;35;1mSQL (0.3ms)[0m [0mSELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 17 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 17) [0m
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 17 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.4ms)
+Rendered admin/helpers/_flash_message (0.1ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 244ms (View: 216, DB: 2) | 200 OK [http://localhost/admin/photos/edit/17]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:55:18) [GET]
+ [4;36;1mPhoto Load (2.0ms)[0m [0;1mSELECT * FROM "photos" [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 30ms (View: 20, DB: 2) | 200 OK [http://localhost/photos]
+
+
+Processing Admin::PhotosController#new (for 127.0.0.1 at 2010-10-09 05:55:34) [GET]
+ Parameters: {"action"=>"new", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.6ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/new
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/templates/_file (2.2ms)
+Rendered admin/templates/_string (0.7ms)
+Rendered admin/templates/_string (0.7ms)
+Rendered admin/templates/_text (0.6ms)
+Rendered admin/templates/_string (0.9ms)
+Rendered admin/resources/_form (9.5ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.4ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 100ms (View: 21, DB: 1) | 200 OK [http://localhost/admin/photos/new]
+
+
+Processing Admin::PhotosController#create (for 127.0.0.1 at 2010-10-09 05:55:45) [POST]
+ Parameters: {"photo"=>{"photo"=>#, "title"=>"Dragonfly", "flickr_url"=>"", "sort"=>"", "description"=>""}, "commit"=>"Create Photo", "action"=>"create", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.6ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-auwv40-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-auwv40-0.jpg[0]' -resize "x308" -crop "308x308+82+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-auwv40-020101009-87161-1d3ctm8-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-auwv40-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-auwv40-0.jpg[0]' -resize "x224" -crop "224x224+59+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-auwv40-020101009-87161-171x8eu-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-auwv40-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-auwv40-0.jpg[0]' -resize "x140" -crop "140x140+37+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-auwv40-020101009-87161-1sdmlje-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-auwv40-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-auwv40-0.jpg[0]' -resize "1024x1024>" '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-auwv40-020101009-87161-sjzmz7-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-auwv40-020101009-87161-sjzmz7-0[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-auwv40-020101009-87161-sjzmz7-0[0]' -resize "x84" -crop "84x84+22+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-auwv40-020101009-87161-sjzmz7-020101009-87161-140rl5u-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-auwv40-020101009-87161-sjzmz7-0[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-auwv40-020101009-87161-sjzmz7-0[0]' -resize "x56" -crop "56x56+14+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-auwv40-020101009-87161-sjzmz7-020101009-87161-3cvai-0' 2>/dev/null
+ [4;35;1mPhoto Create (0.4ms)[0m [0mINSERT INTO "photos" ("photo_file_size", "created_at", "title", "flickr_url", "photo_file_name", "updated_at", "photo_content_type", "photo_updated_at", "description", "sort") VALUES(262475, '2010-10-09 09:55:47', 'Dragonfly', '', 'Dragonfly.jpg', '2010-10-09 09:55:47', 'image/jpeg', '2010-10-09 09:55:45', '', NULL)[0m
+[paperclip] Saving attachments.
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/18/size11/Dragonfly.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/18/size8/Dragonfly.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/18/size5/Dragonfly.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/18/size3/Dragonfly.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/18/original/Dragonfly.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/18/size2/Dragonfly.jpg
+Redirected to http://localhost:3000/admin/photos/edit/18
+Completed in 33067ms (DB: 1) | 302 Found [http://localhost/admin/photos/create]
+
+
+Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-09 05:56:18) [GET]
+ Parameters: {"action"=>"edit", "id"=>"18", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.8ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mPhoto Load (0.3ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 18) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.6ms)
+Rendered admin/helpers/_preview (0.2ms)
+Rendered admin/templates/_file (6.0ms)
+Rendered admin/templates/_string (1.0ms)
+Rendered admin/templates/_string (0.7ms)
+Rendered admin/templates/_text (0.5ms)
+Rendered admin/templates/_string (0.7ms)
+Rendered admin/resources/_form (13.1ms)
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" [0m
+ [4;35;1mCategory Load (0.5ms)[0m [0mSELECT * FROM "categories" [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 18 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 18) [0m
+ [4;36;1mSQL (0.3ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 18 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 18) [0m
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 18 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.4ms)
+Rendered admin/helpers/_flash_message (0.1ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 123ms (View: 95, DB: 3) | 200 OK [http://localhost/admin/photos/edit/18]
+
+
+Processing Admin::PhotosController#new (for 127.0.0.1 at 2010-10-09 05:56:58) [GET]
+ Parameters: {"action"=>"new", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.7ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/new
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/templates/_file (2.0ms)
+Rendered admin/templates/_string (0.7ms)
+Rendered admin/templates/_string (0.7ms)
+Rendered admin/templates/_text (0.5ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/resources/_form (8.6ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.4ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 45ms (View: 21, DB: 1) | 200 OK [http://localhost/admin/photos/new]
+
+
+Processing Admin::PhotosController#create (for 127.0.0.1 at 2010-10-09 05:57:15) [POST]
+ Parameters: {"photo"=>{"photo"=>#, "title"=>"Famine Monument at Murrisk", "flickr_url"=>"", "sort"=>"", "description"=>""}, "commit"=>"Create Photo", "action"=>"create", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.9ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-15p81zu-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-15p81zu-0.jpg[0]' -resize "x308" -crop "308x308+77+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-15p81zu-020101009-87161-knf8e3-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-15p81zu-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-15p81zu-0.jpg[0]' -resize "x224" -crop "224x224+56+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-15p81zu-020101009-87161-afs9fn-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-15p81zu-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-15p81zu-0.jpg[0]' -resize "x140" -crop "140x140+35+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-15p81zu-020101009-87161-1eiv2gu-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-15p81zu-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-15p81zu-0.jpg[0]' -resize "1024x1024>" '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-15p81zu-020101009-87161-1sv0wg1-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-15p81zu-020101009-87161-1sv0wg1-0[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-15p81zu-020101009-87161-1sv0wg1-0[0]' -resize "x84" -crop "84x84+20+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-15p81zu-020101009-87161-1sv0wg1-020101009-87161-427c6n-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-15p81zu-020101009-87161-1sv0wg1-0[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-15p81zu-020101009-87161-1sv0wg1-0[0]' -resize "x56" -crop "56x56+13+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-15p81zu-020101009-87161-1sv0wg1-020101009-87161-1ephlxk-0' 2>/dev/null
+ [4;35;1mPhoto Create (0.6ms)[0m [0mINSERT INTO "photos" ("photo_file_size", "created_at", "title", "flickr_url", "photo_file_name", "updated_at", "photo_content_type", "photo_updated_at", "description", "sort") VALUES(238370, '2010-10-09 09:57:18', 'Famine Monument at Murrisk', '', 'Famine Monument at Murrisk.jpg', '2010-10-09 09:57:18', 'image/jpeg', '2010-10-09 09:57:15', '', NULL)[0m
+[paperclip] Saving attachments.
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/19/size11/Famine Monument at Murrisk.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/19/size8/Famine Monument at Murrisk.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/19/size5/Famine Monument at Murrisk.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/19/size3/Famine Monument at Murrisk.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/19/original/Famine Monument at Murrisk.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/19/size2/Famine Monument at Murrisk.jpg
+Redirected to http://localhost:3000/admin/photos/edit/19
+Completed in 3267ms (DB: 1) | 302 Found [http://localhost/admin/photos/create]
+
+
+Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-09 05:57:18) [GET]
+ Parameters: {"action"=>"edit", "id"=>"19", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.7ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mPhoto Load (0.5ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 19) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.2ms)
+Rendered admin/helpers/_search (0.9ms)
+Rendered admin/helpers/_preview (0.2ms)
+Rendered admin/templates/_file (8.4ms)
+Rendered admin/templates/_string (0.8ms)
+Rendered admin/templates/_string (0.8ms)
+Rendered admin/templates/_text (0.6ms)
+Rendered admin/templates/_string (1.2ms)
+Rendered admin/resources/_form (17.5ms)
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" [0m
+ [4;35;1mCategory Load (0.5ms)[0m [0mSELECT * FROM "categories" [0m
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 19 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 19) [0m
+ [4;36;1mSQL (0.3ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 19 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 19) [0m
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 19 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.8ms)
+Rendered admin/helpers/_flash_message (0.1ms)
+Rendered admin/shared/_footer (0.4ms)
+Completed in 81ms (View: 47, DB: 3) | 200 OK [http://localhost/admin/photos/edit/19]
+
+
+Processing Admin::PhotosController#new (for 127.0.0.1 at 2010-10-09 05:57:20) [GET]
+ Parameters: {"action"=>"new", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.6ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/new
+Rendered admin/helpers/_list (0.2ms)
+Rendered admin/templates/_file (2.0ms)
+Rendered admin/templates/_string (0.7ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_text (0.5ms)
+Rendered admin/templates/_string (1.0ms)
+Rendered admin/resources/_form (9.0ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.4ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 103ms (View: 81, DB: 1) | 200 OK [http://localhost/admin/photos/new]
+
+
+Processing Admin::PhotosController#new (for 127.0.0.1 at 2010-10-09 06:04:10) [GET]
+ Parameters: {"action"=>"new", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.6ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/new
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/templates/_file (2.0ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_text (0.5ms)
+Rendered admin/templates/_string (0.5ms)
+Rendered admin/resources/_form (8.5ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.4ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 53ms (View: 21, DB: 1) | 200 OK [http://localhost/admin/photos/new]
+
+
+Processing Admin::PhotosController#new (for 127.0.0.1 at 2010-10-09 06:04:14) [GET]
+ Parameters: {"action"=>"new", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.6ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/new
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/templates/_file (1.9ms)
+Rendered admin/templates/_string (0.7ms)
+Rendered admin/templates/_string (0.5ms)
+Rendered admin/templates/_text (0.5ms)
+Rendered admin/templates/_string (0.5ms)
+Rendered admin/resources/_form (7.9ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.4ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 100ms (View: 19, DB: 1) | 200 OK [http://localhost/admin/photos/new]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 06:04:39) [GET]
+ [4;36;1mPhoto Load (1.8ms)[0m [0;1mSELECT * FROM "photos" [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 26ms (View: 17, DB: 2) | 200 OK [http://localhost/photos]
+
+
+Processing Admin::PhotosController#create (for 127.0.0.1 at 2010-10-09 06:04:54) [POST]
+ Parameters: {"photo"=>{"photo"=>#, "title"=>"Halfway There", "flickr_url"=>"", "sort"=>"", "description"=>""}, "commit"=>"Create Photo", "action"=>"create", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.6ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1opp1ql-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1opp1ql-0.jpg[0]' -resize "308x" -crop "308x308+0+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1opp1ql-020101009-87161-1bpiiql-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1opp1ql-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1opp1ql-0.jpg[0]' -resize "224x" -crop "224x224+0+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1opp1ql-020101009-87161-vdoyqs-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1opp1ql-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1opp1ql-0.jpg[0]' -resize "140x" -crop "140x140+0+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1opp1ql-020101009-87161-5bc6zt-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1opp1ql-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1opp1ql-0.jpg[0]' -resize "1024x1024>" '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1opp1ql-020101009-87161-j4oaql-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1opp1ql-020101009-87161-j4oaql-0[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1opp1ql-020101009-87161-j4oaql-0[0]' -resize "84x" -crop "84x84+0+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1opp1ql-020101009-87161-j4oaql-020101009-87161-1kh0hig-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1opp1ql-020101009-87161-j4oaql-0[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1opp1ql-020101009-87161-j4oaql-0[0]' -resize "56x" -crop "56x56+0+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1opp1ql-020101009-87161-j4oaql-020101009-87161-17qmczv-0' 2>/dev/null
+ [4;36;1mPhoto Create (0.6ms)[0m [0;1mINSERT INTO "photos" ("photo_file_size", "created_at", "title", "flickr_url", "photo_file_name", "updated_at", "photo_content_type", "photo_updated_at", "description", "sort") VALUES(539439, '2010-10-09 10:04:57', 'Halfway There', '', 'Halfway There.jpg', '2010-10-09 10:04:57', 'image/jpeg', '2010-10-09 10:04:55', '', NULL)[0m
+[paperclip] Saving attachments.
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/20/size11/Halfway There.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/20/size8/Halfway There.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/20/size5/Halfway There.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/20/size3/Halfway There.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/20/original/Halfway There.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/20/size2/Halfway There.jpg
+Redirected to http://localhost:3000/admin/photos/edit/20
+Completed in 2396ms (DB: 1) | 302 Found [http://localhost/admin/photos/create]
+
+
+Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-09 06:04:57) [GET]
+ Parameters: {"action"=>"edit", "id"=>"20", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.6ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mPhoto Load (0.5ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 20) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.7ms)
+Rendered admin/helpers/_preview (0.2ms)
+Rendered admin/templates/_file (5.4ms)
+Rendered admin/templates/_string (0.7ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_text (0.5ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/resources/_form (11.4ms)
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "categories" [0m
+ [4;36;1mCategory Load (0.5ms)[0m [0;1mSELECT * FROM "categories" [0m
+ [4;35;1mCategory Load (0.1ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 20 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 20) [0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 20 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 20) [0m
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 20 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.4ms)
+Rendered admin/helpers/_flash_message (0.1ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 70ms (View: 36, DB: 2) | 200 OK [http://localhost/admin/photos/edit/20]
+
+
+Processing Admin::PhotosController#new (for 127.0.0.1 at 2010-10-09 06:05:05) [GET]
+ Parameters: {"action"=>"new", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.7ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/new
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/templates/_file (1.9ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_string (0.9ms)
+Rendered admin/templates/_text (0.5ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/resources/_form (8.8ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.4ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 45ms (View: 22, DB: 1) | 200 OK [http://localhost/admin/photos/new]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 06:05:07) [GET]
+ [4;35;1mPhoto Load (2.1ms)[0m [0mSELECT * FROM "photos" [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 29ms (View: 19, DB: 2) | 200 OK [http://localhost/photos]
+
+
+Processing Admin::PhotosController#create (for 127.0.0.1 at 2010-10-09 06:05:24) [POST]
+ Parameters: {"photo"=>{"photo"=>#, "title"=>"House on the Hill", "flickr_url"=>"", "sort"=>"", "description"=>""}, "commit"=>"Create Photo", "action"=>"create", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.9ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-bhlem9-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-bhlem9-0.jpg[0]' -resize "308x" -crop "308x308+0+47" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-bhlem9-020101009-87161-1xzv54d-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-bhlem9-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-bhlem9-0.jpg[0]' -resize "224x" -crop "224x224+0+34" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-bhlem9-020101009-87161-1qh1dqd-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-bhlem9-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-bhlem9-0.jpg[0]' -resize "140x" -crop "140x140+0+21" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-bhlem9-020101009-87161-iiflyl-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-bhlem9-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-bhlem9-0.jpg[0]' -resize "1024x1024>" '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-bhlem9-020101009-87161-geq4fa-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-bhlem9-020101009-87161-geq4fa-0[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-bhlem9-020101009-87161-geq4fa-0[0]' -resize "84x" -crop "84x84+0+12" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-bhlem9-020101009-87161-geq4fa-020101009-87161-qf3jlt-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-bhlem9-020101009-87161-geq4fa-0[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-bhlem9-020101009-87161-geq4fa-0[0]' -resize "56x" -crop "56x56+0+8" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-bhlem9-020101009-87161-geq4fa-020101009-87161-1o92nef-0' 2>/dev/null
+ [4;35;1mPhoto Create (0.5ms)[0m [0mINSERT INTO "photos" ("photo_file_size", "created_at", "title", "flickr_url", "photo_file_name", "updated_at", "photo_content_type", "photo_updated_at", "description", "sort") VALUES(377139, '2010-10-09 10:05:26', 'House on the Hill', '', 'House on the HIll.jpg', '2010-10-09 10:05:26', 'image/jpeg', '2010-10-09 10:05:24', '', NULL)[0m
+[paperclip] Saving attachments.
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/21/size11/House on the HIll.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/21/size8/House on the HIll.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/21/size5/House on the HIll.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/21/size3/House on the HIll.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/21/original/House on the HIll.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/21/size2/House on the HIll.jpg
+Redirected to http://localhost:3000/admin/photos/edit/21
+Completed in 1883ms (DB: 1) | 302 Found [http://localhost/admin/photos/create]
+
+
+Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-09 06:05:26) [GET]
+ Parameters: {"action"=>"edit", "id"=>"21", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.9ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mPhoto Load (0.4ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 21) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.2ms)
+Rendered admin/helpers/_search (0.6ms)
+Rendered admin/helpers/_preview (0.2ms)
+Rendered admin/templates/_file (5.3ms)
+Rendered admin/templates/_string (1.3ms)
+Rendered admin/templates/_string (1.1ms)
+Rendered admin/templates/_text (1.0ms)
+Rendered admin/templates/_string (1.2ms)
+Rendered admin/resources/_form (15.2ms)
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" [0m
+ [4;35;1mCategory Load (0.6ms)[0m [0mSELECT * FROM "categories" [0m
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 21 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 21) [0m
+ [4;36;1mSQL (0.4ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 21 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 21) [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 21 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.7ms)
+Rendered admin/helpers/_flash_message (0.1ms)
+Rendered admin/shared/_footer (0.3ms)
+Completed in 157ms (View: 121, DB: 3) | 200 OK [http://localhost/admin/photos/edit/21]
+
+
+Processing Admin::PhotosController#new (for 127.0.0.1 at 2010-10-09 06:05:57) [GET]
+ Parameters: {"action"=>"new", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.6ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/new
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/templates/_file (2.0ms)
+Rendered admin/templates/_string (0.7ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_text (0.6ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/resources/_form (8.5ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.4ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 42ms (View: 20, DB: 1) | 200 OK [http://localhost/admin/photos/new]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 06:05:58) [GET]
+ [4;36;1mPhoto Load (2.1ms)[0m [0;1mSELECT * FROM "photos" [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 30ms (View: 21, DB: 2) | 200 OK [http://localhost/photos]
+
+
+Processing Admin::PhotosController#create (for 127.0.0.1 at 2010-10-09 06:06:15) [POST]
+ Parameters: {"photo"=>{"photo"=>#, "title"=>"House through the Doorway", "flickr_url"=>"", "sort"=>"", "description"=>""}, "commit"=>"Create Photo", "action"=>"create", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (1.0ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-m7gni5-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-m7gni5-0.jpg[0]' -resize "308x" -crop "308x308+0+63" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-m7gni5-020101009-87161-7xhz8u-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-m7gni5-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-m7gni5-0.jpg[0]' -resize "224x" -crop "224x224+0+46" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-m7gni5-020101009-87161-18mwr03-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-m7gni5-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-m7gni5-0.jpg[0]' -resize "140x" -crop "140x140+0+28" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-m7gni5-020101009-87161-1ia5l3l-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-m7gni5-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-m7gni5-0.jpg[0]' -resize "1024x1024>" '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-m7gni5-020101009-87161-1hsc2d0-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-m7gni5-020101009-87161-1hsc2d0-0[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-m7gni5-020101009-87161-1hsc2d0-0[0]' -resize "84x" -crop "84x84+0+17" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-m7gni5-020101009-87161-1hsc2d0-020101009-87161-1d2n0mw-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-m7gni5-020101009-87161-1hsc2d0-0[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-m7gni5-020101009-87161-1hsc2d0-0[0]' -resize "56x" -crop "56x56+0+11" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-m7gni5-020101009-87161-1hsc2d0-020101009-87161-1wev9y4-0' 2>/dev/null
+ [4;36;1mPhoto Create (0.5ms)[0m [0;1mINSERT INTO "photos" ("photo_file_size", "created_at", "title", "flickr_url", "photo_file_name", "updated_at", "photo_content_type", "photo_updated_at", "description", "sort") VALUES(183360, '2010-10-09 10:06:17', 'House through the Doorway', '', 'House through the Doorway.jpg', '2010-10-09 10:06:17', 'image/jpeg', '2010-10-09 10:06:15', '', NULL)[0m
+[paperclip] Saving attachments.
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/22/size11/House through the Doorway.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/22/size8/House through the Doorway.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/22/size5/House through the Doorway.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/22/size3/House through the Doorway.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/22/original/House through the Doorway.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/22/size2/House through the Doorway.jpg
+Redirected to http://localhost:3000/admin/photos/edit/22
+Completed in 2324ms (DB: 1) | 302 Found [http://localhost/admin/photos/create]
+
+
+Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-09 06:06:17) [GET]
+ Parameters: {"action"=>"edit", "id"=>"22", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.7ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mPhoto Load (0.6ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 22) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.7ms)
+Rendered admin/helpers/_preview (0.2ms)
+Rendered admin/templates/_file (5.7ms)
+Rendered admin/templates/_string (0.8ms)
+Rendered admin/templates/_string (0.7ms)
+Rendered admin/templates/_text (0.5ms)
+Rendered admin/templates/_string (0.7ms)
+Rendered admin/resources/_form (12.6ms)
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "categories" [0m
+ [4;36;1mCategory Load (0.6ms)[0m [0;1mSELECT * FROM "categories" [0m
+ [4;35;1mCategory Load (0.1ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 22 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 22) [0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 22 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 22) [0m
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 22 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.4ms)
+Rendered admin/helpers/_flash_message (0.1ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 66ms (View: 37, DB: 3) | 200 OK [http://localhost/admin/photos/edit/22]
+
+
+Processing Admin::PhotosController#new (for 127.0.0.1 at 2010-10-09 06:06:19) [GET]
+ Parameters: {"action"=>"new", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.6ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/new
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/templates/_file (1.9ms)
+Rendered admin/templates/_string (0.7ms)
+Rendered admin/templates/_string (0.7ms)
+Rendered admin/templates/_text (0.5ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/resources/_form (8.2ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.4ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 41ms (View: 19, DB: 1) | 200 OK [http://localhost/admin/photos/new]
+
+
+Processing Admin::PhotosController#create (for 127.0.0.1 at 2010-10-09 06:06:35) [POST]
+ Parameters: {"photo"=>{"photo"=>#, "title"=>"Light & Shade", "flickr_url"=>"", "sort"=>"", "description"=>""}, "commit"=>"Create Photo", "action"=>"create", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (1.0ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1hm2sjn-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1hm2sjn-0.jpg[0]' -resize "308x" -crop "308x308+0+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1hm2sjn-020101009-87161-7pypq9-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1hm2sjn-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1hm2sjn-0.jpg[0]' -resize "224x" -crop "224x224+0+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1hm2sjn-020101009-87161-39qfsg-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1hm2sjn-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1hm2sjn-0.jpg[0]' -resize "140x" -crop "140x140+0+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1hm2sjn-020101009-87161-138ugb6-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1hm2sjn-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1hm2sjn-0.jpg[0]' -resize "1024x1024>" '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1hm2sjn-020101009-87161-1x757t4-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1hm2sjn-020101009-87161-1x757t4-0[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1hm2sjn-020101009-87161-1x757t4-0[0]' -resize "84x" -crop "84x84+0+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1hm2sjn-020101009-87161-1x757t4-020101009-87161-1sbpfm6-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1hm2sjn-020101009-87161-1x757t4-0[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1hm2sjn-020101009-87161-1x757t4-0[0]' -resize "56x" -crop "56x56+0+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1hm2sjn-020101009-87161-1x757t4-020101009-87161-1rdc02u-0' 2>/dev/null
+ [4;36;1mPhoto Create (0.7ms)[0m [0;1mINSERT INTO "photos" ("photo_file_size", "created_at", "title", "flickr_url", "photo_file_name", "updated_at", "photo_content_type", "photo_updated_at", "description", "sort") VALUES(935147, '2010-10-09 10:06:37', 'Light & Shade', '', 'Light and Shade.jpg', '2010-10-09 10:06:37', 'image/jpeg', '2010-10-09 10:06:35', '', NULL)[0m
+[paperclip] Saving attachments.
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/23/size11/Light and Shade.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/23/size8/Light and Shade.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/23/size5/Light and Shade.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/23/size3/Light and Shade.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/23/original/Light and Shade.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/23/size2/Light and Shade.jpg
+Redirected to http://localhost:3000/admin/photos/edit/23
+Completed in 2373ms (DB: 2) | 302 Found [http://localhost/admin/photos/create]
+
+
+Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-09 06:06:38) [GET]
+ Parameters: {"action"=>"edit", "id"=>"23", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.7ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mPhoto Load (0.5ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 23) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.6ms)
+Rendered admin/helpers/_preview (0.2ms)
+Rendered admin/templates/_file (5.2ms)
+Rendered admin/templates/_string (1.3ms)
+Rendered admin/templates/_string (1.1ms)
+Rendered admin/templates/_text (0.8ms)
+Rendered admin/templates/_string (1.0ms)
+Rendered admin/resources/_form (14.4ms)
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "categories" [0m
+ [4;36;1mCategory Load (0.5ms)[0m [0;1mSELECT * FROM "categories" [0m
+ [4;35;1mCategory Load (0.1ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 23 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 23) [0m
+ [4;35;1mSQL (0.3ms)[0m [0mSELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 23 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 23) [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 23 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.7ms)
+Rendered admin/helpers/_flash_message (0.1ms)
+Rendered admin/shared/_footer (0.4ms)
+Completed in 77ms (View: 43, DB: 3) | 200 OK [http://localhost/admin/photos/edit/23]
+
+
+Processing Admin::PhotosController#new (for 127.0.0.1 at 2010-10-09 06:06:41) [GET]
+ Parameters: {"action"=>"new", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.6ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/new
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/templates/_file (2.0ms)
+Rendered admin/templates/_string (1.0ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_text (0.5ms)
+Rendered admin/templates/_string (0.7ms)
+Rendered admin/resources/_form (8.6ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.4ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 43ms (View: 21, DB: 1) | 200 OK [http://localhost/admin/photos/new]
+
+
+Processing Admin::PhotosController#create (for 127.0.0.1 at 2010-10-09 06:06:59) [POST]
+ Parameters: {"photo"=>{"photo"=>#, "title"=>"Moody Me", "flickr_url"=>"", "sort"=>"", "description"=>""}, "commit"=>"Create Photo", "action"=>"create", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.8ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-ip5vdn-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-ip5vdn-0.jpg[0]' -resize "308x" -crop "308x308+0+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-ip5vdn-020101009-87161-1pxj2kk-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-ip5vdn-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-ip5vdn-0.jpg[0]' -resize "224x" -crop "224x224+0+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-ip5vdn-020101009-87161-eombi2-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-ip5vdn-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-ip5vdn-0.jpg[0]' -resize "140x" -crop "140x140+0+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-ip5vdn-020101009-87161-zb0fg8-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-ip5vdn-0.jpg[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-ip5vdn-0.jpg[0]' -resize "1024x1024>" '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-ip5vdn-020101009-87161-1fngl66-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-ip5vdn-020101009-87161-1fngl66-0[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-ip5vdn-020101009-87161-1fngl66-0[0]' -resize "84x" -crop "84x84+0+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-ip5vdn-020101009-87161-1fngl66-020101009-87161-1f8xgon-0' 2>/dev/null
+[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-ip5vdn-020101009-87161-1fngl66-0[0]' 2>/dev/null
+[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-ip5vdn-020101009-87161-1fngl66-0[0]' -resize "56x" -crop "56x56+0+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-ip5vdn-020101009-87161-1fngl66-020101009-87161-uj60q-0' 2>/dev/null
+ [4;36;1mPhoto Create (0.4ms)[0m [0;1mINSERT INTO "photos" ("photo_file_size", "created_at", "title", "flickr_url", "photo_file_name", "updated_at", "photo_content_type", "photo_updated_at", "description", "sort") VALUES(510990, '2010-10-09 10:07:01', 'Moody Me', '', 'Moody Me.jpg', '2010-10-09 10:07:01', 'image/jpeg', '2010-10-09 10:06:59', '', NULL)[0m
+[paperclip] Saving attachments.
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/24/size11/Moody Me.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/24/size8/Moody Me.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/24/size5/Moody Me.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/24/size3/Moody Me.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/24/original/Moody Me.jpg
+[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/24/size2/Moody Me.jpg
+Redirected to http://localhost:3000/admin/photos/edit/24
+Completed in 1918ms (DB: 1) | 302 Found [http://localhost/admin/photos/create]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 06:07:01) [GET]
+ [4;35;1mPhoto Load (4.1ms)[0m [0mSELECT * FROM "photos" [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 45ms (View: 31, DB: 4) | 200 OK [http://localhost/photos]
+
+
+Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-09 06:07:01) [GET]
+ Parameters: {"action"=>"edit", "id"=>"24", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.9ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mPhoto Load (0.3ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 24) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.7ms)
+Rendered admin/helpers/_preview (0.2ms)
+Rendered admin/templates/_file (6.1ms)
+Rendered admin/templates/_string (1.4ms)
+Rendered admin/templates/_string (1.0ms)
+Rendered admin/templates/_text (0.7ms)
+Rendered admin/templates/_string (1.0ms)
+Rendered admin/resources/_form (16.9ms)
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" [0m
+ [4;35;1mCategory Load (0.6ms)[0m [0mSELECT * FROM "categories" [0m
+ [4;36;1mCategory Load (0.1ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 24 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 24) [0m
+ [4;36;1mSQL (0.3ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 24 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 24) [0m
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 24 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.4ms)
+Rendered admin/helpers/_flash_message (0.1ms)
+Rendered admin/shared/_footer (0.4ms)
+Completed in 95ms (View: 46, DB: 3) | 200 OK [http://localhost/admin/photos/edit/24]
+
+
+Processing TypusController#dashboard (for 127.0.0.1 at 2010-10-09 06:07:13) [GET]
+ Parameters: {"action"=>"dashboard", "controller"=>"typus"}
+ [4;35;1mTypusUser Load (0.6ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+Rendering template within layouts/admin
+Rendering typus/dashboard
+Rendered admin/dashboard/_sidebar (0.6ms)
+Rendered admin/helpers/_applications (5.3ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.4ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 46ms (View: 39, DB: 1) | 200 OK [http://localhost/admin]
+
+
+Processing Admin::CategoriesController#index (for 127.0.0.1 at 2010-10-09 06:07:17) [GET]
+ Parameters: {"action"=>"index", "controller"=>"admin/categories"}
+ [4;36;1mTypusUser Load (0.6ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "categories" [0m
+Rendering template within layouts/admin
+Rendering admin/resources/index
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.5ms)
+ [4;36;1mCategory Load (0.6ms)[0m [0;1mSELECT "categories".* FROM "categories" ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.1ms)
+Rendered admin/helpers/_header (0.2ms)
+Rendered admin/helpers/_login_info (0.6ms)
+Rendered admin/shared/_footer (0.3ms)
+Completed in 119ms (View: 98, DB: 1) | 200 OK [http://localhost/admin/categories]
+
+
+Processing Admin::CategoriesController#edit (for 127.0.0.1 at 2010-10-09 06:07:21) [GET]
+ Parameters: {"action"=>"edit", "id"=>"1", "controller"=>"admin/categories"}
+ [4;35;1mTypusUser Load (0.6ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = 1) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.6ms)
+Rendered admin/templates/_string (1.8ms)
+Rendered admin/templates/_text (0.5ms)
+Rendered admin/templates/_string (0.7ms)
+Rendered admin/templates/_string (0.7ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/resources/_form (8.1ms)
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "photos" [0m
+ [4;36;1mPhoto Load (2.0ms)[0m [0;1mSELECT * FROM "photos" [0m
+ [4;35;1mPhoto Load (1.1ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = 1) [0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = 1) [0m
+ [4;35;1mPhoto Load (0.8ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) ORDER BY photos.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.1ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.5ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 75ms (View: 50, DB: 5) | 200 OK [http://localhost/admin/categories/edit/1]
+
+
+Processing Admin::CategoriesController#index (for 127.0.0.1 at 2010-10-09 06:07:32) [GET]
+ Parameters: {"action"=>"index", "controller"=>"admin/categories"}
+ [4;36;1mTypusUser Load (0.6ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "categories" [0m
+Rendering template within layouts/admin
+Rendering admin/resources/index
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.6ms)
+ [4;36;1mCategory Load (0.6ms)[0m [0;1mSELECT "categories".* FROM "categories" ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.1ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.4ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 49ms (View: 26, DB: 1) | 200 OK [http://localhost/admin/categories]
+
+
+Processing TypusController#dashboard (for 127.0.0.1 at 2010-10-09 06:07:34) [GET]
+ Parameters: {"action"=>"dashboard", "controller"=>"typus"}
+ [4;35;1mTypusUser Load (0.6ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+Rendering template within layouts/admin
+Rendering typus/dashboard
+Rendered admin/dashboard/_sidebar (0.2ms)
+Rendered admin/helpers/_applications (2.6ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.4ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 31ms (View: 25, DB: 1) | 200 OK [http://localhost/admin]
+
+
+Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-09 06:07:35) [GET]
+ Parameters: {"action"=>"index", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.6ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/admin
+Rendering admin/resources/index
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.5ms)
+ [4;36;1mPhoto Load (1.6ms)[0m [0;1mSELECT "photos".* FROM "photos" ORDER BY photos.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.1ms)
+ [4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 1 ) [0m
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 2 ) [0m
+ [4;35;1mCategory Load (0.6ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 3 ) [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 4 ) [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 5 ) [0m
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 6 ) [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 7 ) [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 8 ) [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 10 ) [0m
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 11 ) [0m
+ [4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 12 ) [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 13 ) [0m
+ [4;35;1mCategory Load (0.1ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 14 ) [0m
+ [4;36;1mCategory Load (0.1ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 15 ) [0m
+ [4;35;1mCategory Load (0.1ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 17 ) [0m
+Rendered admin/helpers/_pagination (25.2ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.5ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 116ms (View: 86, DB: 7) | 200 OK [http://localhost/admin/photos]
+
+
+Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-09 06:07:39) [GET]
+ Parameters: {"action"=>"edit", "id"=>"14", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.6ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mPhoto Load (0.3ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 14) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.6ms)
+Rendered admin/helpers/_preview (0.2ms)
+Rendered admin/templates/_file (4.6ms)
+Rendered admin/templates/_string (0.7ms)
+Rendered admin/templates/_string (0.7ms)
+Rendered admin/templates/_text (0.5ms)
+Rendered admin/templates/_string (0.7ms)
+Rendered admin/resources/_form (10.9ms)
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" [0m
+ [4;35;1mCategory Load (0.6ms)[0m [0mSELECT * FROM "categories" [0m
+ [4;36;1mCategory Load (0.1ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 14 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 14) [0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 14 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 14) [0m
+ [4;36;1mCategory Load (0.1ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 14 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.4ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 56ms (View: 33, DB: 2) | 200 OK [http://localhost/admin/photos/edit/14]
+
+
+Processing Admin::PhotosController#relate (for 127.0.0.1 at 2010-10-09 06:07:46) [POST]
+ Parameters: {"commit"=>"Add", "related"=>{"model"=>"Category", "relation"=>"categories", "id"=>"1"}, "action"=>"relate", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "id"=>"14", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.6ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mPhoto Load (0.3ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 14) [0m
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = 1) [0m
+ [4;36;1mSQL (0.3ms)[0m [0;1mINSERT INTO "categories_photos" ("category_id", "photo_id") VALUES (1, 14)[0m
+Redirected to http://localhost:3000/admin/photos/edit/14
+Completed in 100ms (DB: 1) | 302 Found [http://localhost/admin/photos/relate/14]
+
+
+Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-09 06:07:46) [GET]
+ Parameters: {"action"=>"edit", "id"=>"14", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.6ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mPhoto Load (0.3ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 14) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.5ms)
+Rendered admin/helpers/_preview (0.2ms)
+Rendered admin/templates/_file (4.6ms)
+Rendered admin/templates/_string (0.7ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_text (0.5ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/resources/_form (10.7ms)
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "categories" [0m
+ [4;36;1mCategory Load (0.5ms)[0m [0;1mSELECT * FROM "categories" [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 14 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 14) [0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 14 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 14) [0m
+ [4;35;1mCategory Load (0.5ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 14 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.2ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.5ms)
+Rendered admin/helpers/_flash_message (0.1ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 64ms (View: 39, DB: 2) | 200 OK [http://localhost/admin/photos/edit/14]
+
+
+Processing TypusController#dashboard (for 127.0.0.1 at 2010-10-09 06:07:50) [GET]
+ Parameters: {"action"=>"dashboard", "controller"=>"typus"}
+ [4;36;1mTypusUser Load (0.6ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+Rendering template within layouts/admin
+Rendering typus/dashboard
+Rendered admin/dashboard/_sidebar (0.2ms)
+Rendered admin/helpers/_applications (61.8ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.4ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 91ms (View: 84, DB: 1) | 200 OK [http://localhost/admin]
+
+
+Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-09 06:07:53) [GET]
+ Parameters: {"action"=>"index", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.6ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/admin
+Rendering admin/resources/index
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.5ms)
+ [4;35;1mPhoto Load (1.4ms)[0m [0mSELECT "photos".* FROM "photos" ORDER BY photos.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.1ms)
+ [4;36;1mCategory Load (0.6ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 1 ) [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 2 ) [0m
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 3 ) [0m
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 4 ) [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 5 ) [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 6 ) [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 7 ) [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 8 ) [0m
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 10 ) [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 11 ) [0m
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 12 ) [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 13 ) [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 14 ) [0m
+ [4;35;1mCategory Load (0.1ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 15 ) [0m
+ [4;36;1mCategory Load (0.1ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 17 ) [0m
+Rendered admin/helpers/_pagination (0.6ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.4ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 86ms (View: 57, DB: 7) | 200 OK [http://localhost/admin/photos]
+
+
+Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-09 06:07:56) [GET]
+ Parameters: {"action"=>"edit", "id"=>"15", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.6ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mPhoto Load (0.3ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 15) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.6ms)
+Rendered admin/helpers/_preview (0.2ms)
+Rendered admin/templates/_file (4.7ms)
+Rendered admin/templates/_string (0.7ms)
+Rendered admin/templates/_string (0.7ms)
+Rendered admin/templates/_text (0.5ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/resources/_form (10.7ms)
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "categories" [0m
+ [4;36;1mCategory Load (0.5ms)[0m [0;1mSELECT * FROM "categories" [0m
+ [4;35;1mCategory Load (0.1ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 15 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 15) [0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 15 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 15) [0m
+ [4;35;1mCategory Load (0.1ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 15 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.5ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 56ms (View: 33, DB: 2) | 200 OK [http://localhost/admin/photos/edit/15]
+
+
+Processing Admin::PhotosController#relate (for 127.0.0.1 at 2010-10-09 06:08:00) [POST]
+ Parameters: {"commit"=>"Add", "related"=>{"model"=>"Category", "relation"=>"categories", "id"=>"1"}, "action"=>"relate", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "id"=>"15", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.6ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mPhoto Load (0.3ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 15) [0m
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = 1) [0m
+ [4;35;1mSQL (0.3ms)[0m [0mINSERT INTO "categories_photos" ("category_id", "photo_id") VALUES (1, 15)[0m
+Redirected to http://localhost:3000/admin/photos/edit/15
+Completed in 98ms (DB: 2) | 302 Found [http://localhost/admin/photos/relate/15]
+
+
+Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-09 06:08:01) [GET]
+ Parameters: {"action"=>"edit", "id"=>"15", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.6ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mPhoto Load (0.3ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 15) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.6ms)
+Rendered admin/helpers/_preview (0.2ms)
+Rendered admin/templates/_file (7.2ms)
+Rendered admin/templates/_string (0.7ms)
+Rendered admin/templates/_string (0.7ms)
+Rendered admin/templates/_text (0.5ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/resources/_form (13.7ms)
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" [0m
+ [4;35;1mCategory Load (0.5ms)[0m [0mSELECT * FROM "categories" [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 15 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 15) [0m
+ [4;36;1mSQL (0.3ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 15 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 15) [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 15 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.1ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.4ms)
+Rendered admin/helpers/_flash_message (0.1ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 68ms (View: 41, DB: 2) | 200 OK [http://localhost/admin/photos/edit/15]
+
+
+Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-09 06:08:02) [GET]
+ Parameters: {"action"=>"index", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.5ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/admin
+Rendering admin/resources/index
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.6ms)
+ [4;35;1mPhoto Load (2.2ms)[0m [0mSELECT "photos".* FROM "photos" ORDER BY photos.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.1ms)
+ [4;36;1mCategory Load (0.5ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 1 ) [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 2 ) [0m
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 3 ) [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 4 ) [0m
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 5 ) [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 6 ) [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 7 ) [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 8 ) [0m
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 10 ) [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 11 ) [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 12 ) [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 13 ) [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 14 ) [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 15 ) [0m
+ [4;36;1mCategory Load (0.1ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 17 ) [0m
+Rendered admin/helpers/_pagination (0.5ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.4ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 149ms (View: 60, DB: 7) | 200 OK [http://localhost/admin/photos]
+
+
+Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-09 06:08:03) [GET]
+ Parameters: {"action"=>"edit", "id"=>"17", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.6ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mPhoto Load (0.3ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 17) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.5ms)
+Rendered admin/helpers/_preview (0.2ms)
+Rendered admin/templates/_file (5.5ms)
+Rendered admin/templates/_string (0.8ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_text (0.5ms)
+Rendered admin/templates/_string (1.1ms)
+Rendered admin/resources/_form (12.2ms)
+ [4;35;1mSQL (0.3ms)[0m [0mSELECT count(*) AS count_all FROM "categories" [0m
+ [4;36;1mCategory Load (0.5ms)[0m [0;1mSELECT * FROM "categories" [0m
+ [4;35;1mCategory Load (0.1ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 17 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 17) [0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 17 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 17) [0m
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 17 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.4ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 120ms (View: 96, DB: 2) | 200 OK [http://localhost/admin/photos/edit/17]
+
+
+Processing Admin::PhotosController#relate (for 127.0.0.1 at 2010-10-09 06:08:06) [POST]
+ Parameters: {"commit"=>"Add", "related"=>{"model"=>"Category", "relation"=>"categories", "id"=>"1"}, "action"=>"relate", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "id"=>"17", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.5ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mPhoto Load (0.3ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 17) [0m
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = 1) [0m
+ [4;35;1mSQL (0.3ms)[0m [0mINSERT INTO "categories_photos" ("category_id", "photo_id") VALUES (1, 17)[0m
+Redirected to http://localhost:3000/admin/photos/edit/17
+Completed in 31ms (DB: 1) | 302 Found [http://localhost/admin/photos/relate/17]
+
+
+Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-09 06:08:06) [GET]
+ Parameters: {"action"=>"edit", "id"=>"17", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (1.1ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mPhoto Load (0.3ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 17) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.6ms)
+Rendered admin/helpers/_preview (0.2ms)
+Rendered admin/templates/_file (4.8ms)
+Rendered admin/templates/_string (0.7ms)
+Rendered admin/templates/_string (0.7ms)
+Rendered admin/templates/_text (0.5ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/resources/_form (10.9ms)
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" [0m
+ [4;35;1mCategory Load (0.5ms)[0m [0mSELECT * FROM "categories" [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 17 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 17) [0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 17 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 17) [0m
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 17 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.1ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.4ms)
+Rendered admin/helpers/_flash_message (0.1ms)
+Rendered admin/shared/_footer (0.3ms)
+Completed in 130ms (View: 37, DB: 3) | 200 OK [http://localhost/admin/photos/edit/17]
+
+
+Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-09 06:08:08) [GET]
+ Parameters: {"action"=>"index", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.5ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/admin
+Rendering admin/resources/index
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.5ms)
+ [4;35;1mPhoto Load (1.5ms)[0m [0mSELECT "photos".* FROM "photos" ORDER BY photos.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.1ms)
+ [4;36;1mCategory Load (0.5ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 1 ) [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 2 ) [0m
+ [4;36;1mCategory Load (0.7ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 3 ) [0m
+ [4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 4 ) [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 5 ) [0m
+ [4;35;1mCategory Load (0.5ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 6 ) [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 7 ) [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 8 ) [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 10 ) [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 11 ) [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 12 ) [0m
+ [4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 13 ) [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 14 ) [0m
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 15 ) [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 17 ) [0m
+Rendered admin/helpers/_pagination (0.5ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.4ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 146ms (View: 116, DB: 7) | 200 OK [http://localhost/admin/photos]
+
+
+Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-09 06:08:09) [GET]
+ Parameters: {"action"=>"index", "sort_order"=>"desc", "page"=>"2", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.5ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/admin
+Rendering admin/resources/index
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.6ms)
+Rendered admin/helpers/_remove_filter_link (20.2ms)
+ [4;35;1mPhoto Load (0.9ms)[0m [0mSELECT "photos".* FROM "photos" ORDER BY photos.id ASC LIMIT 15 OFFSET 15[0m
+Rendered admin/helpers/_table_header (0.1ms)
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 18 ) [0m
+ [4;35;1mCategory Load (0.1ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 19 ) [0m
+ [4;36;1mCategory Load (0.1ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 20 ) [0m
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 21 ) [0m
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 22 ) [0m
+ [4;35;1mCategory Load (0.1ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 23 ) [0m
+ [4;36;1mCategory Load (0.1ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 24 ) [0m
+Rendered admin/helpers/_pagination (63.1ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.4ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 148ms (View: 123, DB: 3) | 200 OK [http://localhost/admin/photos?page=2&sort_order=desc]
+
+
+Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-09 06:08:14) [GET]
+ Parameters: {"action"=>"edit", "id"=>"18", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.7ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mPhoto Load (0.3ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 18) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.5ms)
+Rendered admin/helpers/_preview (0.3ms)
+Rendered admin/templates/_file (5.3ms)
+Rendered admin/templates/_string (1.5ms)
+Rendered admin/templates/_string (1.0ms)
+Rendered admin/templates/_text (0.5ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/resources/_form (13.6ms)
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "categories" [0m
+ [4;36;1mCategory Load (0.5ms)[0m [0;1mSELECT * FROM "categories" [0m
+ [4;35;1mCategory Load (0.1ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 18 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 18) [0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 18 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 18) [0m
+ [4;35;1mCategory Load (0.1ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 18 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.4ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 59ms (View: 35, DB: 2) | 200 OK [http://localhost/admin/photos/edit/18]
+
+
+Processing Admin::PhotosController#relate (for 127.0.0.1 at 2010-10-09 06:08:17) [POST]
+ Parameters: {"commit"=>"Add", "related"=>{"model"=>"Category", "relation"=>"categories", "id"=>"2"}, "action"=>"relate", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "id"=>"18", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.6ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mPhoto Load (0.3ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 18) [0m
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = 2) [0m
+ [4;35;1mSQL (0.3ms)[0m [0mINSERT INTO "categories_photos" ("category_id", "photo_id") VALUES (2, 18)[0m
+Redirected to http://localhost:3000/admin/photos/edit/18
+Completed in 91ms (DB: 1) | 302 Found [http://localhost/admin/photos/relate/18]
+
+
+Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-09 06:08:17) [GET]
+ Parameters: {"action"=>"edit", "id"=>"18", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (1.0ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mPhoto Load (0.3ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 18) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.7ms)
+Rendered admin/helpers/_preview (0.2ms)
+Rendered admin/templates/_file (4.8ms)
+Rendered admin/templates/_string (0.7ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_text (0.4ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/resources/_form (11.0ms)
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" [0m
+ [4;35;1mCategory Load (0.5ms)[0m [0mSELECT * FROM "categories" [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 18 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 18) [0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 18 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 18) [0m
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 18 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.1ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.5ms)
+Rendered admin/helpers/_flash_message (0.1ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 74ms (View: 40, DB: 3) | 200 OK [http://localhost/admin/photos/edit/18]
+
+
+Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-09 06:08:19) [GET]
+ Parameters: {"action"=>"index", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.6ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/admin
+Rendering admin/resources/index
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.5ms)
+ [4;35;1mPhoto Load (1.4ms)[0m [0mSELECT "photos".* FROM "photos" ORDER BY photos.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.1ms)
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 1 ) [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 2 ) [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 3 ) [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 4 ) [0m
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 5 ) [0m
+ [4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 6 ) [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 7 ) [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 8 ) [0m
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 10 ) [0m
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 11 ) [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 12 ) [0m
+ [4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 13 ) [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 14 ) [0m
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 15 ) [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 17 ) [0m
+Rendered admin/helpers/_pagination (0.5ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.4ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 88ms (View: 58, DB: 7) | 200 OK [http://localhost/admin/photos]
+
+
+Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-09 06:08:22) [GET]
+ Parameters: {"action"=>"index", "sort_order"=>"desc", "page"=>"2", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.6ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/admin
+Rendering admin/resources/index
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.5ms)
+Rendered admin/helpers/_remove_filter_link (0.2ms)
+ [4;35;1mPhoto Load (0.8ms)[0m [0mSELECT "photos".* FROM "photos" ORDER BY photos.id ASC LIMIT 15 OFFSET 15[0m
+Rendered admin/helpers/_table_header (0.1ms)
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 18 ) [0m
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 19 ) [0m
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 20 ) [0m
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 21 ) [0m
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 22 ) [0m
+ [4;35;1mCategory Load (0.1ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 23 ) [0m
+ [4;36;1mCategory Load (0.1ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 24 ) [0m
+Rendered admin/helpers/_pagination (0.5ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.6ms)
+Rendered admin/shared/_footer (0.5ms)
+Completed in 134ms (View: 45, DB: 3) | 200 OK [http://localhost/admin/photos?page=2&sort_order=desc]
+
+
+Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-09 06:08:24) [GET]
+ Parameters: {"action"=>"edit", "id"=>"19", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.6ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mPhoto Load (0.3ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 19) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.5ms)
+Rendered admin/helpers/_preview (0.2ms)
+Rendered admin/templates/_file (4.7ms)
+Rendered admin/templates/_string (0.8ms)
+Rendered admin/templates/_string (0.7ms)
+Rendered admin/templates/_text (0.5ms)
+Rendered admin/templates/_string (1.0ms)
+Rendered admin/resources/_form (69.8ms)
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "categories" [0m
+ [4;36;1mCategory Load (0.5ms)[0m [0;1mSELECT * FROM "categories" [0m
+ [4;35;1mCategory Load (0.1ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 19 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 19) [0m
+ [4;35;1mSQL (0.3ms)[0m [0mSELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 19 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 19) [0m
+ [4;35;1mCategory Load (0.1ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 19 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.4ms)
+Rendered admin/shared/_footer (0.5ms)
+Completed in 117ms (View: 93, DB: 2) | 200 OK [http://localhost/admin/photos/edit/19]
+
+
+Processing Admin::PhotosController#relate (for 127.0.0.1 at 2010-10-09 06:08:30) [POST]
+ Parameters: {"commit"=>"Add", "related"=>{"model"=>"Category", "relation"=>"categories", "id"=>"6"}, "action"=>"relate", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "id"=>"19", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.6ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mPhoto Load (0.3ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 19) [0m
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = 6) [0m
+ [4;35;1mSQL (0.6ms)[0m [0mINSERT INTO "categories_photos" ("category_id", "photo_id") VALUES (6, 19)[0m
+Redirected to http://localhost:3000/admin/photos/edit/19
+Completed in 31ms (DB: 2) | 302 Found [http://localhost/admin/photos/relate/19]
+
+
+Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-09 06:08:30) [GET]
+ Parameters: {"action"=>"edit", "id"=>"19", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.8ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mPhoto Load (0.3ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 19) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.9ms)
+Rendered admin/helpers/_preview (0.2ms)
+Rendered admin/templates/_file (76.2ms)
+Rendered admin/templates/_string (0.7ms)
+Rendered admin/templates/_string (0.7ms)
+Rendered admin/templates/_text (0.5ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/resources/_form (82.6ms)
+ [4;36;1mSQL (0.3ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" [0m
+ [4;35;1mCategory Load (0.6ms)[0m [0mSELECT * FROM "categories" [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 19 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 19) [0m
+ [4;36;1mSQL (0.3ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 19 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 19) [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 19 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.1ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.4ms)
+Rendered admin/helpers/_flash_message (0.1ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 143ms (View: 111, DB: 3) | 200 OK [http://localhost/admin/photos/edit/19]
+
+
+Processing Admin::PhotosController#relate (for 127.0.0.1 at 2010-10-09 06:08:35) [POST]
+ Parameters: {"commit"=>"Add", "related"=>{"model"=>"Category", "relation"=>"categories", "id"=>"4"}, "action"=>"relate", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "id"=>"19", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.5ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mPhoto Load (0.3ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 19) [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = 4) [0m
+ [4;36;1mSQL (0.3ms)[0m [0;1mINSERT INTO "categories_photos" ("category_id", "photo_id") VALUES (4, 19)[0m
+Redirected to http://localhost:3000/admin/photos/edit/19
+Completed in 31ms (DB: 1) | 302 Found [http://localhost/admin/photos/relate/19]
+
+
+Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-09 06:08:35) [GET]
+ Parameters: {"action"=>"edit", "id"=>"19", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.7ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mPhoto Load (0.3ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 19) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.5ms)
+Rendered admin/helpers/_preview (0.2ms)
+Rendered admin/templates/_file (4.6ms)
+Rendered admin/templates/_string (0.7ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_text (0.5ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/resources/_form (10.6ms)
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "categories" [0m
+ [4;36;1mCategory Load (0.5ms)[0m [0;1mSELECT * FROM "categories" [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 19 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 19) [0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 19 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 19) [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 19 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.1ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.8ms)
+Rendered admin/helpers/_flash_message (0.1ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 129ms (View: 39, DB: 3) | 200 OK [http://localhost/admin/photos/edit/19]
+
+
+Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-09 06:08:42) [GET]
+ Parameters: {"action"=>"index", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.6ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/admin
+Rendering admin/resources/index
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.6ms)
+ [4;36;1mPhoto Load (1.5ms)[0m [0;1mSELECT "photos".* FROM "photos" ORDER BY photos.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.1ms)
+ [4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 1 ) [0m
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 2 ) [0m
+ [4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 3 ) [0m
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 4 ) [0m
+ [4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 5 ) [0m
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 6 ) [0m
+ [4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 7 ) [0m
+ [4;36;1mCategory Load (0.6ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 8 ) [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 10 ) [0m
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 11 ) [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 12 ) [0m
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 13 ) [0m
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 14 ) [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 15 ) [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 17 ) [0m
+Rendered admin/helpers/_pagination (0.5ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.4ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 150ms (View: 119, DB: 8) | 200 OK [http://localhost/admin/photos]
+
+
+Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-09 06:08:43) [GET]
+ Parameters: {"action"=>"index", "sort_order"=>"desc", "page"=>"2", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.6ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mSQL (0.3ms)[0m [0mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/admin
+Rendering admin/resources/index
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.6ms)
+Rendered admin/helpers/_remove_filter_link (0.2ms)
+ [4;36;1mPhoto Load (0.8ms)[0m [0;1mSELECT "photos".* FROM "photos" ORDER BY photos.id ASC LIMIT 15 OFFSET 15[0m
+Rendered admin/helpers/_table_header (0.1ms)
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 18 ) [0m
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 19 ) [0m
+ [4;35;1mCategory Load (0.1ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 20 ) [0m
+ [4;36;1mCategory Load (0.1ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 21 ) [0m
+ [4;35;1mCategory Load (0.1ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 22 ) [0m
+ [4;36;1mCategory Load (0.1ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 23 ) [0m
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 24 ) [0m
+Rendered admin/helpers/_pagination (0.7ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.5ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 65ms (View: 40, DB: 3) | 200 OK [http://localhost/admin/photos?page=2&sort_order=desc]
+
+
+Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-09 06:08:45) [GET]
+ Parameters: {"action"=>"edit", "id"=>"20", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.6ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mPhoto Load (0.3ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 20) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.5ms)
+Rendered admin/helpers/_preview (0.2ms)
+Rendered admin/templates/_file (4.8ms)
+Rendered admin/templates/_string (0.7ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_text (0.5ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/resources/_form (10.8ms)
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" [0m
+ [4;35;1mCategory Load (0.6ms)[0m [0mSELECT * FROM "categories" [0m
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 20 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 20) [0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 20 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 20) [0m
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 20 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.4ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 57ms (View: 33, DB: 2) | 200 OK [http://localhost/admin/photos/edit/20]
+
+
+Processing Admin::PhotosController#relate (for 127.0.0.1 at 2010-10-09 06:08:48) [POST]
+ Parameters: {"commit"=>"Add", "related"=>{"model"=>"Category", "relation"=>"categories", "id"=>"4"}, "action"=>"relate", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "id"=>"20", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.6ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mPhoto Load (0.3ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 20) [0m
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = 4) [0m
+ [4;36;1mSQL (0.3ms)[0m [0;1mINSERT INTO "categories_photos" ("category_id", "photo_id") VALUES (4, 20)[0m
+Redirected to http://localhost:3000/admin/photos/edit/20
+Completed in 90ms (DB: 1) | 302 Found [http://localhost/admin/photos/relate/20]
+
+
+Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-09 06:08:48) [GET]
+ Parameters: {"action"=>"edit", "id"=>"20", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (1.3ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mPhoto Load (0.4ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 20) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.6ms)
+Rendered admin/helpers/_preview (0.2ms)
+Rendered admin/templates/_file (5.0ms)
+Rendered admin/templates/_string (0.7ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_text (0.7ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/resources/_form (11.4ms)
+ [4;35;1mSQL (0.3ms)[0m [0mSELECT count(*) AS count_all FROM "categories" [0m
+ [4;36;1mCategory Load (0.5ms)[0m [0;1mSELECT * FROM "categories" [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 20 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 20) [0m
+ [4;35;1mSQL (0.3ms)[0m [0mSELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 20 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 20) [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 20 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.1ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.4ms)
+Rendered admin/helpers/_flash_message (0.1ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 72ms (View: 39, DB: 3) | 200 OK [http://localhost/admin/photos/edit/20]
+
+
+Processing Admin::PhotosController#relate (for 127.0.0.1 at 2010-10-09 06:08:51) [POST]
+ Parameters: {"commit"=>"Add", "related"=>{"model"=>"Category", "relation"=>"categories", "id"=>"1"}, "action"=>"relate", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "id"=>"20", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.6ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mPhoto Load (0.5ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 20) [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = 1) [0m
+ [4;35;1mSQL (0.3ms)[0m [0mINSERT INTO "categories_photos" ("category_id", "photo_id") VALUES (1, 20)[0m
+Redirected to http://localhost:3000/admin/photos/edit/20
+Completed in 34ms (DB: 2) | 302 Found [http://localhost/admin/photos/relate/20]
+
+
+Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-09 06:08:51) [GET]
+ Parameters: {"action"=>"edit", "id"=>"20", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.8ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mPhoto Load (0.3ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 20) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.5ms)
+Rendered admin/helpers/_preview (0.2ms)
+Rendered admin/templates/_file (4.9ms)
+Rendered admin/templates/_string (0.8ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_text (0.5ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/resources/_form (10.9ms)
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" [0m
+ [4;35;1mCategory Load (0.5ms)[0m [0mSELECT * FROM "categories" [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 20 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 20) [0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 20 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 20) [0m
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 20 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.1ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.4ms)
+Rendered admin/helpers/_flash_message (0.1ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 73ms (View: 41, DB: 3) | 200 OK [http://localhost/admin/photos/edit/20]
+
+
+Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-09 06:08:53) [GET]
+ Parameters: {"action"=>"index", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.5ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/admin
+Rendering admin/resources/index
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.5ms)
+ [4;35;1mPhoto Load (1.6ms)[0m [0mSELECT "photos".* FROM "photos" ORDER BY photos.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.1ms)
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 1 ) [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 2 ) [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 3 ) [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 4 ) [0m
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 5 ) [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 6 ) [0m
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 7 ) [0m
+ [4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 8 ) [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 10 ) [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 11 ) [0m
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 12 ) [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 13 ) [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 14 ) [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 15 ) [0m
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 17 ) [0m
+Rendered admin/helpers/_pagination (0.7ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.4ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 86ms (View: 57, DB: 7) | 200 OK [http://localhost/admin/photos]
+
+
+Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-09 06:08:54) [GET]
+ Parameters: {"action"=>"index", "sort_order"=>"desc", "page"=>"2", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.5ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mSQL (0.3ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/admin
+Rendering admin/resources/index
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.6ms)
+Rendered admin/helpers/_remove_filter_link (0.2ms)
+ [4;35;1mPhoto Load (0.8ms)[0m [0mSELECT "photos".* FROM "photos" ORDER BY photos.id ASC LIMIT 15 OFFSET 15[0m
+Rendered admin/helpers/_table_header (0.1ms)
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 18 ) [0m
+ [4;35;1mCategory Load (0.5ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 19 ) [0m
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 20 ) [0m
+ [4;35;1mCategory Load (0.1ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 21 ) [0m
+ [4;36;1mCategory Load (0.1ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 22 ) [0m
+ [4;35;1mCategory Load (0.1ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 23 ) [0m
+ [4;36;1mCategory Load (0.1ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 24 ) [0m
+Rendered admin/helpers/_pagination (0.5ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.4ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 65ms (View: 40, DB: 3) | 200 OK [http://localhost/admin/photos?page=2&sort_order=desc]
+
+
+Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-09 06:08:56) [GET]
+ Parameters: {"action"=>"edit", "id"=>"21", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.5ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mPhoto Load (0.3ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 21) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.7ms)
+Rendered admin/helpers/_preview (0.2ms)
+Rendered admin/templates/_file (62.1ms)
+Rendered admin/templates/_string (0.7ms)
+Rendered admin/templates/_string (0.7ms)
+Rendered admin/templates/_text (0.5ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/resources/_form (68.4ms)
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "categories" [0m
+ [4;36;1mCategory Load (0.5ms)[0m [0;1mSELECT * FROM "categories" [0m
+ [4;35;1mCategory Load (0.1ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 21 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 21) [0m
+ [4;35;1mSQL (0.3ms)[0m [0mSELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 21 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 21) [0m
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 21 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.4ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 115ms (View: 91, DB: 2) | 200 OK [http://localhost/admin/photos/edit/21]
+
+
+Processing Admin::PhotosController#relate (for 127.0.0.1 at 2010-10-09 06:08:58) [POST]
+ Parameters: {"commit"=>"Add", "related"=>{"model"=>"Category", "relation"=>"categories", "id"=>"1"}, "action"=>"relate", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "id"=>"21", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.5ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mPhoto Load (0.3ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 21) [0m
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = 1) [0m
+ [4;35;1mSQL (0.2ms)[0m [0mINSERT INTO "categories_photos" ("category_id", "photo_id") VALUES (1, 21)[0m
+Redirected to http://localhost:3000/admin/photos/edit/21
+Completed in 31ms (DB: 1) | 302 Found [http://localhost/admin/photos/relate/21]
+
+
+Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-09 06:08:58) [GET]
+ Parameters: {"action"=>"edit", "id"=>"21", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (1.0ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mPhoto Load (0.3ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 21) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.6ms)
+Rendered admin/helpers/_preview (0.2ms)
+Rendered admin/templates/_file (5.1ms)
+Rendered admin/templates/_string (0.8ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_text (0.5ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/resources/_form (11.6ms)
+ [4;36;1mSQL (0.3ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" [0m
+ [4;35;1mCategory Load (0.5ms)[0m [0mSELECT * FROM "categories" [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 21 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 21) [0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 21 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 21) [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 21 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.1ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.4ms)
+Rendered admin/helpers/_flash_message (0.1ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 133ms (View: 38, DB: 3) | 200 OK [http://localhost/admin/photos/edit/21]
+
+
+Processing Admin::PhotosController#relate (for 127.0.0.1 at 2010-10-09 06:09:01) [POST]
+ Parameters: {"commit"=>"Add", "related"=>{"model"=>"Category", "relation"=>"categories", "id"=>"4"}, "action"=>"relate", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "id"=>"21", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.5ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mPhoto Load (0.4ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 21) [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = 4) [0m
+ [4;36;1mSQL (0.5ms)[0m [0;1mINSERT INTO "categories_photos" ("category_id", "photo_id") VALUES (4, 21)[0m
+Redirected to http://localhost:3000/admin/photos/edit/21
+Completed in 39ms (DB: 2) | 302 Found [http://localhost/admin/photos/relate/21]
+
+
+Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-09 06:09:01) [GET]
+ Parameters: {"action"=>"edit", "id"=>"21", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.6ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mPhoto Load (0.3ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 21) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.7ms)
+Rendered admin/helpers/_preview (0.2ms)
+Rendered admin/templates/_file (5.0ms)
+Rendered admin/templates/_string (0.7ms)
+Rendered admin/templates/_string (0.8ms)
+Rendered admin/templates/_text (0.5ms)
+Rendered admin/templates/_string (0.7ms)
+Rendered admin/resources/_form (11.3ms)
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "categories" [0m
+ [4;36;1mCategory Load (0.5ms)[0m [0;1mSELECT * FROM "categories" [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 21 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 21) [0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 21 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 21) [0m
+ [4;35;1mCategory Load (0.5ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 21 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.1ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.4ms)
+Rendered admin/helpers/_flash_message (0.1ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 130ms (View: 39, DB: 3) | 200 OK [http://localhost/admin/photos/edit/21]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 06:09:03) [GET]
+ Parameters: {"category_id"=>"5"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '5') LIMIT 1[0m
+ [4;35;1mSQL (0.3ms)[0m [0mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;36;1mPhoto Load (0.4ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 ) [0m
+Completed in 40ms (View: 8, DB: 1) | 200 OK [http://localhost/categories/5/photos]
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 06:09:05) [GET]
+ [4;35;1mCategory Load (0.9ms)[0m [0mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering categories/index
+Completed in 109ms (View: 104, DB: 1) | 200 OK [http://localhost/categories]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 06:09:06) [GET]
+ Parameters: {"category_id"=>"4"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '4') LIMIT 1[0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 4 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;36;1mPhoto Load (0.9ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 4 ) [0m
+Completed in 24ms (View: 11, DB: 1) | 200 OK [http://localhost/categories/4/photos]
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 06:09:09) [GET]
+ [4;35;1mCategory Load (0.8ms)[0m [0mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering categories/index
+Completed in 10ms (View: 5, DB: 1) | 200 OK [http://localhost/categories]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 06:09:11) [GET]
+ Parameters: {"category_id"=>"6"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '6') LIMIT 1[0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 6 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;36;1mPhoto Load (0.5ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 6 ) [0m
+Completed in 23ms (View: 9, DB: 1) | 200 OK [http://localhost/categories/6/photos]
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 06:09:12) [GET]
+ [4;35;1mCategory Load (0.9ms)[0m [0mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering categories/index
+Completed in 12ms (View: 5, DB: 1) | 200 OK [http://localhost/categories]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 06:09:13) [GET]
+ Parameters: {"category_id"=>"3"}
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '3') LIMIT 1[0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 3 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;36;1mPhoto Load (0.5ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 3 ) [0m
+Completed in 21ms (View: 7, DB: 1) | 200 OK [http://localhost/categories/3/photos]
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 06:09:15) [GET]
+ [4;35;1mCategory Load (0.8ms)[0m [0mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering categories/index
+Completed in 10ms (View: 5, DB: 1) | 200 OK [http://localhost/categories]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 06:09:15) [GET]
+ Parameters: {"category_id"=>"2"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '2') LIMIT 1[0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 2 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;36;1mPhoto Load (0.7ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 2 ) [0m
+Completed in 23ms (View: 10, DB: 1) | 200 OK [http://localhost/categories/2/photos]
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 06:09:20) [GET]
+ [4;35;1mCategory Load (0.9ms)[0m [0mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering categories/index
+Completed in 12ms (View: 5, DB: 1) | 200 OK [http://localhost/categories]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 06:09:21) [GET]
+ Parameters: {"category_id"=>"5"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '5') LIMIT 1[0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;36;1mPhoto Load (0.3ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 ) [0m
+Completed in 19ms (View: 7, DB: 1) | 200 OK [http://localhost/categories/5/photos]
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 06:09:23) [GET]
+ [4;35;1mCategory Load (1.0ms)[0m [0mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering categories/index
+Completed in 12ms (View: 5, DB: 1) | 200 OK [http://localhost/categories]
+
+
+Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-09 06:09:26) [GET]
+ Parameters: {"action"=>"index", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (1.0ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/admin
+Rendering admin/resources/index
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.5ms)
+ [4;36;1mPhoto Load (1.6ms)[0m [0;1mSELECT "photos".* FROM "photos" ORDER BY photos.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.1ms)
+ [4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 1 ) [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 2 ) [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 3 ) [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 4 ) [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 5 ) [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 6 ) [0m
+ [4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 7 ) [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 8 ) [0m
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 10 ) [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 11 ) [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 12 ) [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 13 ) [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 14 ) [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 15 ) [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 17 ) [0m
+Rendered admin/helpers/_pagination (0.5ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.4ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 162ms (View: 60, DB: 7) | 200 OK [http://localhost/admin/photos]
+
+
+Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-09 06:09:28) [GET]
+ Parameters: {"action"=>"index", "sort_order"=>"desc", "page"=>"2", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.6ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/admin
+Rendering admin/resources/index
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.6ms)
+Rendered admin/helpers/_remove_filter_link (0.2ms)
+ [4;36;1mPhoto Load (0.8ms)[0m [0;1mSELECT "photos".* FROM "photos" ORDER BY photos.id ASC LIMIT 15 OFFSET 15[0m
+Rendered admin/helpers/_table_header (0.1ms)
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 18 ) [0m
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 19 ) [0m
+ [4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 20 ) [0m
+ [4;36;1mCategory Load (0.5ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 21 ) [0m
+ [4;35;1mCategory Load (0.1ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 22 ) [0m
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 23 ) [0m
+ [4;35;1mCategory Load (0.1ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 24 ) [0m
+Rendered admin/helpers/_pagination (0.5ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.4ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 126ms (View: 41, DB: 4) | 200 OK [http://localhost/admin/photos?page=2&sort_order=desc]
+
+
+Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-09 06:09:30) [GET]
+ Parameters: {"action"=>"edit", "id"=>"22", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.6ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mPhoto Load (0.3ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 22) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.6ms)
+Rendered admin/helpers/_preview (0.2ms)
+Rendered admin/templates/_file (5.0ms)
+Rendered admin/templates/_string (0.7ms)
+Rendered admin/templates/_string (0.7ms)
+Rendered admin/templates/_text (0.5ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/resources/_form (11.0ms)
+ [4;36;1mSQL (0.3ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" [0m
+ [4;35;1mCategory Load (0.6ms)[0m [0mSELECT * FROM "categories" [0m
+ [4;36;1mCategory Load (0.1ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 22 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 22) [0m
+ [4;36;1mSQL (0.3ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 22 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 22) [0m
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 22 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.4ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 117ms (View: 93, DB: 2) | 200 OK [http://localhost/admin/photos/edit/22]
+
+
+Processing Admin::PhotosController#relate (for 127.0.0.1 at 2010-10-09 06:09:34) [POST]
+ Parameters: {"commit"=>"Add", "related"=>{"model"=>"Category", "relation"=>"categories", "id"=>"3"}, "action"=>"relate", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "id"=>"22", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.6ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mPhoto Load (0.3ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 22) [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = 3) [0m
+ [4;36;1mSQL (0.3ms)[0m [0;1mINSERT INTO "categories_photos" ("category_id", "photo_id") VALUES (3, 22)[0m
+Redirected to http://localhost:3000/admin/photos/edit/22
+Completed in 32ms (DB: 1) | 302 Found [http://localhost/admin/photos/relate/22]
+
+
+Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-09 06:09:34) [GET]
+ Parameters: {"action"=>"edit", "id"=>"22", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.6ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mPhoto Load (0.4ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 22) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.6ms)
+Rendered admin/helpers/_preview (0.2ms)
+Rendered admin/templates/_file (6.5ms)
+Rendered admin/templates/_string (0.7ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_text (0.5ms)
+Rendered admin/templates/_string (62.5ms)
+Rendered admin/resources/_form (74.5ms)
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "categories" [0m
+ [4;36;1mCategory Load (0.5ms)[0m [0;1mSELECT * FROM "categories" [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 22 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 22) [0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 22 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 22) [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 22 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.1ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.4ms)
+Rendered admin/helpers/_flash_message (0.1ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 134ms (View: 103, DB: 2) | 200 OK [http://localhost/admin/photos/edit/22]
+
+
+Processing Admin::PhotosController#relate (for 127.0.0.1 at 2010-10-09 06:09:38) [POST]
+ Parameters: {"commit"=>"Add", "related"=>{"model"=>"Category", "relation"=>"categories", "id"=>"4"}, "action"=>"relate", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "id"=>"22", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.6ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mPhoto Load (0.3ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 22) [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = 4) [0m
+ [4;35;1mSQL (0.3ms)[0m [0mINSERT INTO "categories_photos" ("category_id", "photo_id") VALUES (4, 22)[0m
+Redirected to http://localhost:3000/admin/photos/edit/22
+Completed in 32ms (DB: 1) | 302 Found [http://localhost/admin/photos/relate/22]
+
+
+Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-09 06:09:38) [GET]
+ Parameters: {"action"=>"edit", "id"=>"22", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (1.3ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mPhoto Load (0.4ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 22) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.5ms)
+Rendered admin/helpers/_preview (0.2ms)
+Rendered admin/templates/_file (4.7ms)
+Rendered admin/templates/_string (0.7ms)
+Rendered admin/templates/_string (0.7ms)
+Rendered admin/templates/_text (0.5ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/resources/_form (11.0ms)
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" [0m
+ [4;35;1mCategory Load (0.6ms)[0m [0mSELECT * FROM "categories" [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 22 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 22) [0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 22 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 22) [0m
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 22 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.1ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.4ms)
+Rendered admin/helpers/_flash_message (0.1ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 127ms (View: 98, DB: 3) | 200 OK [http://localhost/admin/photos/edit/22]
+
+
+Processing Admin::PhotosController#relate (for 127.0.0.1 at 2010-10-09 06:09:43) [POST]
+ Parameters: {"commit"=>"Add", "related"=>{"model"=>"Category", "relation"=>"categories", "id"=>"1"}, "action"=>"relate", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "id"=>"22", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.6ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mPhoto Load (0.3ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 22) [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = 1) [0m
+ [4;36;1mSQL (0.3ms)[0m [0;1mINSERT INTO "categories_photos" ("category_id", "photo_id") VALUES (1, 22)[0m
+Redirected to http://localhost:3000/admin/photos/edit/22
+Completed in 31ms (DB: 1) | 302 Found [http://localhost/admin/photos/relate/22]
+
+
+Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-09 06:09:43) [GET]
+ Parameters: {"action"=>"edit", "id"=>"22", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (1.3ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mPhoto Load (0.3ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 22) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.6ms)
+Rendered admin/helpers/_preview (0.2ms)
+Rendered admin/templates/_file (5.0ms)
+Rendered admin/templates/_string (0.7ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_text (0.5ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/resources/_form (11.1ms)
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "categories" [0m
+ [4;36;1mCategory Load (0.5ms)[0m [0;1mSELECT * FROM "categories" [0m
+ [4;35;1mCategory Load (0.5ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 22 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 22) [0m
+ [4;35;1mSQL (0.3ms)[0m [0mSELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 22 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 22) [0m
+ [4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 22 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.1ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.4ms)
+Rendered admin/helpers/_flash_message (0.1ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 139ms (View: 41, DB: 4) | 200 OK [http://localhost/admin/photos/edit/22]
+
+
+Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-09 06:09:44) [GET]
+ Parameters: {"action"=>"index", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.6ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/admin
+Rendering admin/resources/index
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.5ms)
+ [4;36;1mPhoto Load (1.4ms)[0m [0;1mSELECT "photos".* FROM "photos" ORDER BY photos.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.1ms)
+ [4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 1 ) [0m
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 2 ) [0m
+ [4;35;1mCategory Load (0.5ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 3 ) [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 4 ) [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 5 ) [0m
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 6 ) [0m
+ [4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 7 ) [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 8 ) [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 10 ) [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 11 ) [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 12 ) [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 13 ) [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 14 ) [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 15 ) [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 17 ) [0m
+Rendered admin/helpers/_pagination (0.5ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.4ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 149ms (View: 119, DB: 7) | 200 OK [http://localhost/admin/photos]
+
+
+Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-09 06:09:46) [GET]
+ Parameters: {"action"=>"index", "sort_order"=>"desc", "page"=>"2", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.6ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/admin
+Rendering admin/resources/index
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.5ms)
+Rendered admin/helpers/_remove_filter_link (0.2ms)
+ [4;36;1mPhoto Load (0.9ms)[0m [0;1mSELECT "photos".* FROM "photos" ORDER BY photos.id ASC LIMIT 15 OFFSET 15[0m
+Rendered admin/helpers/_table_header (0.2ms)
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 18 ) [0m
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 19 ) [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 20 ) [0m
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 21 ) [0m
+ [4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 22 ) [0m
+ [4;36;1mCategory Load (0.1ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 23 ) [0m
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 24 ) [0m
+Rendered admin/helpers/_pagination (61.5ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.4ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 129ms (View: 102, DB: 4) | 200 OK [http://localhost/admin/photos?page=2&sort_order=desc]
+
+
+Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-09 06:09:48) [GET]
+ Parameters: {"action"=>"edit", "id"=>"23", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.7ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mPhoto Load (0.3ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 23) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.5ms)
+Rendered admin/helpers/_preview (0.2ms)
+Rendered admin/templates/_file (4.7ms)
+Rendered admin/templates/_string (0.7ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_text (0.4ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/resources/_form (10.6ms)
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" [0m
+ [4;35;1mCategory Load (0.5ms)[0m [0mSELECT * FROM "categories" [0m
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 23 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 23) [0m
+ [4;36;1mSQL (0.3ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 23 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 23) [0m
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 23 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.4ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 59ms (View: 34, DB: 2) | 200 OK [http://localhost/admin/photos/edit/23]
+
+
+Processing Admin::PhotosController#relate (for 127.0.0.1 at 2010-10-09 06:09:50) [POST]
+ Parameters: {"commit"=>"Add", "related"=>{"model"=>"Category", "relation"=>"categories", "id"=>"1"}, "action"=>"relate", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "id"=>"23", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.6ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mPhoto Load (0.3ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 23) [0m
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = 1) [0m
+ [4;36;1mSQL (0.3ms)[0m [0;1mINSERT INTO "categories_photos" ("category_id", "photo_id") VALUES (1, 23)[0m
+Redirected to http://localhost:3000/admin/photos/edit/23
+Completed in 91ms (DB: 1) | 302 Found [http://localhost/admin/photos/relate/23]
+
+
+Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-09 06:09:51) [GET]
+ Parameters: {"action"=>"edit", "id"=>"23", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.6ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mPhoto Load (0.3ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 23) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.6ms)
+Rendered admin/helpers/_preview (0.2ms)
+Rendered admin/templates/_file (4.9ms)
+Rendered admin/templates/_string (0.7ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_text (0.5ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/resources/_form (11.3ms)
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "categories" [0m
+ [4;36;1mCategory Load (0.5ms)[0m [0;1mSELECT * FROM "categories" [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 23 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 23) [0m
+ [4;35;1mSQL (0.3ms)[0m [0mSELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 23 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 23) [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 23 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.1ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.7ms)
+Rendered admin/helpers/_flash_message (0.1ms)
+Rendered admin/shared/_footer (0.4ms)
+Completed in 71ms (View: 40, DB: 2) | 200 OK [http://localhost/admin/photos/edit/23]
+
+
+Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-09 06:09:52) [GET]
+ Parameters: {"action"=>"index", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.6ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/admin
+Rendering admin/resources/index
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.6ms)
+ [4;36;1mPhoto Load (1.5ms)[0m [0;1mSELECT "photos".* FROM "photos" ORDER BY photos.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.1ms)
+ [4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 1 ) [0m
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 2 ) [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 3 ) [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 4 ) [0m
+ [4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 5 ) [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 6 ) [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 7 ) [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 8 ) [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 10 ) [0m
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 11 ) [0m
+ [4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 12 ) [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 13 ) [0m
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 14 ) [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 15 ) [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 17 ) [0m
+Rendered admin/helpers/_pagination (0.5ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.5ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 92ms (View: 61, DB: 7) | 200 OK [http://localhost/admin/photos]
+
+
+Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-09 06:09:53) [GET]
+ Parameters: {"action"=>"index", "sort_order"=>"desc", "page"=>"2", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.6ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/admin
+Rendering admin/resources/index
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.6ms)
+Rendered admin/helpers/_remove_filter_link (0.2ms)
+ [4;36;1mPhoto Load (1.1ms)[0m [0;1mSELECT "photos".* FROM "photos" ORDER BY photos.id ASC LIMIT 15 OFFSET 15[0m
+Rendered admin/helpers/_table_header (0.1ms)
+ [4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 18 ) [0m
+ [4;36;1mCategory Load (0.5ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 19 ) [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 20 ) [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 21 ) [0m
+ [4;35;1mCategory Load (0.5ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 22 ) [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 23 ) [0m
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 24 ) [0m
+Rendered admin/helpers/_pagination (0.6ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.4ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 135ms (View: 45, DB: 4) | 200 OK [http://localhost/admin/photos?page=2&sort_order=desc]
+
+
+Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-09 06:09:55) [GET]
+ Parameters: {"action"=>"edit", "id"=>"24", "controller"=>"admin/photos"}
+ [4;36;1mTypusUser Load (0.5ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mPhoto Load (0.3ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 24) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.5ms)
+Rendered admin/helpers/_preview (0.2ms)
+Rendered admin/templates/_file (4.6ms)
+Rendered admin/templates/_string (0.7ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_text (0.8ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/resources/_form (70.6ms)
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" [0m
+ [4;35;1mCategory Load (0.5ms)[0m [0mSELECT * FROM "categories" [0m
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 24 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 24) [0m
+ [4;36;1mSQL (0.3ms)[0m [0;1mSELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 24 ) [0m
+ [4;35;1mCACHE (0.0ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 24) [0m
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 24 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.5ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 118ms (View: 94, DB: 2) | 200 OK [http://localhost/admin/photos/edit/24]
+
+
+Processing Admin::PhotosController#relate (for 127.0.0.1 at 2010-10-09 06:09:58) [POST]
+ Parameters: {"commit"=>"Add", "related"=>{"model"=>"Category", "relation"=>"categories", "id"=>"4"}, "action"=>"relate", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "id"=>"24", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.5ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mPhoto Load (0.3ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 24) [0m
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = 4) [0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mINSERT INTO "categories_photos" ("category_id", "photo_id") VALUES (4, 24)[0m
+Redirected to http://localhost:3000/admin/photos/edit/24
+Completed in 3662ms (DB: 1) | 302 Found [http://localhost/admin/photos/relate/24]
+
+
+Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-09 06:10:02) [GET]
+ Parameters: {"action"=>"edit", "id"=>"24", "controller"=>"admin/photos"}
+ [4;35;1mTypusUser Load (0.6ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mPhoto Load (0.3ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 24) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.5ms)
+Rendered admin/helpers/_preview (0.2ms)
+Rendered admin/templates/_file (66.6ms)
+Rendered admin/templates/_string (0.7ms)
+Rendered admin/templates/_string (0.7ms)
+Rendered admin/templates/_text (0.5ms)
+Rendered admin/templates/_string (0.7ms)
+Rendered admin/resources/_form (73.1ms)
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "categories" [0m
+ [4;36;1mCategory Load (0.5ms)[0m [0;1mSELECT * FROM "categories" [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 24 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 24) [0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 24 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 24) [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 24 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.1ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.4ms)
+Rendered admin/helpers/_flash_message (0.1ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 124ms (View: 99, DB: 2) | 200 OK [http://localhost/admin/photos/edit/24]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 06:10:04) [GET]
+ Parameters: {"category_id"=>"4"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '4') LIMIT 1[0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 4 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;36;1mPhoto Load (1.1ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 4 ) [0m
+Completed in 27ms (View: 13, DB: 2) | 200 OK [http://localhost/categories/4/photos]
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 06:10:33) [GET]
+ [4;35;1mCategory Load (0.8ms)[0m [0mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering categories/index
+Completed in 11ms (View: 5, DB: 1) | 200 OK [http://localhost/categories]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 06:10:35) [GET]
+ Parameters: {"category_id"=>"2"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '2') LIMIT 1[0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 2 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;36;1mPhoto Load (0.7ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 2 ) [0m
+Completed in 23ms (View: 9, DB: 1) | 200 OK [http://localhost/categories/2/photos]
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 06:10:37) [GET]
+ [4;35;1mCategory Load (0.8ms)[0m [0mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering categories/index
+Completed in 11ms (View: 5, DB: 1) | 200 OK [http://localhost/categories]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 06:10:38) [GET]
+ Parameters: {"category_id"=>"5"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '5') LIMIT 1[0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;36;1mPhoto Load (0.3ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 ) [0m
+Completed in 74ms (View: 7, DB: 1) | 200 OK [http://localhost/categories/5/photos]
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 06:10:39) [GET]
+ [4;35;1mCategory Load (1.3ms)[0m [0mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering categories/index
+Completed in 14ms (View: 7, DB: 1) | 200 OK [http://localhost/categories]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 06:10:52) [GET]
+ Parameters: {"category_id"=>"6"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '6') LIMIT 1[0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 6 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;36;1mPhoto Load (0.5ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 6 ) [0m
+Completed in 22ms (View: 9, DB: 1) | 200 OK [http://localhost/categories/6/photos]
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 06:10:57) [GET]
+ [4;35;1mCategory Load (0.8ms)[0m [0mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering categories/index
+Completed in 10ms (View: 5, DB: 1) | 200 OK [http://localhost/categories]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 06:10:59) [GET]
+ Parameters: {"category_id"=>"3"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '3') LIMIT 1[0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 3 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;36;1mPhoto Load (0.4ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 3 ) [0m
+Completed in 20ms (View: 7, DB: 1) | 200 OK [http://localhost/categories/3/photos]
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 06:11:06) [GET]
+ [4;35;1mCategory Load (0.9ms)[0m [0mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering categories/index
+Completed in 10ms (View: 5, DB: 1) | 200 OK [http://localhost/categories]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 06:11:08) [GET]
+ Parameters: {"category_id"=>"4"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '4') LIMIT 1[0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 4 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;36;1mPhoto Load (1.2ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 4 ) [0m
+Completed in 27ms (View: 13, DB: 2) | 200 OK [http://localhost/categories/4/photos]
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 06:11:10) [GET]
+ [4;35;1mCategory Load (1.0ms)[0m [0mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering categories/index
+Completed in 10ms (View: 5, DB: 1) | 200 OK [http://localhost/categories]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 06:11:16) [GET]
+ Parameters: {"category_id"=>"4"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '4') LIMIT 1[0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 4 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;36;1mPhoto Load (1.0ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 4 ) [0m
+Completed in 27ms (View: 13, DB: 1) | 200 OK [http://localhost/categories/4/photos]
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 06:34:21) [GET]
+ [4;35;1mCategory Load (0.8ms)[0m [0mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering categories/index
+Completed in 92ms (View: 66, DB: 1) | 200 OK [http://localhost/categories]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 06:48:38) [GET]
+ Parameters: {"category_id"=>"4"}
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '4') LIMIT 1[0m
+ [4;35;1mSQL (22.4ms)[0m [0mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 4 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;36;1mPhoto Load (1.2ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 4 ) [0m
+Completed in 192ms (View: 105, DB: 24) | 200 OK [http://localhost/categories/4/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 06:48:41) [GET]
+ Parameters: {"category_id"=>"2"}
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '2') LIMIT 1[0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 2 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;35;1mPhoto Load (0.6ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 2 ) [0m
+Completed in 22ms (View: 9, DB: 1) | 200 OK [http://localhost/categories/2/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 06:48:44) [GET]
+ Parameters: {"category_id"=>"5"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '5') LIMIT 1[0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;36;1mPhoto Load (0.3ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 ) [0m
+Completed in 21ms (View: 7, DB: 1) | 200 OK [http://localhost/categories/5/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 06:48:45) [GET]
+ Parameters: {"category_id"=>"6"}
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '6') LIMIT 1[0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 6 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;35;1mPhoto Load (0.5ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 6 ) [0m
+Completed in 78ms (View: 65, DB: 1) | 200 OK [http://localhost/categories/6/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 06:48:47) [GET]
+ Parameters: {"category_id"=>"3"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '3') LIMIT 1[0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 3 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;36;1mPhoto Load (0.4ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 3 ) [0m
+Completed in 20ms (View: 8, DB: 1) | 200 OK [http://localhost/categories/3/photos]
+
+
+Processing TypusController#dashboard (for 127.0.0.1 at 2010-10-09 06:49:53) [GET]
+ Parameters: {"action"=>"dashboard", "controller"=>"typus"}
+ [4;35;1mTypusUser Load (0.6ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+Rendering template within layouts/admin
+Rendering typus/dashboard
+Rendered admin/dashboard/_sidebar (0.2ms)
+Rendered admin/helpers/_applications (2.7ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.4ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 102ms (View: 73, DB: 1) | 200 OK [http://localhost/admin]
+
+
+Processing Admin::CategoriesController#index (for 127.0.0.1 at 2010-10-09 06:49:55) [GET]
+ Parameters: {"action"=>"index", "controller"=>"admin/categories"}
+ [4;36;1mTypusUser Load (0.7ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mSQL (0.3ms)[0m [0mSELECT count(*) AS count_all FROM "categories" [0m
+Rendering template within layouts/admin
+Rendering admin/resources/index
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.7ms)
+ [4;36;1mCategory Load (0.8ms)[0m [0;1mSELECT "categories".* FROM "categories" ORDER BY categories.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.1ms)
+Rendered admin/helpers/_header (0.2ms)
+Rendered admin/helpers/_login_info (0.7ms)
+Rendered admin/shared/_footer (0.3ms)
+Completed in 128ms (View: 36, DB: 2) | 200 OK [http://localhost/admin/categories]
+
+
+Processing Admin::CategoriesController#edit (for 127.0.0.1 at 2010-10-09 06:49:58) [GET]
+ Parameters: {"action"=>"edit", "id"=>"6", "controller"=>"admin/categories"}
+ [4;35;1mTypusUser Load (0.6ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = 6) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.6ms)
+Rendered admin/templates/_string (1.7ms)
+Rendered admin/templates/_text (0.5ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/templates/_string (0.7ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/resources/_form (7.7ms)
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "photos" [0m
+ [4;36;1mPhoto Load (1.8ms)[0m [0;1mSELECT * FROM "photos" [0m
+ [4;35;1mPhoto Load (0.5ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 6 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = 6) [0m
+ [4;35;1mSQL (0.3ms)[0m [0mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 6 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = 6) [0m
+ [4;35;1mPhoto Load (0.6ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 6 ) ORDER BY photos.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.1ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.4ms)
+Rendered admin/shared/_footer (0.2ms)
+Completed in 124ms (View: 100, DB: 4) | 200 OK [http://localhost/admin/categories/edit/6]
+
+
+Processing Admin::CategoriesController#update (for 127.0.0.1 at 2010-10-09 06:50:01) [PUT]
+ Parameters: {"category"=>{"name"=>"Abstract", "sort"=>"", "base_colour"=>"#24aabe", "photo_id"=>"", "description"=>""}, "commit"=>"Save Category", "action"=>"update", "_method"=>"put", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "id"=>"6", "controller"=>"admin/categories"}
+ [4;36;1mTypusUser Load (0.6ms)[0m [0;1mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = 6) [0m
+ [4;36;1mCategory Update (0.3ms)[0m [0;1mUPDATE "categories" SET "updated_at" = '2010-10-09 10:50:01', "base_colour" = '#24aabe' WHERE "id" = 6[0m
+Redirected to http://localhost:3000/admin/categories/edit/6
+Completed in 26ms (DB: 1) | 302 Found [http://localhost/admin/categories/update/6]
+
+
+Processing Admin::CategoriesController#edit (for 127.0.0.1 at 2010-10-09 06:50:01) [GET]
+ Parameters: {"action"=>"edit", "id"=>"6", "controller"=>"admin/categories"}
+ [4;35;1mTypusUser Load (0.7ms)[0m [0mSELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1) [0m
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = 6) [0m
+Rendering template within layouts/admin
+Rendering admin/resources/edit
+Rendered admin/helpers/_list (0.1ms)
+Rendered admin/helpers/_search (0.5ms)
+Rendered admin/templates/_string (2.0ms)
+Rendered admin/templates/_text (0.6ms)
+Rendered admin/templates/_string (0.7ms)
+Rendered admin/templates/_string (0.7ms)
+Rendered admin/templates/_string (0.6ms)
+Rendered admin/resources/_form (9.0ms)
+ [4;35;1mSQL (0.3ms)[0m [0mSELECT count(*) AS count_all FROM "photos" [0m
+ [4;36;1mPhoto Load (2.9ms)[0m [0;1mSELECT * FROM "photos" [0m
+ [4;35;1mPhoto Load (0.5ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 6 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = 6) [0m
+ [4;35;1mSQL (0.3ms)[0m [0mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 6 ) [0m
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = 6) [0m
+ [4;35;1mPhoto Load (0.9ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 6 ) ORDER BY photos.id ASC LIMIT 15 OFFSET 0[0m
+Rendered admin/helpers/_table_header (0.1ms)
+Rendered admin/helpers/_header (0.1ms)
+Rendered admin/helpers/_login_info (0.4ms)
+Rendered admin/helpers/_flash_message (0.1ms)
+Rendered admin/shared/_footer (0.3ms)
+Completed in 143ms (View: 116, DB: 6) | 200 OK [http://localhost/admin/categories/edit/6]
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 06:50:02) [GET]
+ [4;36;1mCategory Load (0.8ms)[0m [0;1mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering categories/index
+Completed in 47ms (View: 41, DB: 1) | 200 OK [http://localhost/categories]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 06:50:31) [GET]
+ Parameters: {"category_id"=>"4"}
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '4') LIMIT 1[0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 4 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;35;1mPhoto Load (1.2ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 4 ) [0m
+Completed in 71ms (View: 55, DB: 2) | 200 OK [http://localhost/categories/4/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 06:55:51) [GET]
+ [4;36;1mPhoto Load (82.0ms)[0m [0;1mSELECT * FROM "photos" [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 116ms (View: 27, DB: 82) | 200 OK [http://localhost/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 06:56:21) [GET]
+ [4;35;1mPhoto Load (2.7ms)[0m [0mSELECT * FROM "photos" [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 38ms (View: 27, DB: 3) | 200 OK [http://localhost/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 06:56:24) [GET]
+ Parameters: {"category_id"=>"1"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;36;1mPhoto Load (1.5ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Completed in 31ms (View: 17, DB: 2) | 200 OK [http://localhost/categories/1/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 06:56:28) [GET]
+ Parameters: {"category_id"=>"2"}
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '2') LIMIT 1[0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 2 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;35;1mPhoto Load (0.6ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 2 ) [0m
+Completed in 22ms (View: 9, DB: 1) | 200 OK [http://localhost/categories/2/photos]
+
+
+Processing ApplicationController#index (for 127.0.0.1 at 2010-10-09 06:59:32) [GET]
+
+SyntaxError (/Users/danbee/Sites/rails/photos/app/controllers/photos_controller.rb:13: syntax error, unexpected '=', expecting kEND
+ @photos = Photo.paginate :all, :page = params[:page]
+ ^):
+
+
+Rendered rescues/_trace (81.7ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 06:59:39) [GET]
+ [4;36;1mSQL (0.5ms)[0m [0;1m SELECT name
+ FROM sqlite_master
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
+[0m
+
+NoMethodError (undefined method `paginate' for #):
+ app/controllers/photos_controller.rb:13:in `index'
+
+Rendered rescues/_trace (27.3ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 06:59:59) [GET]
+ [4;35;1mSQL (0.6ms)[0m [0m SELECT name
+ FROM sqlite_master
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
+[0m
+
+NoMethodError (undefined method `paginate' for #):
+ app/controllers/photos_controller.rb:13:in `index'
+
+Rendered rescues/_trace (90.8ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:00:15) [GET]
+ [4;36;1mPhoto Load (2.3ms)[0m [0;1mSELECT * FROM "photos" LIMIT 30 OFFSET 0[0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 73ms (View: 52, DB: 2) | 200 OK [http://localhost/photos]
+
+
+Processing ApplicationController#index (for 127.0.0.1 at 2010-10-09 07:01:00) [GET]
+
+SyntaxError (/Users/danbee/Sites/rails/photos/app/controllers/photos_controller.rb:13: syntax error, unexpected '=', expecting tASSOC
+... => params[:page], :per_page = 11
+ ^):
+
+
+Rendered rescues/_trace (28.9ms)
+Rendered rescues/_request_and_response (1.2ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:01:05) [GET]
+ [4;35;1mPhoto Load (1.5ms)[0m [0mSELECT * FROM "photos" LIMIT 11 OFFSET 0[0m
+ [4;36;1mSQL (0.1ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 23ms (View: 13, DB: 2) | 200 OK [http://localhost/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:01:44) [GET]
+ Parameters: {"category_id"=>"1"}
+ [4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;36;1mSQL (0.3ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+ [4;35;1mPhoto Load (1.6ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Completed in 90ms (View: 18, DB: 2) | 200 OK [http://localhost/categories/1/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:02:05) [GET]
+ Parameters: {"category_id"=>"1"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;35;1mPhoto Load (1.5ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 0[0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 29ms (View: 13, DB: 2) | 200 OK [http://localhost/categories/1/photos]
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 07:02:08) [GET]
+ [4;35;1mCategory Load (0.9ms)[0m [0mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering categories/index
+Completed in 73ms (View: 67, DB: 1) | 200 OK [http://localhost/categories]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:02:08) [GET]
+ Parameters: {"category_id"=>"5"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '5') LIMIT 1[0m
+ [4;35;1mPhoto Load (0.4ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 ) LIMIT 11 OFFSET 0[0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 19ms (View: 7, DB: 1) | 200 OK [http://localhost/categories/5/photos]
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 07:02:09) [GET]
+ [4;36;1mCategory Load (0.8ms)[0m [0;1mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering categories/index
+Completed in 10ms (View: 5, DB: 1) | 200 OK [http://localhost/categories]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:02:10) [GET]
+ Parameters: {"category_id"=>"4"}
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '4') LIMIT 1[0m
+ [4;36;1mPhoto Load (1.2ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 4 ) LIMIT 11 OFFSET 0[0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 25ms (View: 12, DB: 1) | 200 OK [http://localhost/categories/4/photos]
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 07:02:11) [GET]
+ [4;35;1mCategory Load (0.9ms)[0m [0mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering categories/index
+Completed in 11ms (View: 5, DB: 1) | 200 OK [http://localhost/categories]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:02:13) [GET]
+ Parameters: {"category_id"=>"1"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;35;1mPhoto Load (1.4ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 0[0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 29ms (View: 13, DB: 2) | 200 OK [http://localhost/categories/1/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:02:29) [GET]
+ Parameters: {"category_id"=>"1", "page"=>"2"}
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;36;1mPhoto Load (0.7ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 11[0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 22ms (View: 8, DB: 1) | 200 OK [http://localhost/categories/1/photos?page=2]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:02:34) [GET]
+ Parameters: {"category_id"=>"1"}
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;36;1mPhoto Load (2.1ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 0[0m
+ [4;35;1mSQL (0.3ms)[0m [0mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 37ms (View: 17, DB: 3) | 200 OK [http://localhost/categories/1/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:06:22) [GET]
+ [4;36;1mPhoto Load (1.5ms)[0m [0;1mSELECT * FROM "photos" LIMIT 11 OFFSET 0[0m
+ [4;35;1mSQL (0.1ms)[0m [0mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/photos
+Rendering photos/index
+
+ActionView::TemplateError (undefined method `previous_page' for #) on line #29 of app/views/photos/index.html.erb:
+26:
+27:
+28:
+29: <%= link_to '←', previous_page(@photos) %>
+30: <%= link_to '→', next_page(@photos) %>
+31:
+
+ app/views/photos/index.html.erb:29
+
+Rendered rescues/_trace (34.3ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:06:35) [GET]
+ Parameters: {"category_id"=>"1"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;35;1mPhoto Load (1.4ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 0[0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+
+ActionView::TemplateError (undefined method `previous_page' for #) on line #29 of app/views/photos/index.html.erb:
+26:
+27:
+28:
+29: <%= link_to '←', will_paginate.previous_page(@photos) %>
+30: <%= link_to '→', will_paginate.next_page(@photos) %>
+31:
+
+ app/views/photos/index.html.erb:29
+
+Rendered rescues/_trace (35.2ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:06:47) [GET]
+ Parameters: {"category_id"=>"1"}
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;36;1mPhoto Load (1.2ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 0[0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 32ms (View: 17, DB: 2) | 200 OK [http://localhost/categories/1/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:06:51) [GET]
+ Parameters: {"category_id"=>"1"}
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;35;1mPhoto Load (1.4ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 0[0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 30ms (View: 13, DB: 2) | 200 OK [http://localhost/categories/1/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:07:03) [GET]
+ Parameters: {"category_id"=>"1"}
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;36;1mPhoto Load (1.4ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 0[0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+
+ActionView::TemplateError (undefined method `fixnum_path' for #) on line #30 of app/views/photos/index.html.erb:
+27:
+28:
+29: <%= link_to '←', @photos.previous_page %>
+30: <%= link_to '→', @photos.next_page %>
+31:
+
+ app/views/photos/index.html.erb:30
+
+Rendered rescues/_trace (95.8ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:07:46) [GET]
+ Parameters: {"category_id"=>"1"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;35;1mPhoto Load (1.4ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 0[0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 31ms (View: 17, DB: 2) | 200 OK [http://localhost/categories/1/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:07:49) [GET]
+ Parameters: {"category_id"=>"1", "page"=>"2"}
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;36;1mPhoto Load (0.5ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 11[0m
+Rendering template within layouts/photos
+Rendering photos/index
+
+ActionView::TemplateError (undefined method `fixnum_path' for #) on line #29 of app/views/photos/index.html.erb:
+26:
+27:
+28:
+29: <%= link_to '←', @photos.previous_page %>
+30: <%= link_to '→', :page => @photos.next_page %>
+31:
+
+ app/views/photos/index.html.erb:29
+
+Rendered rescues/_trace (39.0ms)
+Rendered rescues/_request_and_response (0.4ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:07:56) [GET]
+ Parameters: {"category_id"=>"1", "page"=>"2"}
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;36;1mPhoto Load (0.6ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 11[0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 26ms (View: 14, DB: 1) | 200 OK [http://localhost/categories/1/photos?page=2]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:07:58) [GET]
+ Parameters: {"category_id"=>"1", "page"=>"1"}
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;36;1mPhoto Load (1.4ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 0[0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 30ms (View: 14, DB: 2) | 200 OK [http://localhost/categories/1/photos?page=1]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:07:59) [GET]
+ Parameters: {"category_id"=>"1", "page"=>"2"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;35;1mPhoto Load (0.5ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 11[0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 20ms (View: 9, DB: 1) | 200 OK [http://localhost/categories/1/photos?page=2]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:08:05) [GET]
+ Parameters: {"category_id"=>"1", "page"=>"1"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;35;1mPhoto Load (1.3ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 0[0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 28ms (View: 13, DB: 2) | 200 OK [http://localhost/categories/1/photos?page=1]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:09:31) [GET]
+ Parameters: {"category_id"=>"1", "page"=>"2"}
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;36;1mPhoto Load (0.5ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 11[0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 80ms (View: 9, DB: 1) | 200 OK [http://localhost/categories/1/photos?page=2]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:09:37) [GET]
+ Parameters: {"category_id"=>"1", "page"=>"1"}
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;36;1mPhoto Load (1.4ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 0[0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 29ms (View: 13, DB: 2) | 200 OK [http://localhost/categories/1/photos?page=1]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:09:42) [GET]
+ [4;36;1mPhoto Load (1.3ms)[0m [0;1mSELECT * FROM "photos" LIMIT 11 OFFSET 0[0m
+ [4;35;1mSQL (0.1ms)[0m [0mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 21ms (View: 12, DB: 1) | 200 OK [http://localhost/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:09:43) [GET]
+ Parameters: {"page"=>"2"}
+ [4;36;1mPhoto Load (1.5ms)[0m [0;1mSELECT * FROM "photos" LIMIT 11 OFFSET 11[0m
+ [4;35;1mSQL (0.1ms)[0m [0mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 21ms (View: 12, DB: 2) | 200 OK [http://localhost/photos?page=2]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:09:44) [GET]
+ [4;36;1mPhoto Load (1.4ms)[0m [0;1mSELECT * FROM "photos" LIMIT 11 OFFSET 0[0m
+ [4;35;1mSQL (0.1ms)[0m [0mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 21ms (View: 12, DB: 1) | 200 OK [http://localhost/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:09:45) [GET]
+ Parameters: {"page"=>"2"}
+ [4;36;1mPhoto Load (1.5ms)[0m [0;1mSELECT * FROM "photos" LIMIT 11 OFFSET 11[0m
+ [4;35;1mSQL (0.1ms)[0m [0mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 75ms (View: 65, DB: 2) | 200 OK [http://localhost/photos?page=2]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:09:46) [GET]
+ [4;36;1mPhoto Load (1.4ms)[0m [0;1mSELECT * FROM "photos" LIMIT 11 OFFSET 0[0m
+ [4;35;1mSQL (0.1ms)[0m [0mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 22ms (View: 12, DB: 2) | 200 OK [http://localhost/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:09:48) [GET]
+ Parameters: {"page"=>"2"}
+ [4;36;1mPhoto Load (1.4ms)[0m [0;1mSELECT * FROM "photos" LIMIT 11 OFFSET 11[0m
+ [4;35;1mSQL (0.1ms)[0m [0mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 22ms (View: 12, DB: 2) | 200 OK [http://localhost/photos?page=2]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:09:52) [GET]
+ Parameters: {"page"=>"1"}
+ [4;36;1mPhoto Load (1.3ms)[0m [0;1mSELECT * FROM "photos" LIMIT 11 OFFSET 0[0m
+ [4;35;1mSQL (0.1ms)[0m [0mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 21ms (View: 12, DB: 1) | 200 OK [http://localhost/photos?page=1]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:09:53) [GET]
+ Parameters: {"page"=>"2"}
+ [4;36;1mPhoto Load (1.3ms)[0m [0;1mSELECT * FROM "photos" LIMIT 11 OFFSET 11[0m
+ [4;35;1mSQL (0.1ms)[0m [0mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 24ms (View: 13, DB: 1) | 200 OK [http://localhost/photos?page=2]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:09:57) [GET]
+ Parameters: {"page"=>"1"}
+ [4;36;1mPhoto Load (1.3ms)[0m [0;1mSELECT * FROM "photos" LIMIT 11 OFFSET 0[0m
+ [4;35;1mSQL (0.1ms)[0m [0mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 21ms (View: 12, DB: 1) | 200 OK [http://localhost/photos?page=1]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:09:58) [GET]
+ Parameters: {"page"=>"2"}
+ [4;36;1mPhoto Load (1.3ms)[0m [0;1mSELECT * FROM "photos" LIMIT 11 OFFSET 11[0m
+ [4;35;1mSQL (0.1ms)[0m [0mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 22ms (View: 12, DB: 1) | 200 OK [http://localhost/photos?page=2]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:10:01) [GET]
+ Parameters: {"page"=>"3"}
+ [4;36;1mPhoto Load (0.4ms)[0m [0;1mSELECT * FROM "photos" LIMIT 11 OFFSET 22[0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 12ms (View: 3, DB: 1) | 200 OK [http://localhost/photos?page=3]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:10:06) [GET]
+ Parameters: {"page"=>"1"}
+ [4;36;1mPhoto Load (1.5ms)[0m [0;1mSELECT * FROM "photos" LIMIT 11 OFFSET 0[0m
+ [4;35;1mSQL (0.1ms)[0m [0mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 23ms (View: 13, DB: 2) | 200 OK [http://localhost/photos?page=1]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:10:26) [GET]
+ Parameters: {"category_id"=>"1", "page"=>"1"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;35;1mPhoto Load (1.3ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 0[0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 34ms (View: 19, DB: 2) | 200 OK [http://localhost/categories/1/photos?page=1]
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 07:10:31) [GET]
+ [4;35;1mCategory Load (0.8ms)[0m [0mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering categories/index
+Completed in 65ms (View: 60, DB: 1) | 200 OK [http://localhost/categories]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:10:31) [GET]
+ Parameters: {"category_id"=>"2"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '2') LIMIT 1[0m
+ [4;35;1mPhoto Load (0.7ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 2 ) LIMIT 11 OFFSET 0[0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 22ms (View: 9, DB: 1) | 200 OK [http://localhost/categories/2/photos]
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 07:10:34) [GET]
+ [4;36;1mCategory Load (0.8ms)[0m [0;1mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering categories/index
+Completed in 10ms (View: 5, DB: 1) | 200 OK [http://localhost/categories]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:10:35) [GET]
+ Parameters: {"category_id"=>"4"}
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '4') LIMIT 1[0m
+ [4;36;1mPhoto Load (1.1ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 4 ) LIMIT 11 OFFSET 0[0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 27ms (View: 13, DB: 1) | 200 OK [http://localhost/categories/4/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:11:46) [GET]
+ Parameters: {"category_id"=>"4"}
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '4') LIMIT 1[0m
+ [4;36;1mPhoto Load (1.1ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 4 ) LIMIT 11 OFFSET 0[0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 88ms (View: 17, DB: 1) | 200 OK [http://localhost/categories/4/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:11:55) [GET]
+ Parameters: {"category_id"=>"4"}
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '4') LIMIT 1[0m
+ [4;36;1mPhoto Load (1.2ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 4 ) LIMIT 11 OFFSET 0[0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 32ms (View: 18, DB: 1) | 200 OK [http://localhost/categories/4/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:12:07) [GET]
+ Parameters: {"category_id"=>"4"}
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '4') LIMIT 1[0m
+ [4;36;1mPhoto Load (1.3ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 4 ) LIMIT 11 OFFSET 0[0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 86ms (View: 17, DB: 1) | 200 OK [http://localhost/categories/4/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:12:21) [GET]
+ Parameters: {"category_id"=>"4"}
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '4') LIMIT 1[0m
+ [4;36;1mPhoto Load (1.1ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 4 ) LIMIT 11 OFFSET 0[0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 29ms (View: 17, DB: 1) | 200 OK [http://localhost/categories/4/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:12:36) [GET]
+ Parameters: {"category_id"=>"4"}
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '4') LIMIT 1[0m
+ [4;36;1mPhoto Load (1.1ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 4 ) LIMIT 11 OFFSET 0[0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 84ms (View: 72, DB: 1) | 200 OK [http://localhost/categories/4/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:13:02) [GET]
+ Parameters: {"category_id"=>"4"}
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '4') LIMIT 1[0m
+ [4;36;1mPhoto Load (1.2ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 4 ) LIMIT 11 OFFSET 0[0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 30ms (View: 17, DB: 1) | 200 OK [http://localhost/categories/4/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:13:04) [GET]
+ Parameters: {"category_id"=>"4"}
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '4') LIMIT 1[0m
+ [4;36;1mPhoto Load (1.2ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 4 ) LIMIT 11 OFFSET 0[0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 81ms (View: 69, DB: 1) | 200 OK [http://localhost/categories/4/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:13:06) [GET]
+ Parameters: {"category_id"=>"4"}
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '4') LIMIT 1[0m
+ [4;36;1mPhoto Load (1.1ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 4 ) LIMIT 11 OFFSET 0[0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 26ms (View: 13, DB: 1) | 200 OK [http://localhost/categories/4/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:13:12) [GET]
+ Parameters: {"page"=>"1"}
+ [4;35;1mPhoto Load (1.5ms)[0m [0mSELECT * FROM "photos" LIMIT 11 OFFSET 0[0m
+ [4;36;1mSQL (0.1ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 23ms (View: 13, DB: 2) | 200 OK [http://localhost/photos?page=1]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:13:14) [GET]
+ Parameters: {"page"=>"2"}
+ [4;35;1mPhoto Load (1.5ms)[0m [0mSELECT * FROM "photos" LIMIT 11 OFFSET 11[0m
+ [4;36;1mSQL (0.1ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 78ms (View: 69, DB: 2) | 200 OK [http://localhost/photos?page=2]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:13:15) [GET]
+ Parameters: {"page"=>"1"}
+ [4;35;1mPhoto Load (1.3ms)[0m [0mSELECT * FROM "photos" LIMIT 11 OFFSET 0[0m
+ [4;36;1mSQL (0.1ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 21ms (View: 12, DB: 1) | 200 OK [http://localhost/photos?page=1]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:13:18) [GET]
+ Parameters: {"page"=>"2"}
+ [4;35;1mPhoto Load (1.5ms)[0m [0mSELECT * FROM "photos" LIMIT 11 OFFSET 11[0m
+ [4;36;1mSQL (0.1ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 22ms (View: 12, DB: 2) | 200 OK [http://localhost/photos?page=2]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:13:20) [GET]
+ [4;35;1mPhoto Load (1.4ms)[0m [0mSELECT * FROM "photos" LIMIT 11 OFFSET 0[0m
+ [4;36;1mSQL (0.1ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 22ms (View: 12, DB: 2) | 200 OK [http://localhost/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:13:21) [GET]
+ [4;35;1mPhoto Load (1.3ms)[0m [0mSELECT * FROM "photos" LIMIT 11 OFFSET 0[0m
+ [4;36;1mSQL (0.1ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 23ms (View: 13, DB: 1) | 200 OK [http://localhost/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:13:21) [GET]
+ [4;35;1mPhoto Load (1.5ms)[0m [0mSELECT * FROM "photos" LIMIT 11 OFFSET 0[0m
+ [4;36;1mSQL (0.1ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 23ms (View: 13, DB: 2) | 200 OK [http://localhost/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:13:23) [GET]
+ Parameters: {"page"=>"2"}
+ [4;35;1mPhoto Load (1.3ms)[0m [0mSELECT * FROM "photos" LIMIT 11 OFFSET 11[0m
+ [4;36;1mSQL (0.1ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 21ms (View: 12, DB: 1) | 200 OK [http://localhost/photos?page=2]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:13:23) [GET]
+ [4;35;1mPhoto Load (1.4ms)[0m [0mSELECT * FROM "photos" LIMIT 11 OFFSET 0[0m
+ [4;36;1mSQL (0.1ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 77ms (View: 12, DB: 2) | 200 OK [http://localhost/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:13:24) [GET]
+ Parameters: {"page"=>"2"}
+ [4;35;1mPhoto Load (1.3ms)[0m [0mSELECT * FROM "photos" LIMIT 11 OFFSET 11[0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 27ms (View: 17, DB: 2) | 200 OK [http://localhost/photos?page=2]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:13:25) [GET]
+ [4;35;1mPhoto Load (1.4ms)[0m [0mSELECT * FROM "photos" LIMIT 11 OFFSET 0[0m
+ [4;36;1mSQL (0.1ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 22ms (View: 12, DB: 1) | 200 OK [http://localhost/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:13:26) [GET]
+ [4;35;1mPhoto Load (1.8ms)[0m [0mSELECT * FROM "photos" LIMIT 11 OFFSET 0[0m
+ [4;36;1mSQL (0.1ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 29ms (View: 18, DB: 2) | 200 OK [http://localhost/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:13:26) [GET]
+ [4;35;1mPhoto Load (1.3ms)[0m [0mSELECT * FROM "photos" LIMIT 11 OFFSET 0[0m
+ [4;36;1mSQL (0.1ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 22ms (View: 13, DB: 1) | 200 OK [http://localhost/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:13:27) [GET]
+ Parameters: {"page"=>"2"}
+ [4;35;1mPhoto Load (1.5ms)[0m [0mSELECT * FROM "photos" LIMIT 11 OFFSET 11[0m
+ [4;36;1mSQL (0.1ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 23ms (View: 13, DB: 2) | 200 OK [http://localhost/photos?page=2]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:13:28) [GET]
+ Parameters: {"page"=>"1"}
+ [4;35;1mPhoto Load (1.3ms)[0m [0mSELECT * FROM "photos" LIMIT 11 OFFSET 0[0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 21ms (View: 12, DB: 1) | 200 OK [http://localhost/photos?page=1]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:13:28) [GET]
+ Parameters: {"page"=>"2"}
+ [4;35;1mPhoto Load (1.4ms)[0m [0mSELECT * FROM "photos" LIMIT 11 OFFSET 11[0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 80ms (View: 69, DB: 2) | 200 OK [http://localhost/photos?page=2]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:13:29) [GET]
+ Parameters: {"page"=>"1"}
+ [4;35;1mPhoto Load (1.4ms)[0m [0mSELECT * FROM "photos" LIMIT 11 OFFSET 0[0m
+ [4;36;1mSQL (0.1ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 23ms (View: 12, DB: 2) | 200 OK [http://localhost/photos?page=1]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:14:06) [GET]
+ Parameters: {"category_id"=>"4"}
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '4') LIMIT 1[0m
+ [4;36;1mPhoto Load (1.1ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 4 ) LIMIT 11 OFFSET 0[0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 30ms (View: 16, DB: 1) | 200 OK [http://localhost/categories/4/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:14:35) [GET]
+ Parameters: {"category_id"=>"4"}
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '4') LIMIT 1[0m
+ [4;36;1mPhoto Load (1.5ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 4 ) LIMIT 11 OFFSET 0[0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 94ms (View: 19, DB: 2) | 200 OK [http://localhost/categories/4/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:14:40) [GET]
+ Parameters: {"class"=>"next-link", "category_id"=>"4"}
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '4') LIMIT 1[0m
+ [4;36;1mPhoto Load (1.3ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 4 ) LIMIT 11 OFFSET 0[0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 27ms (View: 14, DB: 2) | 200 OK [http://localhost/categories/4/photos?class=next-link]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:15:23) [GET]
+ Parameters: {"class"=>"next-link", "category_id"=>"4"}
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '4') LIMIT 1[0m
+ [4;36;1mPhoto Load (1.2ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 4 ) LIMIT 11 OFFSET 0[0m
+Rendering template within layouts/photos
+Rendering photos/index
+ERROR: compiling _run_erb_app47views47photos47index46html46erb RAISED compile error
+/Users/danbee/Sites/rails/photos/app/views/photos/index.html.erb:4: syntax error, unexpected ')', expecting tASSOC
+...e, { :class => 'prev-link' } ).to_s); @output_buffer.concat ...
+ ^
+/Users/danbee/Sites/rails/photos/app/views/photos/index.html.erb:5: syntax error, unexpected ')', expecting tASSOC
+...e, { :class => 'next-link' } ).to_s); @output_buffer.concat ...
+ ^
+Function body: def _run_erb_app47views47photos47index46html46erb(local_assigns)
+ old_output_buffer = output_buffer;;@output_buffer = ''; __in_erb_template=true ; @output_buffer.concat "\t\n\t
\n\t\n\t\t"
+
+
+; @output_buffer.concat(( link_to '←', :page => @photos.previous_page, { :class => 'prev-link' } ).to_s); @output_buffer.concat "\n\t\t"
+; @output_buffer.concat(( link_to '→', :page => @photos.next_page, { :class => 'next-link' } ).to_s); @output_buffer.concat "\n\t
\n\n\n\n\n"
+
+
+
+
+
+; if @category ; @output_buffer.concat "\n\t
\n\t\t"
+; @output_buffer.concat(( link_to '
'+h(@category.name.downcase)+' ↑
', categories_url ).to_s); @output_buffer.concat "\n\t
\n"
+
+; else ; @output_buffer.concat "\n\t
\n\t\t
all photos \n\t\n"
+
+
+
+; end ; @output_buffer.concat "\n\n"
+
+; @num_blank = 11 - @num_photos
+@output_buffer.concat "\n"
+; @photos.each do |photo| ; @output_buffer.concat "\n\n
"; @output_buffer.concat(( link_to ' ', photo.photo.url, :rel => 'photo', :class => 'fancy' ).to_s); @output_buffer.concat "
\n\n"
+
+; end ; @output_buffer.concat "\n\n"
+
+; @num_blank.times do ; @output_buffer.concat "\n\t
\n\t
\n"
+
+
+; end ; @output_buffer.concat "\n\n
\n"
+
+
+; @output_buffer
+ ensure
+ self.output_buffer = old_output_buffer
+ end
+Backtrace: /Users/danbee/Sites/rails/photos/app/views/photos/index.html.erb:38:in `compile!'
+/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_view/renderable.rb:61:in `compile'
+/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_view/renderable.rb:28:in `render'
+/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_view/template.rb:205:in `render_template'
+/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_view/base.rb:265:in `render_without_parent'
+/Users/danbee/Sites/rails/photos/vendor/plugins/typus/lib/vendor/inherit_views.rb:193:in `render'
+/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_view/base.rb:348:in `_render_with_layout'
+/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_view/base.rb:262:in `render_without_parent'
+/Users/danbee/Sites/rails/photos/vendor/plugins/typus/lib/vendor/inherit_views.rb:193:in `render'
+/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/base.rb:1250:in `render_for_file'
+/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/base.rb:936:in `render_without_benchmark'
+/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/benchmarking.rb:51:in `render'
+/Library/Ruby/Gems/1.8/gems/activesupport-2.3.8/lib/active_support/core_ext/benchmark.rb:17:in `ms'
+/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/benchmark.rb:308:in `realtime'
+/Library/Ruby/Gems/1.8/gems/activesupport-2.3.8/lib/active_support/core_ext/benchmark.rb:17:in `ms'
+/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/benchmarking.rb:51:in `render'
+/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/base.rb:1326:in `default_render'
+/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/base.rb:1332:in `perform_action_without_filters'
+/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/filters.rb:617:in `call_filters'
+/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/filters.rb:610:in `perform_action_without_benchmark'
+/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
+/Library/Ruby/Gems/1.8/gems/activesupport-2.3.8/lib/active_support/core_ext/benchmark.rb:17:in `ms'
+/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/benchmark.rb:308:in `realtime'
+/Library/Ruby/Gems/1.8/gems/activesupport-2.3.8/lib/active_support/core_ext/benchmark.rb:17:in `ms'
+/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
+/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/rescue.rb:160:in `perform_action_without_flash'
+/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/flash.rb:151:in `perform_action'
+/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/base.rb:532:in `send'
+/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/base.rb:532:in `process_without_filters'
+/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/filters.rb:606:in `process'
+/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/base.rb:391:in `process'
+/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/base.rb:386:in `call'
+/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/routing/route_set.rb:438:in `call'
+/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/dispatcher.rb:87:in `dispatch'
+/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/dispatcher.rb:121:in `_call'
+/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/dispatcher.rb:130:in `build_middleware_stack'
+/Library/Ruby/Gems/1.8/gems/activerecord-2.3.8/lib/active_record/query_cache.rb:29:in `call'
+/Library/Ruby/Gems/1.8/gems/activerecord-2.3.8/lib/active_record/query_cache.rb:29:in `call'
+/Library/Ruby/Gems/1.8/gems/activerecord-2.3.8/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in `cache'
+/Library/Ruby/Gems/1.8/gems/activerecord-2.3.8/lib/active_record/query_cache.rb:9:in `cache'
+/Library/Ruby/Gems/1.8/gems/activerecord-2.3.8/lib/active_record/query_cache.rb:28:in `call'
+/Library/Ruby/Gems/1.8/gems/activerecord-2.3.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in `call'
+/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/string_coercion.rb:25:in `call'
+/Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/head.rb:9:in `call'
+/Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/methodoverride.rb:24:in `call'
+/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/params_parser.rb:15:in `call'
+/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/session/cookie_store.rb:99:in `call'
+/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/failsafe.rb:26:in `call'
+/Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/lock.rb:11:in `call'
+/Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/lock.rb:11:in `synchronize'
+/Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/lock.rb:11:in `call'
+/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/dispatcher.rb:114:in `call'
+/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/reloader.rb:34:in `run'
+/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/dispatcher.rb:108:in `call'
+/Library/Ruby/Gems/1.8/gems/rails-2.3.8/lib/rails/rack/static.rb:31:in `call'
+/Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/urlmap.rb:47:in `call'
+/Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/urlmap.rb:41:in `each'
+/Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/urlmap.rb:41:in `call'
+/Library/Ruby/Gems/1.8/gems/rails-2.3.8/lib/rails/rack/debugger.rb:19:in `call'
+/Library/Ruby/Gems/1.8/gems/rails-2.3.8/lib/rails/rack/log_tailer.rb:17:in `call'
+/Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/content_length.rb:13:in `call'
+/Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/chunked.rb:15:in `call'
+/Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/handler/mongrel.rb:67:in `process'
+/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:159:in `process_client'
+/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `each'
+/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `process_client'
+/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run'
+/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `initialize'
+/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `new'
+/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run'
+/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `initialize'
+/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `new'
+/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `run'
+/Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/handler/mongrel.rb:38:in `run'
+/Library/Ruby/Gems/1.8/gems/rails-2.3.8/lib/commands/server.rb:111
+/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
+/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require'
+script/server:3
+
+ActionView::TemplateError (compile error
+/Users/danbee/Sites/rails/photos/app/views/photos/index.html.erb:4: syntax error, unexpected ')', expecting tASSOC
+...e, { :class => 'prev-link' } ).to_s); @output_buffer.concat ...
+ ^
+/Users/danbee/Sites/rails/photos/app/views/photos/index.html.erb:5: syntax error, unexpected ')', expecting tASSOC
+...e, { :class => 'next-link' } ).to_s); @output_buffer.concat ...
+ ^) on line #4 of app/views/photos/index.html.erb:
+1:
+2:
+3:
+4: <%= link_to '←', :page => @photos.previous_page, { :class => 'prev-link' } %>
+5: <%= link_to '→', :page => @photos.next_page, { :class => 'next-link' } %>
+6:
+7:
+
+ app/views/photos/index.html.erb:38:in `compile!'
+
+Rendered rescues/_trace (93.0ms)
+Rendered rescues/_request_and_response (0.4ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:15:53) [GET]
+ Parameters: {"class"=>"next-link", "category_id"=>"4"}
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '4') LIMIT 1[0m
+ [4;36;1mPhoto Load (1.1ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 4 ) LIMIT 11 OFFSET 0[0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 30ms (View: 16, DB: 1) | 200 OK [http://localhost/categories/4/photos?class=next-link]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:16:02) [GET]
+ Parameters: {"category_id"=>"4"}
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '4') LIMIT 1[0m
+ [4;36;1mPhoto Load (1.3ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 4 ) LIMIT 11 OFFSET 0[0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 86ms (View: 71, DB: 2) | 200 OK [http://localhost/categories/4/photos]
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 07:16:05) [GET]
+ [4;35;1mCategory Load (0.9ms)[0m [0mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering categories/index
+Completed in 12ms (View: 5, DB: 1) | 200 OK [http://localhost/categories]
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 07:16:17) [GET]
+ [4;36;1mCategory Load (0.9ms)[0m [0;1mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering categories/index
+Completed in 16ms (View: 10, DB: 1) | 200 OK [http://localhost/categories]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:16:18) [GET]
+ Parameters: {"category_id"=>"1"}
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;36;1mPhoto Load (1.3ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 0[0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 29ms (View: 14, DB: 2) | 200 OK [http://localhost/categories/1/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:16:20) [GET]
+ Parameters: {"category_id"=>"1", "page"=>"2"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;35;1mPhoto Load (0.6ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 11[0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 22ms (View: 9, DB: 1) | 200 OK [http://localhost/categories/1/photos?page=2]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:16:22) [GET]
+ Parameters: {"category_id"=>"1", "page"=>"1"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;35;1mPhoto Load (1.4ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 0[0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 28ms (View: 13, DB: 2) | 200 OK [http://localhost/categories/1/photos?page=1]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:16:25) [GET]
+ Parameters: {"category_id"=>"1", "page"=>"2"}
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;36;1mPhoto Load (0.6ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 11[0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 23ms (View: 9, DB: 1) | 200 OK [http://localhost/categories/1/photos?page=2]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:16:28) [GET]
+ Parameters: {"category_id"=>"1", "page"=>"1"}
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;36;1mPhoto Load (1.4ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 0[0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 89ms (View: 14, DB: 2) | 200 OK [http://localhost/categories/1/photos?page=1]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:16:51) [GET]
+ Parameters: {"category_id"=>"1", "page"=>"1"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;35;1mPhoto Load (1.4ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 0[0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 34ms (View: 18, DB: 2) | 200 OK [http://localhost/categories/1/photos?page=1]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:17:35) [GET]
+ Parameters: {"category_id"=>"1", "page"=>"1"}
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;36;1mPhoto Load (1.4ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 0[0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 90ms (View: 74, DB: 2) | 200 OK [http://localhost/categories/1/photos?page=1]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:18:12) [GET]
+ Parameters: {"category_id"=>"1", "page"=>"1"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;35;1mPhoto Load (1.4ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 0[0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 29ms (View: 14, DB: 2) | 200 OK [http://localhost/categories/1/photos?page=1]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:18:38) [GET]
+ Parameters: {"category_id"=>"1", "page"=>"1"}
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;36;1mPhoto Load (1.3ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 0[0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 28ms (View: 14, DB: 2) | 200 OK [http://localhost/categories/1/photos?page=1]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:18:39) [GET]
+ Parameters: {"category_id"=>"1", "page"=>"1"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;35;1mPhoto Load (1.3ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 0[0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 28ms (View: 13, DB: 2) | 200 OK [http://localhost/categories/1/photos?page=1]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:19:09) [GET]
+ Parameters: {"category_id"=>"1", "page"=>"1"}
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;36;1mPhoto Load (1.5ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 0[0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 31ms (View: 14, DB: 2) | 200 OK [http://localhost/categories/1/photos?page=1]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:19:48) [GET]
+ Parameters: {"category_id"=>"1", "page"=>"1"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;35;1mPhoto Load (1.4ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 0[0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 31ms (View: 14, DB: 2) | 200 OK [http://localhost/categories/1/photos?page=1]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:20:05) [GET]
+ Parameters: {"category_id"=>"1", "page"=>"1"}
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;36;1mPhoto Load (1.4ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 0[0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 31ms (View: 14, DB: 2) | 200 OK [http://localhost/categories/1/photos?page=1]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:20:18) [GET]
+ Parameters: {"category_id"=>"1", "page"=>"1"}
+ [4;36;1mCategory Load (0.5ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;35;1mPhoto Load (1.5ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 0[0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 36ms (View: 16, DB: 2) | 200 OK [http://localhost/categories/1/photos?page=1]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:20:20) [GET]
+ Parameters: {"category_id"=>"1", "page"=>"2"}
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;36;1mPhoto Load (0.8ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 11[0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 23ms (View: 10, DB: 1) | 200 OK [http://localhost/categories/1/photos?page=2]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:20:21) [GET]
+ Parameters: {"category_id"=>"1", "page"=>"1"}
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;36;1mPhoto Load (1.3ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 0[0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 84ms (View: 14, DB: 2) | 200 OK [http://localhost/categories/1/photos?page=1]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:20:44) [GET]
+ Parameters: {"category_id"=>"1", "page"=>"1"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;35;1mPhoto Load (1.6ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 0[0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 29ms (View: 13, DB: 2) | 200 OK [http://localhost/categories/1/photos?page=1]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:20:49) [GET]
+ Parameters: {"category_id"=>"1", "page"=>"2"}
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;36;1mPhoto Load (0.6ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 11[0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 21ms (View: 9, DB: 1) | 200 OK [http://localhost/categories/1/photos?page=2]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:20:55) [GET]
+ Parameters: {"category_id"=>"1", "page"=>"2"}
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;36;1mPhoto Load (0.5ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 11[0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 22ms (View: 9, DB: 1) | 200 OK [http://localhost/categories/1/photos?page=2]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:21:38) [GET]
+ Parameters: {"category_id"=>"1", "page"=>"2"}
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;36;1mPhoto Load (0.5ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 11[0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 22ms (View: 10, DB: 1) | 200 OK [http://localhost/categories/1/photos?page=2]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:22:12) [GET]
+ Parameters: {"category_id"=>"1", "page"=>"2"}
+ [4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;36;1mPhoto Load (0.5ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 11[0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 20ms (View: 9, DB: 1) | 200 OK [http://localhost/categories/1/photos?page=2]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:22:49) [GET]
+ Parameters: {"category_id"=>"1", "page"=>"2"}
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;36;1mPhoto Load (0.6ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 11[0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 23ms (View: 10, DB: 1) | 200 OK [http://localhost/categories/1/photos?page=2]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:22:58) [GET]
+ Parameters: {"category_id"=>"1", "page"=>"2"}
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;36;1mPhoto Load (0.5ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 11[0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 20ms (View: 9, DB: 1) | 200 OK [http://localhost/categories/1/photos?page=2]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:24:52) [GET]
+ Parameters: {"page"=>"1"}
+ [4;35;1mPhoto Load (1.5ms)[0m [0mSELECT * FROM "photos" LIMIT 11 OFFSET 0[0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 24ms (View: 13, DB: 2) | 200 OK [http://localhost/photos?page=1]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:24:53) [GET]
+ Parameters: {"page"=>"2"}
+ [4;35;1mPhoto Load (1.4ms)[0m [0mSELECT * FROM "photos" LIMIT 11 OFFSET 11[0m
+ [4;36;1mSQL (0.1ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 22ms (View: 13, DB: 2) | 200 OK [http://localhost/photos?page=2]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:24:54) [GET]
+ Parameters: {"page"=>"1"}
+ [4;35;1mPhoto Load (1.3ms)[0m [0mSELECT * FROM "photos" LIMIT 11 OFFSET 0[0m
+ [4;36;1mSQL (0.1ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 22ms (View: 13, DB: 1) | 200 OK [http://localhost/photos?page=1]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:24:55) [GET]
+ Parameters: {"page"=>"2"}
+ [4;35;1mPhoto Load (1.3ms)[0m [0mSELECT * FROM "photos" LIMIT 11 OFFSET 11[0m
+ [4;36;1mSQL (0.1ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 21ms (View: 12, DB: 1) | 200 OK [http://localhost/photos?page=2]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:24:57) [GET]
+ Parameters: {"page"=>"1"}
+ [4;35;1mPhoto Load (1.3ms)[0m [0mSELECT * FROM "photos" LIMIT 11 OFFSET 0[0m
+ [4;36;1mSQL (0.1ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 22ms (View: 12, DB: 1) | 200 OK [http://localhost/photos?page=1]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:24:58) [GET]
+ [4;35;1mPhoto Load (1.3ms)[0m [0mSELECT * FROM "photos" LIMIT 11 OFFSET 0[0m
+ [4;36;1mSQL (0.1ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 21ms (View: 12, DB: 1) | 200 OK [http://localhost/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:24:59) [GET]
+ Parameters: {"page"=>"2"}
+ [4;35;1mPhoto Load (1.5ms)[0m [0mSELECT * FROM "photos" LIMIT 11 OFFSET 11[0m
+ [4;36;1mSQL (0.1ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 22ms (View: 13, DB: 2) | 200 OK [http://localhost/photos?page=2]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:24:59) [GET]
+ [4;35;1mPhoto Load (1.4ms)[0m [0mSELECT * FROM "photos" LIMIT 11 OFFSET 0[0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 79ms (View: 12, DB: 2) | 200 OK [http://localhost/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:25:00) [GET]
+ Parameters: {"page"=>"2"}
+ [4;35;1mPhoto Load (1.4ms)[0m [0mSELECT * FROM "photos" LIMIT 11 OFFSET 11[0m
+ [4;36;1mSQL (0.1ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 23ms (View: 13, DB: 2) | 200 OK [http://localhost/photos?page=2]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:25:00) [GET]
+ Parameters: {"page"=>"1"}
+ [4;35;1mPhoto Load (1.3ms)[0m [0mSELECT * FROM "photos" LIMIT 11 OFFSET 0[0m
+ [4;36;1mSQL (0.1ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 22ms (View: 13, DB: 1) | 200 OK [http://localhost/photos?page=1]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:25:02) [GET]
+ [4;35;1mPhoto Load (1.3ms)[0m [0mSELECT * FROM "photos" LIMIT 11 OFFSET 0[0m
+ [4;36;1mSQL (0.1ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 21ms (View: 12, DB: 1) | 200 OK [http://localhost/photos]
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 07:25:08) [GET]
+ [4;35;1mCategory Load (0.8ms)[0m [0mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering categories/index
+Completed in 10ms (View: 5, DB: 1) | 200 OK [http://localhost/categories]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:25:09) [GET]
+ Parameters: {"category_id"=>"1"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;35;1mPhoto Load (1.3ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 0[0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 28ms (View: 13, DB: 2) | 200 OK [http://localhost/categories/1/photos]
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 07:25:10) [GET]
+ [4;35;1mCategory Load (0.9ms)[0m [0mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering categories/index
+Completed in 11ms (View: 5, DB: 1) | 200 OK [http://localhost/categories]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:25:11) [GET]
+ Parameters: {"category_id"=>"2"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '2') LIMIT 1[0m
+ [4;35;1mPhoto Load (0.6ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 2 ) LIMIT 11 OFFSET 0[0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 75ms (View: 63, DB: 1) | 200 OK [http://localhost/categories/2/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:25:12) [GET]
+ Parameters: {"category_id"=>"2"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '2') LIMIT 1[0m
+ [4;35;1mPhoto Load (0.6ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 2 ) LIMIT 11 OFFSET 0[0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 22ms (View: 9, DB: 1) | 200 OK [http://localhost/categories/2/photos]
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 07:25:18) [GET]
+ [4;36;1mCategory Load (0.9ms)[0m [0;1mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering categories/index
+Completed in 10ms (View: 5, DB: 1) | 200 OK [http://localhost/categories]
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 07:25:19) [GET]
+ [4;35;1mCategory Load (0.9ms)[0m [0mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering categories/index
+Completed in 12ms (View: 6, DB: 1) | 200 OK [http://localhost/categories]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:25:22) [GET]
+ Parameters: {"category_id"=>"1"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;35;1mPhoto Load (1.5ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 0[0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 29ms (View: 13, DB: 2) | 200 OK [http://localhost/categories/1/photos]
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 07:25:31) [GET]
+ [4;35;1mCategory Load (0.8ms)[0m [0mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering categories/index
+Completed in 10ms (View: 5, DB: 1) | 200 OK [http://localhost/categories]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:25:32) [GET]
+ Parameters: {"category_id"=>"5"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '5') LIMIT 1[0m
+ [4;35;1mPhoto Load (0.3ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 ) LIMIT 11 OFFSET 0[0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 18ms (View: 7, DB: 1) | 200 OK [http://localhost/categories/5/photos]
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 07:25:34) [GET]
+ [4;36;1mCategory Load (0.9ms)[0m [0;1mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering categories/index
+Completed in 11ms (View: 5, DB: 1) | 200 OK [http://localhost/categories]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:25:36) [GET]
+ Parameters: {"category_id"=>"4"}
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '4') LIMIT 1[0m
+ [4;36;1mPhoto Load (1.1ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 4 ) LIMIT 11 OFFSET 0[0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 25ms (View: 13, DB: 1) | 200 OK [http://localhost/categories/4/photos]
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 07:25:47) [GET]
+ [4;35;1mCategory Load (0.8ms)[0m [0mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering categories/index
+Completed in 11ms (View: 5, DB: 1) | 200 OK [http://localhost/categories]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:25:49) [GET]
+ Parameters: {"category_id"=>"1"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;35;1mPhoto Load (1.5ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 0[0m
+ [4;36;1mSQL (0.3ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 81ms (View: 14, DB: 2) | 200 OK [http://localhost/categories/1/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:26:27) [GET]
+ Parameters: {"category_id"=>"1"}
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;36;1mPhoto Load (1.3ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 0[0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 29ms (View: 14, DB: 2) | 200 OK [http://localhost/categories/1/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:26:51) [GET]
+ Parameters: {"category_id"=>"1"}
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;35;1mPhoto Load (2.1ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 0[0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 31ms (View: 14, DB: 2) | 200 OK [http://localhost/categories/1/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:27:10) [GET]
+ Parameters: {"category_id"=>"1"}
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;36;1mPhoto Load (1.4ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 0[0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 32ms (View: 14, DB: 2) | 200 OK [http://localhost/categories/1/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:42:34) [GET]
+ Parameters: {"category_id"=>"1"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;35;1mPhoto Load (1.4ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 0[0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 28ms (View: 14, DB: 2) | 200 OK [http://localhost/categories/1/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:42:54) [GET]
+ Parameters: {"category_id"=>"1"}
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;36;1mPhoto Load (1.4ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 0[0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 35ms (View: 18, DB: 2) | 200 OK [http://localhost/categories/1/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:43:14) [GET]
+ Parameters: {"category_id"=>"1"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;35;1mPhoto Load (1.4ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 0[0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 31ms (View: 14, DB: 2) | 200 OK [http://localhost/categories/1/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:43:28) [GET]
+ Parameters: {"category_id"=>"1", "page"=>"2"}
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;36;1mPhoto Load (0.6ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 11[0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 22ms (View: 9, DB: 1) | 200 OK [http://localhost/categories/1/photos?page=2]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:43:30) [GET]
+ Parameters: {"category_id"=>"1", "page"=>"1"}
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;36;1mPhoto Load (1.4ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 0[0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 29ms (View: 14, DB: 2) | 200 OK [http://localhost/categories/1/photos?page=1]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:44:00) [GET]
+ Parameters: {"category_id"=>"1", "page"=>"1"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;35;1mPhoto Load (1.5ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 0[0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+ERROR: compiling _run_erb_app47views47photos47index46html46erb RAISED compile error
+/Users/danbee/Sites/rails/photos/app/views/photos/index.html.erb:38: syntax error, unexpected kENSURE, expecting kEND
+/Users/danbee/Sites/rails/photos/app/views/photos/index.html.erb:40: syntax error, unexpected $end, expecting kEND
+Function body: def _run_erb_app47views47photos47index46html46erb(local_assigns)
+ old_output_buffer = output_buffer;;@output_buffer = ''; __in_erb_template=true ; @output_buffer.concat "\t\n\t
\n\t\n\t\t"
+
+
+; if @photos.previous_page do
+@output_buffer.concat "\t\t\t"; @output_buffer.concat(( link_to '
←
', { :page => @photos.previous_page }, :class => 'prev-link' ).to_s); @output_buffer.concat "\n\t\t"
+; end ; @output_buffer.concat "\n\t\t"
+; @output_buffer.concat(( link_to '
→
', { :page => @photos.next_page }, :class => 'next-link' ).to_s); @output_buffer.concat "\n\t
\n\n\n\n\n"
+
+
+
+
+
+; if @category ; @output_buffer.concat "\n\t
\n\t\t"
+; @output_buffer.concat(( link_to '
'+h(@category.name.downcase)+' ↑
', categories_url ).to_s); @output_buffer.concat "\n\t
\n"
+
+; else ; @output_buffer.concat "\n\t
\n\t\t
all photos \n\t\n"
+
+
+
+; end ; @output_buffer.concat "\n\n"
+
+; @num_blank = 11 - @num_photos
+@output_buffer.concat "\n"
+; @photos.each do |photo| ; @output_buffer.concat "\n\n
"; @output_buffer.concat(( link_to ' ', photo.photo.url, :rel => 'photo', :class => 'fancy' ).to_s); @output_buffer.concat "
\n\n"
+
+; end ; @output_buffer.concat "\n\n"
+
+; @num_blank.times do ; @output_buffer.concat "\n\t
\n\t
\n"
+
+
+; end ; @output_buffer.concat "\n\n
\n"
+
+
+; @output_buffer
+ ensure
+ self.output_buffer = old_output_buffer
+ end
+Backtrace: /Users/danbee/Sites/rails/photos/app/views/photos/index.html.erb:40:in `compile!'
+/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_view/renderable.rb:61:in `compile'
+/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_view/renderable.rb:28:in `render'
+/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_view/template.rb:205:in `render_template'
+/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_view/base.rb:265:in `render_without_parent'
+/Users/danbee/Sites/rails/photos/vendor/plugins/typus/lib/vendor/inherit_views.rb:193:in `render'
+/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_view/base.rb:348:in `_render_with_layout'
+/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_view/base.rb:262:in `render_without_parent'
+/Users/danbee/Sites/rails/photos/vendor/plugins/typus/lib/vendor/inherit_views.rb:193:in `render'
+/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/base.rb:1250:in `render_for_file'
+/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/base.rb:936:in `render_without_benchmark'
+/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/benchmarking.rb:51:in `render'
+/Library/Ruby/Gems/1.8/gems/activesupport-2.3.8/lib/active_support/core_ext/benchmark.rb:17:in `ms'
+/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/benchmark.rb:308:in `realtime'
+/Library/Ruby/Gems/1.8/gems/activesupport-2.3.8/lib/active_support/core_ext/benchmark.rb:17:in `ms'
+/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/benchmarking.rb:51:in `render'
+/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/base.rb:1326:in `default_render'
+/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/base.rb:1332:in `perform_action_without_filters'
+/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/filters.rb:617:in `call_filters'
+/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/filters.rb:610:in `perform_action_without_benchmark'
+/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
+/Library/Ruby/Gems/1.8/gems/activesupport-2.3.8/lib/active_support/core_ext/benchmark.rb:17:in `ms'
+/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/benchmark.rb:308:in `realtime'
+/Library/Ruby/Gems/1.8/gems/activesupport-2.3.8/lib/active_support/core_ext/benchmark.rb:17:in `ms'
+/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
+/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/rescue.rb:160:in `perform_action_without_flash'
+/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/flash.rb:151:in `perform_action'
+/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/base.rb:532:in `send'
+/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/base.rb:532:in `process_without_filters'
+/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/filters.rb:606:in `process'
+/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/base.rb:391:in `process'
+/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/base.rb:386:in `call'
+/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/routing/route_set.rb:438:in `call'
+/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/dispatcher.rb:87:in `dispatch'
+/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/dispatcher.rb:121:in `_call'
+/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/dispatcher.rb:130:in `build_middleware_stack'
+/Library/Ruby/Gems/1.8/gems/activerecord-2.3.8/lib/active_record/query_cache.rb:29:in `call'
+/Library/Ruby/Gems/1.8/gems/activerecord-2.3.8/lib/active_record/query_cache.rb:29:in `call'
+/Library/Ruby/Gems/1.8/gems/activerecord-2.3.8/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in `cache'
+/Library/Ruby/Gems/1.8/gems/activerecord-2.3.8/lib/active_record/query_cache.rb:9:in `cache'
+/Library/Ruby/Gems/1.8/gems/activerecord-2.3.8/lib/active_record/query_cache.rb:28:in `call'
+/Library/Ruby/Gems/1.8/gems/activerecord-2.3.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in `call'
+/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/string_coercion.rb:25:in `call'
+/Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/head.rb:9:in `call'
+/Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/methodoverride.rb:24:in `call'
+/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/params_parser.rb:15:in `call'
+/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/session/cookie_store.rb:99:in `call'
+/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/failsafe.rb:26:in `call'
+/Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/lock.rb:11:in `call'
+/Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/lock.rb:11:in `synchronize'
+/Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/lock.rb:11:in `call'
+/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/dispatcher.rb:114:in `call'
+/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/reloader.rb:34:in `run'
+/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/dispatcher.rb:108:in `call'
+/Library/Ruby/Gems/1.8/gems/rails-2.3.8/lib/rails/rack/static.rb:31:in `call'
+/Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/urlmap.rb:47:in `call'
+/Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/urlmap.rb:41:in `each'
+/Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/urlmap.rb:41:in `call'
+/Library/Ruby/Gems/1.8/gems/rails-2.3.8/lib/rails/rack/debugger.rb:19:in `call'
+/Library/Ruby/Gems/1.8/gems/rails-2.3.8/lib/rails/rack/log_tailer.rb:17:in `call'
+/Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/content_length.rb:13:in `call'
+/Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/chunked.rb:15:in `call'
+/Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/handler/mongrel.rb:67:in `process'
+/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:159:in `process_client'
+/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `each'
+/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `process_client'
+/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run'
+/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `initialize'
+/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `new'
+/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run'
+/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `initialize'
+/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `new'
+/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `run'
+/Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/handler/mongrel.rb:38:in `run'
+/Library/Ruby/Gems/1.8/gems/rails-2.3.8/lib/commands/server.rb:111
+/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
+/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require'
+script/server:3
+
+ActionView::TemplateError (compile error
+/Users/danbee/Sites/rails/photos/app/views/photos/index.html.erb:38: syntax error, unexpected kENSURE, expecting kEND
+/Users/danbee/Sites/rails/photos/app/views/photos/index.html.erb:40: syntax error, unexpected $end, expecting kEND) on line #38 of app/views/photos/index.html.erb:
+35:
+36:
+
+ app/views/photos/index.html.erb:40:in `compile!'
+
+Rendered rescues/_trace (36.8ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:44:08) [GET]
+ Parameters: {"category_id"=>"1", "page"=>"1"}
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;36;1mPhoto Load (1.7ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 0[0m
+ [4;35;1mSQL (0.3ms)[0m [0mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 44ms (View: 22, DB: 2) | 200 OK [http://localhost/categories/1/photos?page=1]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:44:10) [GET]
+ Parameters: {"category_id"=>"1", "page"=>"2"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;35;1mPhoto Load (0.7ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 11[0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 92ms (View: 11, DB: 1) | 200 OK [http://localhost/categories/1/photos?page=2]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:44:12) [GET]
+ Parameters: {"category_id"=>"1", "page"=>"1"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;35;1mPhoto Load (2.3ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 0[0m
+ [4;36;1mSQL (0.3ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 39ms (View: 19, DB: 3) | 200 OK [http://localhost/categories/1/photos?page=1]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:44:30) [GET]
+ Parameters: {"category_id"=>"1", "page"=>"1"}
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;36;1mPhoto Load (1.6ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 0[0m
+ [4;35;1mSQL (0.3ms)[0m [0mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 40ms (View: 20, DB: 2) | 200 OK [http://localhost/categories/1/photos?page=1]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:44:31) [GET]
+ Parameters: {"category_id"=>"1", "page"=>"2"}
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;35;1mPhoto Load (1.1ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 11[0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 35ms (View: 15, DB: 1) | 200 OK [http://localhost/categories/1/photos?page=2]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:44:33) [GET]
+ Parameters: {"category_id"=>"1", "page"=>"1"}
+ [4;36;1mCategory Load (0.5ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;35;1mPhoto Load (3.1ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 0[0m
+ [4;36;1mSQL (0.4ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 56ms (View: 24, DB: 4) | 200 OK [http://localhost/categories/1/photos?page=1]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:44:35) [GET]
+ [4;35;1mPhoto Load (15.4ms)[0m [0mSELECT * FROM "photos" LIMIT 11 OFFSET 0[0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 42ms (View: 18, DB: 16) | 200 OK [http://localhost/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:44:38) [GET]
+ Parameters: {"page"=>"2"}
+ [4;35;1mPhoto Load (1.6ms)[0m [0mSELECT * FROM "photos" LIMIT 11 OFFSET 11[0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 27ms (View: 16, DB: 2) | 200 OK [http://localhost/photos?page=2]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:44:39) [GET]
+ Parameters: {"page"=>"1"}
+ [4;35;1mPhoto Load (1.5ms)[0m [0mSELECT * FROM "photos" LIMIT 11 OFFSET 0[0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 25ms (View: 14, DB: 2) | 200 OK [http://localhost/photos?page=1]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:44:45) [GET]
+ Parameters: {"category_id"=>"1", "page"=>"2"}
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;36;1mPhoto Load (0.5ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 11[0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 25ms (View: 12, DB: 1) | 200 OK [http://localhost/categories/1/photos?page=2]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:44:54) [GET]
+ Parameters: {"category_id"=>"1", "page"=>"1"}
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;36;1mPhoto Load (1.6ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 0[0m
+ [4;35;1mSQL (0.3ms)[0m [0mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 34ms (View: 14, DB: 2) | 200 OK [http://localhost/categories/1/photos?page=1]
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 07:45:19) [GET]
+ [4;36;1mCategory Load (0.9ms)[0m [0;1mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering categories/index
+Completed in 52ms (View: 46, DB: 1) | 200 OK [http://localhost/categories]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:45:20) [GET]
+ Parameters: {"category_id"=>"4"}
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '4') LIMIT 1[0m
+ [4;36;1mPhoto Load (1.1ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 4 ) LIMIT 11 OFFSET 0[0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 25ms (View: 13, DB: 1) | 200 OK [http://localhost/categories/4/photos]
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 07:45:40) [GET]
+ [4;35;1mCategory Load (0.9ms)[0m [0mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering categories/index
+Completed in 12ms (View: 5, DB: 1) | 200 OK [http://localhost/categories]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:45:41) [GET]
+ Parameters: {"category_id"=>"5"}
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '5') LIMIT 1[0m
+ [4;35;1mPhoto Load (0.6ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 ) LIMIT 11 OFFSET 0[0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 26ms (View: 9, DB: 1) | 200 OK [http://localhost/categories/5/photos]
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 07:45:43) [GET]
+ [4;36;1mCategory Load (1.0ms)[0m [0;1mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering categories/index
+Completed in 12ms (View: 5, DB: 1) | 200 OK [http://localhost/categories]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:45:44) [GET]
+ Parameters: {"category_id"=>"1"}
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;36;1mPhoto Load (1.7ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 0[0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 32ms (View: 15, DB: 2) | 200 OK [http://localhost/categories/1/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:45:45) [GET]
+ Parameters: {"category_id"=>"1", "page"=>"2"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;35;1mPhoto Load (0.6ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 11[0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 21ms (View: 9, DB: 1) | 200 OK [http://localhost/categories/1/photos?page=2]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:45:46) [GET]
+ Parameters: {"category_id"=>"1", "page"=>"1"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;35;1mPhoto Load (1.4ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 0[0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 28ms (View: 13, DB: 2) | 200 OK [http://localhost/categories/1/photos?page=1]
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 07:45:48) [GET]
+ [4;35;1mCategory Load (0.8ms)[0m [0mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering categories/index
+Completed in 11ms (View: 5, DB: 1) | 200 OK [http://localhost/categories]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:45:50) [GET]
+ Parameters: {"category_id"=>"6"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '6') LIMIT 1[0m
+ [4;35;1mPhoto Load (0.6ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 6 ) LIMIT 11 OFFSET 0[0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 20ms (View: 8, DB: 1) | 200 OK [http://localhost/categories/6/photos]
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 07:45:56) [GET]
+ [4;36;1mCategory Load (0.9ms)[0m [0;1mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering categories/index
+Completed in 10ms (View: 5, DB: 1) | 200 OK [http://localhost/categories]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:46:19) [GET]
+ Parameters: {"category_id"=>"4"}
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '4') LIMIT 1[0m
+ [4;36;1mPhoto Load (1.3ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 4 ) LIMIT 11 OFFSET 0[0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 82ms (View: 14, DB: 1) | 200 OK [http://localhost/categories/4/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:46:21) [GET]
+ Parameters: {"category_id"=>"4"}
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '4') LIMIT 1[0m
+ [4;36;1mPhoto Load (1.2ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 4 ) LIMIT 11 OFFSET 0[0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 33ms (View: 16, DB: 2) | 200 OK [http://localhost/categories/4/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:46:31) [GET]
+ Parameters: {"category_id"=>"1"}
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;36;1mPhoto Load (1.4ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 0[0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 28ms (View: 13, DB: 2) | 200 OK [http://localhost/categories/1/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:46:41) [GET]
+ Parameters: {"category_id"=>"1", "page"=>"2"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;35;1mPhoto Load (0.6ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 11[0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 21ms (View: 9, DB: 1) | 200 OK [http://localhost/categories/1/photos?page=2]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:46:43) [GET]
+ Parameters: {"category_id"=>"1", "page"=>"1"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;35;1mPhoto Load (1.4ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 0[0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 29ms (View: 15, DB: 2) | 200 OK [http://localhost/categories/1/photos?page=1]
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 07:46:44) [GET]
+ [4;35;1mCategory Load (0.8ms)[0m [0mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering categories/index
+Completed in 10ms (View: 5, DB: 1) | 200 OK [http://localhost/categories]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:46:59) [GET]
+ Parameters: {"page"=>"2"}
+ [4;36;1mPhoto Load (1.7ms)[0m [0;1mSELECT * FROM "photos" LIMIT 11 OFFSET 11[0m
+ [4;35;1mSQL (0.1ms)[0m [0mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 79ms (View: 13, DB: 2) | 200 OK [http://localhost/photos?page=2]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:47:01) [GET]
+ Parameters: {"page"=>"1"}
+ [4;36;1mPhoto Load (1.4ms)[0m [0;1mSELECT * FROM "photos" LIMIT 11 OFFSET 0[0m
+ [4;35;1mSQL (0.1ms)[0m [0mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 22ms (View: 12, DB: 2) | 200 OK [http://localhost/photos?page=1]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:47:01) [GET]
+ Parameters: {"page"=>"2"}
+ [4;36;1mPhoto Load (1.3ms)[0m [0;1mSELECT * FROM "photos" LIMIT 11 OFFSET 11[0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 22ms (View: 12, DB: 2) | 200 OK [http://localhost/photos?page=2]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:47:02) [GET]
+ Parameters: {"page"=>"1"}
+ [4;36;1mPhoto Load (1.4ms)[0m [0;1mSELECT * FROM "photos" LIMIT 11 OFFSET 0[0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "photos" [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 21ms (View: 12, DB: 2) | 200 OK [http://localhost/photos?page=1]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:47:09) [GET]
+ Parameters: {"category_id"=>"1"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;35;1mPhoto Load (1.3ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 0[0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 28ms (View: 13, DB: 2) | 200 OK [http://localhost/categories/1/photos]
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 07:47:15) [GET]
+ [4;35;1mCategory Load (0.9ms)[0m [0mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering categories/index
+Completed in 11ms (View: 5, DB: 1) | 200 OK [http://localhost/categories]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:47:16) [GET]
+ Parameters: {"category_id"=>"5"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '5') LIMIT 1[0m
+ [4;35;1mPhoto Load (0.3ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 ) LIMIT 11 OFFSET 0[0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 18ms (View: 7, DB: 1) | 200 OK [http://localhost/categories/5/photos]
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 07:47:17) [GET]
+ [4;36;1mCategory Load (0.9ms)[0m [0;1mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering categories/index
+Completed in 65ms (View: 59, DB: 1) | 200 OK [http://localhost/categories]
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 07:47:36) [GET]
+ [4;35;1mCategory Load (0.8ms)[0m [0mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering categories/index
+Completed in 13ms (View: 8, DB: 1) | 200 OK [http://localhost/categories]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:47:39) [GET]
+ Parameters: {"category_id"=>"1"}
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;35;1mPhoto Load (1.4ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 0[0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 29ms (View: 13, DB: 2) | 200 OK [http://localhost/categories/1/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:47:41) [GET]
+ Parameters: {"category_id"=>"2"}
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '2') LIMIT 1[0m
+ [4;36;1mPhoto Load (0.7ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 2 ) LIMIT 11 OFFSET 0[0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 22ms (View: 9, DB: 1) | 200 OK [http://localhost/categories/2/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:47:43) [GET]
+ Parameters: {"category_id"=>"6"}
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '6') LIMIT 1[0m
+ [4;36;1mPhoto Load (0.5ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 6 ) LIMIT 11 OFFSET 0[0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 22ms (View: 8, DB: 1) | 200 OK [http://localhost/categories/6/photos]
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 07:47:52) [GET]
+ [4;35;1mCategory Load (0.8ms)[0m [0mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering categories/index
+Completed in 15ms (View: 9, DB: 1) | 200 OK [http://localhost/categories]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:48:17) [GET]
+ Parameters: {"category_id"=>"1"}
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;35;1mPhoto Load (1.4ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 0[0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 31ms (View: 17, DB: 2) | 200 OK [http://localhost/categories/1/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:48:22) [GET]
+ Parameters: {"category_id"=>"2"}
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '2') LIMIT 1[0m
+ [4;36;1mPhoto Load (0.6ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 2 ) LIMIT 11 OFFSET 0[0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 22ms (View: 9, DB: 1) | 200 OK [http://localhost/categories/2/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 08:01:23) [GET]
+ Parameters: {"category_id"=>"1"}
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;36;1mPhoto Load (1.4ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 0[0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 29ms (View: 13, DB: 2) | 200 OK [http://localhost/categories/1/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 08:01:25) [GET]
+ Parameters: {"category_id"=>"1", "page"=>"2"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;35;1mPhoto Load (0.5ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 11[0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 20ms (View: 9, DB: 1) | 200 OK [http://localhost/categories/1/photos?page=2]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 08:01:27) [GET]
+ Parameters: {"category_id"=>"1", "page"=>"1"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;35;1mPhoto Load (1.4ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 0[0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 31ms (View: 15, DB: 2) | 200 OK [http://localhost/categories/1/photos?page=1]
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 08:01:29) [GET]
+ [4;35;1mCategory Load (1.0ms)[0m [0mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering categories/index
+Completed in 11ms (View: 5, DB: 1) | 200 OK [http://localhost/categories]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 08:01:30) [GET]
+ Parameters: {"category_id"=>"6"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '6') LIMIT 1[0m
+ [4;35;1mPhoto Load (0.7ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 6 ) LIMIT 11 OFFSET 0[0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 20ms (View: 8, DB: 1) | 200 OK [http://localhost/categories/6/photos]
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 08:01:32) [GET]
+ [4;36;1mCategory Load (0.8ms)[0m [0;1mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering categories/index
+Completed in 10ms (View: 4, DB: 1) | 200 OK [http://localhost/categories]
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 08:02:04) [GET]
+ [4;35;1mCategory Load (0.9ms)[0m [0mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering categories/index
+Completed in 17ms (View: 10, DB: 1) | 200 OK [http://localhost/categories]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 08:02:07) [GET]
+ Parameters: {"category_id"=>"1"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;35;1mPhoto Load (1.4ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 0[0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 29ms (View: 14, DB: 2) | 200 OK [http://localhost/categories/1/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 08:02:08) [GET]
+ Parameters: {"category_id"=>"3"}
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '3') LIMIT 1[0m
+ [4;36;1mPhoto Load (0.5ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 3 ) LIMIT 11 OFFSET 0[0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 19ms (View: 7, DB: 1) | 200 OK [http://localhost/categories/3/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 08:03:01) [GET]
+ Parameters: {"category_id"=>"1"}
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;36;1mPhoto Load (1.3ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 0[0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 87ms (View: 14, DB: 2) | 200 OK [http://localhost/categories/1/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 08:03:02) [GET]
+ Parameters: {"category_id"=>"1", "page"=>"2"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;35;1mPhoto Load (0.6ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 11[0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 20ms (View: 8, DB: 1) | 200 OK [http://localhost/categories/1/photos?page=2]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 08:03:03) [GET]
+ Parameters: {"category_id"=>"1", "page"=>"1"}
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;35;1mPhoto Load (1.4ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 0[0m
+ [4;36;1mSQL (0.3ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 33ms (View: 16, DB: 2) | 200 OK [http://localhost/categories/1/photos?page=1]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 08:03:20) [GET]
+ Parameters: {"category_id"=>"1", "page"=>"2"}
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;36;1mPhoto Load (0.6ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 11[0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 22ms (View: 9, DB: 1) | 200 OK [http://localhost/categories/1/photos?page=2]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 08:03:28) [GET]
+ Parameters: {"category_id"=>"1", "page"=>"1"}
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;36;1mPhoto Load (1.3ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 0[0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 80ms (View: 64, DB: 2) | 200 OK [http://localhost/categories/1/photos?page=1]
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 08:03:54) [GET]
+ [4;36;1mCategory Load (0.9ms)[0m [0;1mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering categories/index
+Completed in 10ms (View: 5, DB: 1) | 200 OK [http://localhost/categories]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 08:03:57) [GET]
+ Parameters: {"category_id"=>"5"}
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '5') LIMIT 1[0m
+ [4;36;1mPhoto Load (0.4ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 ) LIMIT 11 OFFSET 0[0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 19ms (View: 7, DB: 1) | 200 OK [http://localhost/categories/5/photos]
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 08:04:00) [GET]
+ [4;35;1mCategory Load (0.8ms)[0m [0mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering categories/index
+Completed in 10ms (View: 5, DB: 1) | 200 OK [http://localhost/categories]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 08:04:01) [GET]
+ Parameters: {"category_id"=>"6"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '6') LIMIT 1[0m
+ [4;35;1mPhoto Load (55.0ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 6 ) LIMIT 11 OFFSET 0[0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 75ms (View: 8, DB: 55) | 200 OK [http://localhost/categories/6/photos]
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 08:04:03) [GET]
+ [4;36;1mCategory Load (0.8ms)[0m [0;1mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering categories/index
+Completed in 10ms (View: 4, DB: 1) | 200 OK [http://localhost/categories]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 08:09:19) [GET]
+ Parameters: {"category_id"=>"6"}
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '6') LIMIT 1[0m
+ [4;36;1mPhoto Load (0.5ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 6 ) LIMIT 11 OFFSET 0[0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 20ms (View: 8, DB: 1) | 200 OK [http://localhost/categories/6/photos]
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 08:09:28) [GET]
+ [4;35;1mCategory Load (0.8ms)[0m [0mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering categories/index
+Completed in 11ms (View: 5, DB: 1) | 200 OK [http://localhost/categories]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 08:09:29) [GET]
+ Parameters: {"category_id"=>"1"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;35;1mPhoto Load (1.4ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 0[0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 29ms (View: 14, DB: 2) | 200 OK [http://localhost/categories/1/photos]
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 08:09:32) [GET]
+ [4;35;1mCategory Load (1.2ms)[0m [0mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering categories/index
+Completed in 13ms (View: 5, DB: 1) | 200 OK [http://localhost/categories]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 08:09:33) [GET]
+ Parameters: {"category_id"=>"2"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '2') LIMIT 1[0m
+ [4;35;1mPhoto Load (0.8ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 2 ) LIMIT 11 OFFSET 0[0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 22ms (View: 9, DB: 1) | 200 OK [http://localhost/categories/2/photos]
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 08:09:45) [GET]
+ [4;36;1mCategory Load (0.8ms)[0m [0;1mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering categories/index
+Completed in 10ms (View: 4, DB: 1) | 200 OK [http://localhost/categories]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 08:09:46) [GET]
+ Parameters: {"category_id"=>"5"}
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '5') LIMIT 1[0m
+ [4;36;1mPhoto Load (0.4ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 ) LIMIT 11 OFFSET 0[0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 19ms (View: 7, DB: 1) | 200 OK [http://localhost/categories/5/photos]
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 08:25:48) [GET]
+ [4;35;1mCategory Load (0.8ms)[0m [0mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering categories/index
+Completed in 13ms (View: 7, DB: 1) | 200 OK [http://localhost/categories]
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 08:25:49) [GET]
+ [4;36;1mCategory Load (1.0ms)[0m [0;1mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering categories/index
+Completed in 11ms (View: 5, DB: 1) | 200 OK [http://localhost/categories]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 08:26:05) [GET]
+ Parameters: {"category_id"=>"5"}
+ [4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '5') LIMIT 1[0m
+ [4;36;1mPhoto Load (0.4ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 ) LIMIT 11 OFFSET 0[0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 21ms (View: 7, DB: 1) | 200 OK [http://localhost/categories/5/photos]
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 08:26:10) [GET]
+ [4;35;1mCategory Load (0.8ms)[0m [0mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering categories/index
+Completed in 11ms (View: 5, DB: 1) | 200 OK [http://localhost/categories]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 08:26:10) [GET]
+ Parameters: {"category_id"=>"1"}
+ [4;36;1mCategory Load (0.2ms)[0m [0;1mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;35;1mPhoto Load (1.3ms)[0m [0mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 0[0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 28ms (View: 13, DB: 2) | 200 OK [http://localhost/categories/1/photos]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 08:26:12) [GET]
+ Parameters: {"category_id"=>"1", "page"=>"2"}
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;36;1mPhoto Load (0.5ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 11[0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 21ms (View: 8, DB: 1) | 200 OK [http://localhost/categories/1/photos?page=2]
+
+
+Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 08:26:13) [GET]
+ Parameters: {"category_id"=>"1", "page"=>"1"}
+ [4;35;1mCategory Load (0.2ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1[0m
+ [4;36;1mPhoto Load (1.3ms)[0m [0;1mSELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 0[0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) [0m
+Rendering template within layouts/photos
+Rendering photos/index
+Completed in 29ms (View: 13, DB: 2) | 200 OK [http://localhost/categories/1/photos?page=1]
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 08:26:14) [GET]
+ [4;36;1mCategory Load (0.8ms)[0m [0;1mSELECT * FROM "categories" [0m
+Rendering template within layouts/photos
+Rendering categories/index
+Completed in 10ms (View: 5, DB: 1) | 200 OK [http://localhost/categories]
diff --git a/public/images/admin/fancybox/blank.gif b/public/images/admin/fancybox/blank.gif
new file mode 100644
index 0000000..35d42e8
Binary files /dev/null and b/public/images/admin/fancybox/blank.gif differ
diff --git a/public/images/admin/fancybox/fancy_close.png b/public/images/admin/fancybox/fancy_close.png
new file mode 100644
index 0000000..0703530
Binary files /dev/null and b/public/images/admin/fancybox/fancy_close.png differ
diff --git a/public/images/admin/fancybox/fancy_loading.png b/public/images/admin/fancybox/fancy_loading.png
new file mode 100644
index 0000000..2503017
Binary files /dev/null and b/public/images/admin/fancybox/fancy_loading.png differ
diff --git a/public/images/admin/fancybox/fancy_nav_left.png b/public/images/admin/fancybox/fancy_nav_left.png
new file mode 100644
index 0000000..ebaa6a4
Binary files /dev/null and b/public/images/admin/fancybox/fancy_nav_left.png differ
diff --git a/public/images/admin/fancybox/fancy_nav_right.png b/public/images/admin/fancybox/fancy_nav_right.png
new file mode 100644
index 0000000..873294e
Binary files /dev/null and b/public/images/admin/fancybox/fancy_nav_right.png differ
diff --git a/public/images/admin/fancybox/fancy_shadow_e.png b/public/images/admin/fancybox/fancy_shadow_e.png
new file mode 100644
index 0000000..2eda089
Binary files /dev/null and b/public/images/admin/fancybox/fancy_shadow_e.png differ
diff --git a/public/images/admin/fancybox/fancy_shadow_n.png b/public/images/admin/fancybox/fancy_shadow_n.png
new file mode 100644
index 0000000..69aa10e
Binary files /dev/null and b/public/images/admin/fancybox/fancy_shadow_n.png differ
diff --git a/public/images/admin/fancybox/fancy_shadow_ne.png b/public/images/admin/fancybox/fancy_shadow_ne.png
new file mode 100644
index 0000000..79f6980
Binary files /dev/null and b/public/images/admin/fancybox/fancy_shadow_ne.png differ
diff --git a/public/images/admin/fancybox/fancy_shadow_nw.png b/public/images/admin/fancybox/fancy_shadow_nw.png
new file mode 100644
index 0000000..7182cd9
Binary files /dev/null and b/public/images/admin/fancybox/fancy_shadow_nw.png differ
diff --git a/public/images/admin/fancybox/fancy_shadow_s.png b/public/images/admin/fancybox/fancy_shadow_s.png
new file mode 100644
index 0000000..d8858bf
Binary files /dev/null and b/public/images/admin/fancybox/fancy_shadow_s.png differ
diff --git a/public/images/admin/fancybox/fancy_shadow_se.png b/public/images/admin/fancybox/fancy_shadow_se.png
new file mode 100644
index 0000000..541e3ff
Binary files /dev/null and b/public/images/admin/fancybox/fancy_shadow_se.png differ
diff --git a/public/images/admin/fancybox/fancy_shadow_sw.png b/public/images/admin/fancybox/fancy_shadow_sw.png
new file mode 100644
index 0000000..b451689
Binary files /dev/null and b/public/images/admin/fancybox/fancy_shadow_sw.png differ
diff --git a/public/images/admin/fancybox/fancy_shadow_w.png b/public/images/admin/fancybox/fancy_shadow_w.png
new file mode 100644
index 0000000..8a4e4a8
Binary files /dev/null and b/public/images/admin/fancybox/fancy_shadow_w.png differ
diff --git a/public/images/admin/fancybox/fancy_title_left.png b/public/images/admin/fancybox/fancy_title_left.png
new file mode 100644
index 0000000..6049223
Binary files /dev/null and b/public/images/admin/fancybox/fancy_title_left.png differ
diff --git a/public/images/admin/fancybox/fancy_title_main.png b/public/images/admin/fancybox/fancy_title_main.png
new file mode 100644
index 0000000..8044271
Binary files /dev/null and b/public/images/admin/fancybox/fancy_title_main.png differ
diff --git a/public/images/admin/fancybox/fancy_title_over.png b/public/images/admin/fancybox/fancy_title_over.png
new file mode 100644
index 0000000..d9f458f
Binary files /dev/null and b/public/images/admin/fancybox/fancy_title_over.png differ
diff --git a/public/images/admin/fancybox/fancy_title_right.png b/public/images/admin/fancybox/fancy_title_right.png
new file mode 100644
index 0000000..e36d9db
Binary files /dev/null and b/public/images/admin/fancybox/fancy_title_right.png differ
diff --git a/public/images/admin/ui-icons.png b/public/images/admin/ui-icons.png
new file mode 100644
index 0000000..8ede620
Binary files /dev/null and b/public/images/admin/ui-icons.png differ
diff --git a/public/javascripts/admin/application.js b/public/javascripts/admin/application.js
new file mode 100644
index 0000000..4789b11
--- /dev/null
+++ b/public/javascripts/admin/application.js
@@ -0,0 +1,2 @@
+// Place your application-specific JavaScript functions and classes for
+// Typus here.
diff --git a/public/javascripts/admin/jquery-1.4.1.min.js b/public/javascripts/admin/jquery-1.4.1.min.js
new file mode 100644
index 0000000..0c7294c
--- /dev/null
+++ b/public/javascripts/admin/jquery-1.4.1.min.js
@@ -0,0 +1,152 @@
+/*!
+ * jQuery JavaScript Library v1.4.1
+ * http://jquery.com/
+ *
+ * Copyright 2010, John Resig
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * Includes Sizzle.js
+ * http://sizzlejs.com/
+ * Copyright 2010, The Dojo Foundation
+ * Released under the MIT, BSD, and GPL Licenses.
+ *
+ * Date: Mon Jan 25 19:43:33 2010 -0500
+ */
+(function(z,v){function la(){if(!c.isReady){try{r.documentElement.doScroll("left")}catch(a){setTimeout(la,1);return}c.ready()}}function Ma(a,b){b.src?c.ajax({url:b.src,async:false,dataType:"script"}):c.globalEval(b.text||b.textContent||b.innerHTML||"");b.parentNode&&b.parentNode.removeChild(b)}function X(a,b,d,f,e,i){var j=a.length;if(typeof b==="object"){for(var n in b)X(a,n,b[n],f,e,d);return a}if(d!==v){f=!i&&f&&c.isFunction(d);for(n=0;n-1){i=j.data;i.beforeFilter&&i.beforeFilter[a.type]&&!i.beforeFilter[a.type](a)||f.push(j.selector)}else delete x[o]}i=c(a.target).closest(f,
+a.currentTarget);m=0;for(s=i.length;m)[^>]*$|^#([\w-]+)$/,Qa=/^.[^:#\[\.,]*$/,Ra=/\S/,Sa=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,Ta=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,O=navigator.userAgent,
+va=false,P=[],L,$=Object.prototype.toString,aa=Object.prototype.hasOwnProperty,ba=Array.prototype.push,Q=Array.prototype.slice,wa=Array.prototype.indexOf;c.fn=c.prototype={init:function(a,b){var d,f;if(!a)return this;if(a.nodeType){this.context=this[0]=a;this.length=1;return this}if(typeof a==="string")if((d=Pa.exec(a))&&(d[1]||!b))if(d[1]){f=b?b.ownerDocument||b:r;if(a=Ta.exec(a))if(c.isPlainObject(b)){a=[r.createElement(a[1])];c.fn.attr.call(a,b,true)}else a=[f.createElement(a[1])];else{a=ra([d[1]],
+[f]);a=(a.cacheable?a.fragment.cloneNode(true):a.fragment).childNodes}}else{if(b=r.getElementById(d[2])){if(b.id!==d[2])return S.find(a);this.length=1;this[0]=b}this.context=r;this.selector=a;return this}else if(!b&&/^\w+$/.test(a)){this.selector=a;this.context=r;a=r.getElementsByTagName(a)}else return!b||b.jquery?(b||S).find(a):c(b).find(a);else if(c.isFunction(a))return S.ready(a);if(a.selector!==v){this.selector=a.selector;this.context=a.context}return c.isArray(a)?this.setArray(a):c.makeArray(a,
+this)},selector:"",jquery:"1.4.1",length:0,size:function(){return this.length},toArray:function(){return Q.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this.slice(a)[0]:this[a]},pushStack:function(a,b,d){a=c(a||null);a.prevObject=this;a.context=this.context;if(b==="find")a.selector=this.selector+(this.selector?" ":"")+d;else if(b)a.selector=this.selector+"."+b+"("+d+")";return a},setArray:function(a){this.length=0;ba.apply(this,a);return this},each:function(a,b){return c.each(this,
+a,b)},ready:function(a){c.bindReady();if(c.isReady)a.call(r,c);else P&&P.push(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(Q.apply(this,arguments),"slice",Q.call(arguments).join(","))},map:function(a){return this.pushStack(c.map(this,function(b,d){return a.call(b,d,b)}))},end:function(){return this.prevObject||c(null)},push:ba,sort:[].sort,splice:[].splice};
+c.fn.init.prototype=c.fn;c.extend=c.fn.extend=function(){var a=arguments[0]||{},b=1,d=arguments.length,f=false,e,i,j,n;if(typeof a==="boolean"){f=a;a=arguments[1]||{};b=2}if(typeof a!=="object"&&!c.isFunction(a))a={};if(d===b){a=this;--b}for(;ba ";var e=d.getElementsByTagName("*"),i=d.getElementsByTagName("a")[0];if(!(!e||!e.length||!i)){c.support=
+{leadingWhitespace:d.firstChild.nodeType===3,tbody:!d.getElementsByTagName("tbody").length,htmlSerialize:!!d.getElementsByTagName("link").length,style:/red/.test(i.getAttribute("style")),hrefNormalized:i.getAttribute("href")==="/a",opacity:/^0.55$/.test(i.style.opacity),cssFloat:!!i.style.cssFloat,checkOn:d.getElementsByTagName("input")[0].value==="on",optSelected:r.createElement("select").appendChild(r.createElement("option")).selected,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null};
+b.type="text/javascript";try{b.appendChild(r.createTextNode("window."+f+"=1;"))}catch(j){}a.insertBefore(b,a.firstChild);if(z[f]){c.support.scriptEval=true;delete z[f]}a.removeChild(b);if(d.attachEvent&&d.fireEvent){d.attachEvent("onclick",function n(){c.support.noCloneEvent=false;d.detachEvent("onclick",n)});d.cloneNode(true).fireEvent("onclick")}d=r.createElement("div");d.innerHTML=" ";a=r.createDocumentFragment();a.appendChild(d.firstChild);
+c.support.checkClone=a.cloneNode(true).cloneNode(true).lastChild.checked;c(function(){var n=r.createElement("div");n.style.width=n.style.paddingLeft="1px";r.body.appendChild(n);c.boxModel=c.support.boxModel=n.offsetWidth===2;r.body.removeChild(n).style.display="none"});a=function(n){var o=r.createElement("div");n="on"+n;var m=n in o;if(!m){o.setAttribute(n,"return;");m=typeof o[n]==="function"}return m};c.support.submitBubbles=a("submit");c.support.changeBubbles=a("change");a=b=d=e=i=null}})();c.props=
+{"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var G="jQuery"+J(),Ua=0,xa={},Va={};c.extend({cache:{},expando:G,noData:{embed:true,object:true,applet:true},data:function(a,b,d){if(!(a.nodeName&&c.noData[a.nodeName.toLowerCase()])){a=a==z?xa:a;var f=a[G],e=c.cache;if(!b&&!f)return null;f||(f=++Ua);if(typeof b==="object"){a[G]=f;e=e[f]=c.extend(true,
+{},b)}else e=e[f]?e[f]:typeof d==="undefined"?Va:(e[f]={});if(d!==v){a[G]=f;e[b]=d}return typeof b==="string"?e[b]:e}},removeData:function(a,b){if(!(a.nodeName&&c.noData[a.nodeName.toLowerCase()])){a=a==z?xa:a;var d=a[G],f=c.cache,e=f[d];if(b){if(e){delete e[b];c.isEmptyObject(e)&&c.removeData(a)}}else{try{delete a[G]}catch(i){a.removeAttribute&&a.removeAttribute(G)}delete f[d]}}}});c.fn.extend({data:function(a,b){if(typeof a==="undefined"&&this.length)return c.data(this[0]);else if(typeof a==="object")return this.each(function(){c.data(this,
+a)});var d=a.split(".");d[1]=d[1]?"."+d[1]:"";if(b===v){var f=this.triggerHandler("getData"+d[1]+"!",[d[0]]);if(f===v&&this.length)f=c.data(this[0],a);return f===v&&d[1]?this.data(d[0]):f}else return this.trigger("setData"+d[1]+"!",[d[0],b]).each(function(){c.data(this,a,b)})},removeData:function(a){return this.each(function(){c.removeData(this,a)})}});c.extend({queue:function(a,b,d){if(a){b=(b||"fx")+"queue";var f=c.data(a,b);if(!d)return f||[];if(!f||c.isArray(d))f=c.data(a,b,c.makeArray(d));else f.push(d);
+return f}},dequeue:function(a,b){b=b||"fx";var d=c.queue(a,b),f=d.shift();if(f==="inprogress")f=d.shift();if(f){b==="fx"&&d.unshift("inprogress");f.call(a,function(){c.dequeue(a,b)})}}});c.fn.extend({queue:function(a,b){if(typeof a!=="string"){b=a;a="fx"}if(b===v)return c.queue(this[0],a);return this.each(function(){var d=c.queue(this,a,b);a==="fx"&&d[0]!=="inprogress"&&c.dequeue(this,a)})},dequeue:function(a){return this.each(function(){c.dequeue(this,a)})},delay:function(a,b){a=c.fx?c.fx.speeds[a]||
+a:a;b=b||"fx";return this.queue(b,function(){var d=this;setTimeout(function(){c.dequeue(d,b)},a)})},clearQueue:function(a){return this.queue(a||"fx",[])}});var ya=/[\n\t]/g,ca=/\s+/,Wa=/\r/g,Xa=/href|src|style/,Ya=/(button|input)/i,Za=/(button|input|object|select|textarea)/i,$a=/^(a|area)$/i,za=/radio|checkbox/;c.fn.extend({attr:function(a,b){return X(this,a,b,true,c.attr)},removeAttr:function(a){return this.each(function(){c.attr(this,a,"");this.nodeType===1&&this.removeAttribute(a)})},addClass:function(a){if(c.isFunction(a))return this.each(function(o){var m=
+c(this);m.addClass(a.call(this,o,m.attr("class")))});if(a&&typeof a==="string")for(var b=(a||"").split(ca),d=0,f=this.length;d-1)return true;return false},val:function(a){if(a===v){var b=this[0];if(b){if(c.nodeName(b,"option"))return(b.attributes.value||
+{}).specified?b.value:b.text;if(c.nodeName(b,"select")){var d=b.selectedIndex,f=[],e=b.options;b=b.type==="select-one";if(d<0)return null;var i=b?d:0;for(d=b?d+1:e.length;i=0;else if(c.nodeName(this,"select")){var x=c.makeArray(s);c("option",this).each(function(){this.selected=c.inArray(c(this).val(),x)>=0});if(!x.length)this.selectedIndex=-1}else this.value=s}})}});c.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(a,b,d,f){if(!a||a.nodeType===3||a.nodeType===8)return v;if(f&&b in c.attrFn)return c(a)[b](d);
+f=a.nodeType!==1||!c.isXMLDoc(a);var e=d!==v;b=f&&c.props[b]||b;if(a.nodeType===1){var i=Xa.test(b);if(b in a&&f&&!i){if(e){b==="type"&&Ya.test(a.nodeName)&&a.parentNode&&c.error("type property can't be changed");a[b]=d}if(c.nodeName(a,"form")&&a.getAttributeNode(b))return a.getAttributeNode(b).nodeValue;if(b==="tabIndex")return(b=a.getAttributeNode("tabIndex"))&&b.specified?b.value:Za.test(a.nodeName)||$a.test(a.nodeName)&&a.href?0:v;return a[b]}if(!c.support.style&&f&&b==="style"){if(e)a.style.cssText=
+""+d;return a.style.cssText}e&&a.setAttribute(b,""+d);a=!c.support.hrefNormalized&&f&&i?a.getAttribute(b,2):a.getAttribute(b);return a===null?v:a}return c.style(a,b,d)}});var ab=function(a){return a.replace(/[^\w\s\.\|`]/g,function(b){return"\\"+b})};c.event={add:function(a,b,d,f){if(!(a.nodeType===3||a.nodeType===8)){if(a.setInterval&&a!==z&&!a.frameElement)a=z;if(!d.guid)d.guid=c.guid++;if(f!==v){d=c.proxy(d);d.data=f}var e=c.data(a,"events")||c.data(a,"events",{}),i=c.data(a,"handle"),j;if(!i){j=
+function(){return typeof c!=="undefined"&&!c.event.triggered?c.event.handle.apply(j.elem,arguments):v};i=c.data(a,"handle",j)}if(i){i.elem=a;b=b.split(/\s+/);for(var n,o=0;n=b[o++];){var m=n.split(".");n=m.shift();if(o>1){d=c.proxy(d);if(f!==v)d.data=f}d.type=m.slice(0).sort().join(".");var s=e[n],x=this.special[n]||{};if(!s){s=e[n]={};if(!x.setup||x.setup.call(a,f,m,d)===false)if(a.addEventListener)a.addEventListener(n,i,false);else a.attachEvent&&a.attachEvent("on"+n,i)}if(x.add)if((m=x.add.call(a,
+d,f,m,s))&&c.isFunction(m)){m.guid=m.guid||d.guid;m.data=m.data||d.data;m.type=m.type||d.type;d=m}s[d.guid]=d;this.global[n]=true}a=null}}},global:{},remove:function(a,b,d){if(!(a.nodeType===3||a.nodeType===8)){var f=c.data(a,"events"),e,i,j;if(f){if(b===v||typeof b==="string"&&b.charAt(0)===".")for(i in f)this.remove(a,i+(b||""));else{if(b.type){d=b.handler;b=b.type}b=b.split(/\s+/);for(var n=0;i=b[n++];){var o=i.split(".");i=o.shift();var m=!o.length,s=c.map(o.slice(0).sort(),ab);s=new RegExp("(^|\\.)"+
+s.join("\\.(?:.*\\.)?")+"(\\.|$)");var x=this.special[i]||{};if(f[i]){if(d){j=f[i][d.guid];delete f[i][d.guid]}else for(var A in f[i])if(m||s.test(f[i][A].type))delete f[i][A];x.remove&&x.remove.call(a,o,j);for(e in f[i])break;if(!e){if(!x.teardown||x.teardown.call(a,o)===false)if(a.removeEventListener)a.removeEventListener(i,c.data(a,"handle"),false);else a.detachEvent&&a.detachEvent("on"+i,c.data(a,"handle"));e=null;delete f[i]}}}}for(e in f)break;if(!e){if(A=c.data(a,"handle"))A.elem=null;c.removeData(a,
+"events");c.removeData(a,"handle")}}}},trigger:function(a,b,d,f){var e=a.type||a;if(!f){a=typeof a==="object"?a[G]?a:c.extend(c.Event(e),a):c.Event(e);if(e.indexOf("!")>=0){a.type=e=e.slice(0,-1);a.exclusive=true}if(!d){a.stopPropagation();this.global[e]&&c.each(c.cache,function(){this.events&&this.events[e]&&c.event.trigger(a,b,this.handle.elem)})}if(!d||d.nodeType===3||d.nodeType===8)return v;a.result=v;a.target=d;b=c.makeArray(b);b.unshift(a)}a.currentTarget=d;(f=c.data(d,"handle"))&&f.apply(d,
+b);f=d.parentNode||d.ownerDocument;try{if(!(d&&d.nodeName&&c.noData[d.nodeName.toLowerCase()]))if(d["on"+e]&&d["on"+e].apply(d,b)===false)a.result=false}catch(i){}if(!a.isPropagationStopped()&&f)c.event.trigger(a,b,f,true);else if(!a.isDefaultPrevented()){d=a.target;var j;if(!(c.nodeName(d,"a")&&e==="click")&&!(d&&d.nodeName&&c.noData[d.nodeName.toLowerCase()])){try{if(d[e]){if(j=d["on"+e])d["on"+e]=null;this.triggered=true;d[e]()}}catch(n){}if(j)d["on"+e]=j;this.triggered=false}}},handle:function(a){var b,
+d;a=arguments[0]=c.event.fix(a||z.event);a.currentTarget=this;d=a.type.split(".");a.type=d.shift();b=!d.length&&!a.exclusive;var f=new RegExp("(^|\\.)"+d.slice(0).sort().join("\\.(?:.*\\.)?")+"(\\.|$)");d=(c.data(this,"events")||{})[a.type];for(var e in d){var i=d[e];if(b||f.test(i.type)){a.handler=i;a.data=i.data;i=i.apply(this,arguments);if(i!==v){a.result=i;if(i===false){a.preventDefault();a.stopPropagation()}}if(a.isImmediatePropagationStopped())break}}return a.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),
+fix:function(a){if(a[G])return a;var b=a;a=c.Event(b);for(var d=this.props.length,f;d;){f=this.props[--d];a[f]=b[f]}if(!a.target)a.target=a.srcElement||r;if(a.target.nodeType===3)a.target=a.target.parentNode;if(!a.relatedTarget&&a.fromElement)a.relatedTarget=a.fromElement===a.target?a.toElement:a.fromElement;if(a.pageX==null&&a.clientX!=null){b=r.documentElement;d=r.body;a.pageX=a.clientX+(b&&b.scrollLeft||d&&d.scrollLeft||0)-(b&&b.clientLeft||d&&d.clientLeft||0);a.pageY=a.clientY+(b&&b.scrollTop||
+d&&d.scrollTop||0)-(b&&b.clientTop||d&&d.clientTop||0)}if(!a.which&&(a.charCode||a.charCode===0?a.charCode:a.keyCode))a.which=a.charCode||a.keyCode;if(!a.metaKey&&a.ctrlKey)a.metaKey=a.ctrlKey;if(!a.which&&a.button!==v)a.which=a.button&1?1:a.button&2?3:a.button&4?2:0;return a},guid:1E8,proxy:c.proxy,special:{ready:{setup:c.bindReady,teardown:c.noop},live:{add:function(a,b){c.extend(a,b||{});a.guid+=b.selector+b.live;b.liveProxy=a;c.event.add(this,b.live,na,b)},remove:function(a){if(a.length){var b=
+0,d=new RegExp("(^|\\.)"+a[0]+"(\\.|$)");c.each(c.data(this,"events").live||{},function(){d.test(this.type)&&b++});b<1&&c.event.remove(this,a[0],na)}},special:{}},beforeunload:{setup:function(a,b,d){if(this.setInterval)this.onbeforeunload=d;return false},teardown:function(a,b){if(this.onbeforeunload===b)this.onbeforeunload=null}}}};c.Event=function(a){if(!this.preventDefault)return new c.Event(a);if(a&&a.type){this.originalEvent=a;this.type=a.type}else this.type=a;this.timeStamp=J();this[G]=true};
+c.Event.prototype={preventDefault:function(){this.isDefaultPrevented=Z;var a=this.originalEvent;if(a){a.preventDefault&&a.preventDefault();a.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=Z;var a=this.originalEvent;if(a){a.stopPropagation&&a.stopPropagation();a.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=Z;this.stopPropagation()},isDefaultPrevented:Y,isPropagationStopped:Y,isImmediatePropagationStopped:Y};var Aa=function(a){for(var b=
+a.relatedTarget;b&&b!==this;)try{b=b.parentNode}catch(d){break}if(b!==this){a.type=a.data;c.event.handle.apply(this,arguments)}},Ba=function(a){a.type=a.data;c.event.handle.apply(this,arguments)};c.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){c.event.special[a]={setup:function(d){c.event.add(this,b,d&&d.selector?Ba:Aa,a)},teardown:function(d){c.event.remove(this,b,d&&d.selector?Ba:Aa)}}});if(!c.support.submitBubbles)c.event.special.submit={setup:function(a,b,d){if(this.nodeName.toLowerCase()!==
+"form"){c.event.add(this,"click.specialSubmit."+d.guid,function(f){var e=f.target,i=e.type;if((i==="submit"||i==="image")&&c(e).closest("form").length)return ma("submit",this,arguments)});c.event.add(this,"keypress.specialSubmit."+d.guid,function(f){var e=f.target,i=e.type;if((i==="text"||i==="password")&&c(e).closest("form").length&&f.keyCode===13)return ma("submit",this,arguments)})}else return false},remove:function(a,b){c.event.remove(this,"click.specialSubmit"+(b?"."+b.guid:""));c.event.remove(this,
+"keypress.specialSubmit"+(b?"."+b.guid:""))}};if(!c.support.changeBubbles){var da=/textarea|input|select/i;function Ca(a){var b=a.type,d=a.value;if(b==="radio"||b==="checkbox")d=a.checked;else if(b==="select-multiple")d=a.selectedIndex>-1?c.map(a.options,function(f){return f.selected}).join("-"):"";else if(a.nodeName.toLowerCase()==="select")d=a.selectedIndex;return d}function ea(a,b){var d=a.target,f,e;if(!(!da.test(d.nodeName)||d.readOnly)){f=c.data(d,"_change_data");e=Ca(d);if(a.type!=="focusout"||
+d.type!=="radio")c.data(d,"_change_data",e);if(!(f===v||e===f))if(f!=null||e){a.type="change";return c.event.trigger(a,b,d)}}}c.event.special.change={filters:{focusout:ea,click:function(a){var b=a.target,d=b.type;if(d==="radio"||d==="checkbox"||b.nodeName.toLowerCase()==="select")return ea.call(this,a)},keydown:function(a){var b=a.target,d=b.type;if(a.keyCode===13&&b.nodeName.toLowerCase()!=="textarea"||a.keyCode===32&&(d==="checkbox"||d==="radio")||d==="select-multiple")return ea.call(this,a)},beforeactivate:function(a){a=
+a.target;a.nodeName.toLowerCase()==="input"&&a.type==="radio"&&c.data(a,"_change_data",Ca(a))}},setup:function(a,b,d){for(var f in T)c.event.add(this,f+".specialChange."+d.guid,T[f]);return da.test(this.nodeName)},remove:function(a,b){for(var d in T)c.event.remove(this,d+".specialChange"+(b?"."+b.guid:""),T[d]);return da.test(this.nodeName)}};var T=c.event.special.change.filters}r.addEventListener&&c.each({focus:"focusin",blur:"focusout"},function(a,b){function d(f){f=c.event.fix(f);f.type=b;return c.event.handle.call(this,
+f)}c.event.special[b]={setup:function(){this.addEventListener(a,d,true)},teardown:function(){this.removeEventListener(a,d,true)}}});c.each(["bind","one"],function(a,b){c.fn[b]=function(d,f,e){if(typeof d==="object"){for(var i in d)this[b](i,f,d[i],e);return this}if(c.isFunction(f)){e=f;f=v}var j=b==="one"?c.proxy(e,function(n){c(this).unbind(n,j);return e.apply(this,arguments)}):e;return d==="unload"&&b!=="one"?this.one(d,f,e):this.each(function(){c.event.add(this,d,j,f)})}});c.fn.extend({unbind:function(a,
+b){if(typeof a==="object"&&!a.preventDefault){for(var d in a)this.unbind(d,a[d]);return this}return this.each(function(){c.event.remove(this,a,b)})},trigger:function(a,b){return this.each(function(){c.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0]){a=c.Event(a);a.preventDefault();a.stopPropagation();c.event.trigger(a,b,this[0]);return a.result}},toggle:function(a){for(var b=arguments,d=1;d0){y=t;break}}t=t[g]}l[q]=y}}}var f=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,e=0,i=Object.prototype.toString,j=false,n=true;[0,0].sort(function(){n=false;return 0});var o=function(g,h,k,l){k=k||[];var q=h=h||r;if(h.nodeType!==1&&h.nodeType!==9)return[];if(!g||
+typeof g!=="string")return k;for(var p=[],u,t,y,R,H=true,M=w(h),I=g;(f.exec(""),u=f.exec(I))!==null;){I=u[3];p.push(u[1]);if(u[2]){R=u[3];break}}if(p.length>1&&s.exec(g))if(p.length===2&&m.relative[p[0]])t=fa(p[0]+p[1],h);else for(t=m.relative[p[0]]?[h]:o(p.shift(),h);p.length;){g=p.shift();if(m.relative[g])g+=p.shift();t=fa(g,t)}else{if(!l&&p.length>1&&h.nodeType===9&&!M&&m.match.ID.test(p[0])&&!m.match.ID.test(p[p.length-1])){u=o.find(p.shift(),h,M);h=u.expr?o.filter(u.expr,u.set)[0]:u.set[0]}if(h){u=
+l?{expr:p.pop(),set:A(l)}:o.find(p.pop(),p.length===1&&(p[0]==="~"||p[0]==="+")&&h.parentNode?h.parentNode:h,M);t=u.expr?o.filter(u.expr,u.set):u.set;if(p.length>0)y=A(t);else H=false;for(;p.length;){var D=p.pop();u=D;if(m.relative[D])u=p.pop();else D="";if(u==null)u=h;m.relative[D](y,u,M)}}else y=[]}y||(y=t);y||o.error(D||g);if(i.call(y)==="[object Array]")if(H)if(h&&h.nodeType===1)for(g=0;y[g]!=null;g++){if(y[g]&&(y[g]===true||y[g].nodeType===1&&E(h,y[g])))k.push(t[g])}else for(g=0;y[g]!=null;g++)y[g]&&
+y[g].nodeType===1&&k.push(t[g]);else k.push.apply(k,y);else A(y,k);if(R){o(R,q,k,l);o.uniqueSort(k)}return k};o.uniqueSort=function(g){if(C){j=n;g.sort(C);if(j)for(var h=1;h":function(g,h){var k=typeof h==="string";if(k&&!/\W/.test(h)){h=h.toLowerCase();for(var l=0,q=g.length;l=0))k||l.push(u);else if(k)h[p]=false;return false},ID:function(g){return g[1].replace(/\\/g,"")},TAG:function(g){return g[1].toLowerCase()},CHILD:function(g){if(g[1]==="nth"){var h=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(g[2]==="even"&&"2n"||g[2]==="odd"&&
+"2n+1"||!/\D/.test(g[2])&&"0n+"+g[2]||g[2]);g[2]=h[1]+(h[2]||1)-0;g[3]=h[3]-0}g[0]=e++;return g},ATTR:function(g,h,k,l,q,p){h=g[1].replace(/\\/g,"");if(!p&&m.attrMap[h])g[1]=m.attrMap[h];if(g[2]==="~=")g[4]=" "+g[4]+" ";return g},PSEUDO:function(g,h,k,l,q){if(g[1]==="not")if((f.exec(g[3])||"").length>1||/^\w/.test(g[3]))g[3]=o(g[3],null,null,h);else{g=o.filter(g[3],h,k,true^q);k||l.push.apply(l,g);return false}else if(m.match.POS.test(g[0])||m.match.CHILD.test(g[0]))return true;return g},POS:function(g){g.unshift(true);
+return g}},filters:{enabled:function(g){return g.disabled===false&&g.type!=="hidden"},disabled:function(g){return g.disabled===true},checked:function(g){return g.checked===true},selected:function(g){return g.selected===true},parent:function(g){return!!g.firstChild},empty:function(g){return!g.firstChild},has:function(g,h,k){return!!o(k[3],g).length},header:function(g){return/h\d/i.test(g.nodeName)},text:function(g){return"text"===g.type},radio:function(g){return"radio"===g.type},checkbox:function(g){return"checkbox"===
+g.type},file:function(g){return"file"===g.type},password:function(g){return"password"===g.type},submit:function(g){return"submit"===g.type},image:function(g){return"image"===g.type},reset:function(g){return"reset"===g.type},button:function(g){return"button"===g.type||g.nodeName.toLowerCase()==="button"},input:function(g){return/input|select|textarea|button/i.test(g.nodeName)}},setFilters:{first:function(g,h){return h===0},last:function(g,h,k,l){return h===l.length-1},even:function(g,h){return h%2===
+0},odd:function(g,h){return h%2===1},lt:function(g,h,k){return hk[3]-0},nth:function(g,h,k){return k[3]-0===h},eq:function(g,h,k){return k[3]-0===h}},filter:{PSEUDO:function(g,h,k,l){var q=h[1],p=m.filters[q];if(p)return p(g,k,h,l);else if(q==="contains")return(g.textContent||g.innerText||a([g])||"").indexOf(h[3])>=0;else if(q==="not"){h=h[3];k=0;for(l=h.length;k=
+0}},ID:function(g,h){return g.nodeType===1&&g.getAttribute("id")===h},TAG:function(g,h){return h==="*"&&g.nodeType===1||g.nodeName.toLowerCase()===h},CLASS:function(g,h){return(" "+(g.className||g.getAttribute("class"))+" ").indexOf(h)>-1},ATTR:function(g,h){var k=h[1];g=m.attrHandle[k]?m.attrHandle[k](g):g[k]!=null?g[k]:g.getAttribute(k);k=g+"";var l=h[2];h=h[4];return g==null?l==="!=":l==="="?k===h:l==="*="?k.indexOf(h)>=0:l==="~="?(" "+k+" ").indexOf(h)>=0:!h?k&&g!==false:l==="!="?k!==h:l==="^="?
+k.indexOf(h)===0:l==="$="?k.substr(k.length-h.length)===h:l==="|="?k===h||k.substr(0,h.length+1)===h+"-":false},POS:function(g,h,k,l){var q=m.setFilters[h[2]];if(q)return q(g,k,h,l)}}},s=m.match.POS;for(var x in m.match){m.match[x]=new RegExp(m.match[x].source+/(?![^\[]*\])(?![^\(]*\))/.source);m.leftMatch[x]=new RegExp(/(^(?:.|\r|\n)*?)/.source+m.match[x].source.replace(/\\(\d+)/g,function(g,h){return"\\"+(h-0+1)}))}var A=function(g,h){g=Array.prototype.slice.call(g,0);if(h){h.push.apply(h,g);return h}return g};
+try{Array.prototype.slice.call(r.documentElement.childNodes,0)}catch(B){A=function(g,h){h=h||[];if(i.call(g)==="[object Array]")Array.prototype.push.apply(h,g);else if(typeof g.length==="number")for(var k=0,l=g.length;k ";var k=r.documentElement;k.insertBefore(g,k.firstChild);if(r.getElementById(h)){m.find.ID=function(l,q,p){if(typeof q.getElementById!=="undefined"&&!p)return(q=q.getElementById(l[1]))?q.id===l[1]||typeof q.getAttributeNode!=="undefined"&&q.getAttributeNode("id").nodeValue===l[1]?[q]:v:[]};m.filter.ID=function(l,q){var p=typeof l.getAttributeNode!=="undefined"&&l.getAttributeNode("id");
+return l.nodeType===1&&p&&p.nodeValue===q}}k.removeChild(g);k=g=null})();(function(){var g=r.createElement("div");g.appendChild(r.createComment(""));if(g.getElementsByTagName("*").length>0)m.find.TAG=function(h,k){k=k.getElementsByTagName(h[1]);if(h[1]==="*"){h=[];for(var l=0;k[l];l++)k[l].nodeType===1&&h.push(k[l]);k=h}return k};g.innerHTML=" ";if(g.firstChild&&typeof g.firstChild.getAttribute!=="undefined"&&g.firstChild.getAttribute("href")!=="#")m.attrHandle.href=function(h){return h.getAttribute("href",
+2)};g=null})();r.querySelectorAll&&function(){var g=o,h=r.createElement("div");h.innerHTML="
";if(!(h.querySelectorAll&&h.querySelectorAll(".TEST").length===0)){o=function(l,q,p,u){q=q||r;if(!u&&q.nodeType===9&&!w(q))try{return A(q.querySelectorAll(l),p)}catch(t){}return g(l,q,p,u)};for(var k in g)o[k]=g[k];h=null}}();(function(){var g=r.createElement("div");g.innerHTML="
";if(!(!g.getElementsByClassName||g.getElementsByClassName("e").length===
+0)){g.lastChild.className="e";if(g.getElementsByClassName("e").length!==1){m.order.splice(1,0,"CLASS");m.find.CLASS=function(h,k,l){if(typeof k.getElementsByClassName!=="undefined"&&!l)return k.getElementsByClassName(h[1])};g=null}}})();var E=r.compareDocumentPosition?function(g,h){return g.compareDocumentPosition(h)&16}:function(g,h){return g!==h&&(g.contains?g.contains(h):true)},w=function(g){return(g=(g?g.ownerDocument||g:0).documentElement)?g.nodeName!=="HTML":false},fa=function(g,h){var k=[],
+l="",q;for(h=h.nodeType?[h]:h;q=m.match.PSEUDO.exec(g);){l+=q[0];g=g.replace(m.match.PSEUDO,"")}g=m.relative[g]?g+"*":g;q=0;for(var p=h.length;q=0===d})};c.fn.extend({find:function(a){for(var b=this.pushStack("","find",a),d=0,f=0,e=this.length;f0)for(var i=d;i0},closest:function(a,b){if(c.isArray(a)){var d=[],f=this[0],e,i={},j;if(f&&a.length){e=0;for(var n=a.length;e
+-1:c(f).is(e)){d.push({selector:j,elem:f});delete i[j]}}f=f.parentNode}}return d}var o=c.expr.match.POS.test(a)?c(a,b||this.context):null;return this.map(function(m,s){for(;s&&s.ownerDocument&&s!==b;){if(o?o.index(s)>-1:c(s).is(a))return s;s=s.parentNode}return null})},index:function(a){if(!a||typeof a==="string")return c.inArray(this[0],a?c(a):this.parent().children());return c.inArray(a.jquery?a[0]:a,this)},add:function(a,b){a=typeof a==="string"?c(a,b||this.context):c.makeArray(a);b=c.merge(this.get(),
+a);return this.pushStack(pa(a[0])||pa(b[0])?b:c.unique(b))},andSelf:function(){return this.add(this.prevObject)}});c.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return c.dir(a,"parentNode")},parentsUntil:function(a,b,d){return c.dir(a,"parentNode",d)},next:function(a){return c.nth(a,2,"nextSibling")},prev:function(a){return c.nth(a,2,"previousSibling")},nextAll:function(a){return c.dir(a,"nextSibling")},prevAll:function(a){return c.dir(a,"previousSibling")},
+nextUntil:function(a,b,d){return c.dir(a,"nextSibling",d)},prevUntil:function(a,b,d){return c.dir(a,"previousSibling",d)},siblings:function(a){return c.sibling(a.parentNode.firstChild,a)},children:function(a){return c.sibling(a.firstChild)},contents:function(a){return c.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:c.makeArray(a.childNodes)}},function(a,b){c.fn[a]=function(d,f){var e=c.map(this,b,d);bb.test(a)||(f=d);if(f&&typeof f==="string")e=c.filter(f,e);e=this.length>1?c.unique(e):
+e;if((this.length>1||db.test(f))&&cb.test(a))e=e.reverse();return this.pushStack(e,a,Q.call(arguments).join(","))}});c.extend({filter:function(a,b,d){if(d)a=":not("+a+")";return c.find.matches(a,b)},dir:function(a,b,d){var f=[];for(a=a[b];a&&a.nodeType!==9&&(d===v||a.nodeType!==1||!c(a).is(d));){a.nodeType===1&&f.push(a);a=a[b]}return f},nth:function(a,b,d){b=b||1;for(var f=0;a;a=a[d])if(a.nodeType===1&&++f===b)break;return a},sibling:function(a,b){for(var d=[];a;a=a.nextSibling)a.nodeType===1&&a!==
+b&&d.push(a);return d}});var Fa=/ jQuery\d+="(?:\d+|null)"/g,V=/^\s+/,Ga=/(<([\w:]+)[^>]*?)\/>/g,eb=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,Ha=/<([\w:]+)/,fb=/"+d+">"},F={option:[1,""," "],legend:[1,""," "],thead:[1,""],tr:[2,""],td:[3,""],
+col:[2,""],area:[1,""," "],_default:[0,"",""]};F.optgroup=F.option;F.tbody=F.tfoot=F.colgroup=F.caption=F.thead;F.th=F.td;if(!c.support.htmlSerialize)F._default=[1,"div","
"];c.fn.extend({text:function(a){if(c.isFunction(a))return this.each(function(b){var d=c(this);d.text(a.call(this,b,d.text()))});if(typeof a!=="object"&&a!==v)return this.empty().append((this[0]&&this[0].ownerDocument||r).createTextNode(a));return c.getText(this)},
+wrapAll:function(a){if(c.isFunction(a))return this.each(function(d){c(this).wrapAll(a.call(this,d))});if(this[0]){var b=c(a,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var d=this;d.firstChild&&d.firstChild.nodeType===1;)d=d.firstChild;return d}).append(this)}return this},wrapInner:function(a){if(c.isFunction(a))return this.each(function(b){c(this).wrapInner(a.call(this,b))});return this.each(function(){var b=c(this),d=b.contents();d.length?
+d.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){c(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){c.nodeName(this,"body")||c(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,
+false,function(b){this.parentNode.insertBefore(b,this)});else if(arguments.length){var a=c(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this.nextSibling)});else if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,c(arguments[0]).toArray());return a}},clone:function(a){var b=this.map(function(){if(!c.support.noCloneEvent&&
+!c.isXMLDoc(this)){var d=this.outerHTML,f=this.ownerDocument;if(!d){d=f.createElement("div");d.appendChild(this.cloneNode(true));d=d.innerHTML}return c.clean([d.replace(Fa,"").replace(V,"")],f)[0]}else return this.cloneNode(true)});if(a===true){qa(this,b);qa(this.find("*"),b.find("*"))}return b},html:function(a){if(a===v)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(Fa,""):null;else if(typeof a==="string"&&!/
+
+
+ HTML
+ else
+ related_items.each do |item|
+ switch = request.include?("#{related_fk}=#{item.id}") ? 'on' : 'off'
+ items << (link_to item.to_label, params.merge(related_fk => item.id, :page => nil), :class => switch)
+ end
+ end
+
+ if form
+ html << build_typus_list(items, :attribute => filter, :selector => true)
+ html << form
+ else
+ html << build_typus_list(items, :attribute => filter)
+ end
+
+ end
+
+ end
+
+ def date_filter(request, filter)
+
+ if !@resource[:class].typus_field_options_for(:filter_by_date_range).include?(filter.to_sym)
+ items = %w( today last_few_days last_7_days last_30_days ).map do |timeline|
+ switch = request.include?("#{filter}=#{timeline}") ? 'on' : 'off'
+ options = { :page => nil }
+ if switch == 'on'
+ params.delete(filter)
+ else
+ options.merge!(filter.to_sym => timeline)
+ end
+ link_to _(timeline.humanize), params.merge(options), :class => switch
+ end
+ build_typus_list(items, :attribute => filter)
+ else
+ date_params = params.dup
+
+ %w( action controller page id ).each { |p| date_params.delete(p) }
+ date_params.delete(filter)
+
+ hidden_params = date_params.map { |k, v| hidden_field_tag(k, v) }
+ render "admin/helpers/date", :hidden_params => hidden_params, :filter => filter, :resource => @resource
+ end
+
+ end
+
+ def boolean_filter(request, filter)
+
+ item_params = params.dup
+
+ items = @resource[:class].typus_boolean(filter).map do |key, value|
+ switch = request.include?("#{filter}=#{key}") ? 'on' : 'off'
+ options = { :page => nil }
+ if switch == 'on'
+ item_params.delete(filter)
+ else
+ options.merge!(filter.to_sym => key)
+ end
+ link_to _(value), item_params.merge(options), :class => switch
+ end
+
+ build_typus_list(items, :attribute => filter)
+
+ end
+
+ def string_filter(request, filter)
+
+ item_params = params.dup
+
+ values = @resource[:class]::const_get("#{filter.to_s.upcase}")
+ values = values.invert if values.kind_of?(Hash)
+ items = values.map do |item|
+ link_name, link_filter = (values.first.kind_of?(Array)) ? [ item.first, item.last ] : [ item, item ]
+ switch = (params[filter.to_s] == link_filter) ? 'on' : 'off'
+ options = { :page => nil }
+ if switch == 'on'
+ item_params.delete(filter)
+ else
+ options.merge!(filter.to_sym => link_filter)
+ end
+ link_to link_name, item_params.merge(options), :class => switch
+ end
+
+ build_typus_list(items, :attribute => filter)
+
+ end
+
+ include Typus::SidebarHelperExtensions rescue nil
+end
diff --git a/vendor/plugins/typus/app/helpers/admin/table_helper.rb b/vendor/plugins/typus/app/helpers/admin/table_helper.rb
new file mode 100644
index 0000000..f6035b9
--- /dev/null
+++ b/vendor/plugins/typus/app/helpers/admin/table_helper.rb
@@ -0,0 +1,261 @@
+module Admin::TableHelper
+
+ # OPTIMIZE: Move html code to partial & refactor.
+ def build_typus_table(model, fields, items, link_options = {}, association = nil)
+
+ returning(String.new) do |html|
+
+ html << <<-HTML
+
+ HTML
+
+ html << typus_table_header(model, fields)
+
+ items.each do |item|
+
+ html << <<-HTML
+
+ HTML
+
+ fields.each do |key, value|
+ case value
+ when :boolean then html << typus_table_boolean_field(key, item)
+ when :datetime then html << typus_table_datetime_field(key, item, link_options)
+ when :date then html << typus_table_datetime_field(key, item, link_options)
+ when :file then html << typus_table_file_field(key, item, link_options)
+ when :time then html << typus_table_datetime_field(key, item, link_options)
+ when :belongs_to then html << typus_table_belongs_to_field(key, item)
+ when :tree then html << typus_table_tree_field(key, item)
+ when :position then html << typus_table_position_field(key, item)
+ when :selector then html << typus_table_selector(key, item)
+ when :has_and_belongs_to_many then
+ html << typus_table_has_and_belongs_to_many_field(key, item)
+ else
+ html << typus_table_string_field(key, item, link_options)
+ end
+ end
+
+ action = if model.typus_user_id? && @current_user.is_not_root?
+ # If there's a typus_user_id column on the table and logged user is not root ...
+ item.owned_by?(@current_user) ? item.class.typus_options_for(:default_action_on_item) : 'show'
+ elsif @current_user.cannot?('edit', model)
+ 'show'
+ else
+ item.class.typus_options_for(:default_action_on_item)
+ end
+
+ content = link_to _(action.capitalize), :controller => "admin/#{item.class.name.tableize}", :action => action, :id => item.id
+ html << <<-HTML
+#{content}
+ HTML
+
+ ##
+ # This controls the action to perform. If we are on a model list we
+ # will remove the entry, but if we inside a model we will remove the
+ # relationship between the models.
+ #
+ # Only shown is the user can destroy/unrelate items.
+ #
+
+ trash = %Q(Trash
)
+ unrelate = %Q(Unrelate
)
+
+ case params[:action]
+ when 'index'
+ condition = if model.typus_user_id? && @current_user.is_not_root?
+ item.owned_by?(@current_user)
+ elsif (@current_user.id.eql?(item.id) && model.eql?(Typus.user_class))
+ false
+ else
+ @current_user.can?('destroy', model)
+ end
+
+ message = _("You are about to delete a %{model}.\nAre you sure you want to continue?", :model => model.human_name.downcase)
+
+ perform = link_to trash, { :action => 'destroy', :id => item.id },
+ :title => _("Remove"),
+ :confirm => _(message) if condition
+ when 'edit'
+ # If we are editing content, we can relate and unrelate always!
+ perform = link_to unrelate, { :action => 'unrelate', :id => params[:id], :resource => model, :resource_id => item.id },
+ :title => _("Unrelate"),
+ :confirm => _("Unrelate %{unrelate_model} from %{unrelate_model_from}?",
+ :unrelate_model => model.typus_human_name,
+ :unrelate_model_from => @resource[:human_name])
+ when 'show'
+ # If we are showing content, we only can relate and unrelate if we are
+ # the owners of the owner record.
+ # If the owner record doesn't have a foreign key (Typus.user_fk) we look
+ # each item to verify the ownership.
+ condition = if @resource[:class].typus_user_id? && @current_user.is_not_root?
+ @item.owned_by?(@current_user)
+ end
+ perform = link_to unrelate, { :action => 'unrelate', :id => params[:id], :resource => model, :resource_id => item.id },
+ :title => _("Unrelate"),
+ :confirm => _("Unrelate %{unrelate_model} from %{unrelate_model_from}?",
+ :unrelate_model => model.typus_human_name,
+ :unrelate_model_from => @resource[:human_name]) if condition
+ end
+
+ html << <<-HTML
+#{perform}
+
+ HTML
+
+ end
+
+ html << "
"
+
+ end
+
+ end
+
+ def typus_table_header(model, fields)
+
+ headers = fields.map do |key, value|
+
+ content = key.end_with?('_id') ? key : model.human_attribute_name(key)
+
+ if (model.model_fields.map(&:first).collect { |i| i.to_s }.include?(key) || model.reflect_on_all_associations(:belongs_to).map(&:name).include?(key.to_sym)) && params[:action] == 'index'
+ sort_order = case params[:sort_order]
+ when 'asc' then ['desc', '↓']
+ when 'desc' then ['asc', '↑']
+ else
+ [nil, nil]
+ end
+ order_by = model.reflect_on_association(key.to_sym).primary_key_name rescue key
+ switch = sort_order.last if params[:order_by].eql?(order_by)
+ options = { :order_by => order_by, :sort_order => sort_order.first }
+ content = link_to "#{content} #{switch}", params.merge(options)
+ end
+
+ content
+
+ end
+
+ headers << " " if @current_user.can?('delete', model)
+
+ render "admin/helpers/table_header",
+ :headers => headers
+
+ end
+
+ # OPTIMIZE: Refactor (Remove rescue)
+ def typus_table_belongs_to_field(attribute, item)
+
+ action = item.send(attribute).class.typus_options_for(:default_action_on_item) rescue 'edit'
+
+ att_value = item.send(attribute)
+ content = if !att_value.nil?
+ if @current_user.can?(action, att_value.class.name)
+ link_to item.send(attribute).to_label, :controller => "admin/#{att_value.class.name.tableize}", :action => action, :id => att_value.id
+ else
+ att_value.to_label
+ end
+ end
+
+ return content_tag(:td, content)
+
+ end
+
+ def typus_table_has_and_belongs_to_many_field(attribute, item)
+ content = item.send(attribute).map { |i| i.to_label }.join(' ')
+ return content_tag(:td, content)
+ end
+
+ def typus_table_string_field(attribute, item, link_options = {})
+ content = h(item.send(attribute))
+ return content_tag(:td, content, :class => attribute)
+ end
+
+ def typus_table_selector(attribute, item)
+ content = h(item.mapping(attribute))
+ return content_tag(:td, content, :class => attribute)
+ end
+
+ def typus_table_file_field(attribute, item, link_options = {})
+
+ attachment = attribute.split("_file_name").first
+ file_preview = Typus::Configuration.options[:file_preview]
+ file_thumbnail = Typus::Configuration.options[:file_thumbnail]
+
+ has_file_preview = item.send(attachment).styles.member?(file_preview)
+ file_preview_is_image = item.send("#{attachment}_content_type") =~ /^image\/.+/
+
+ content = if has_file_preview && file_preview_is_image
+ render "admin/helpers/preview",
+ :attribute => attribute,
+ :attachment => attachment,
+ :content => item.send(attribute),
+ :has_file_preview => has_file_preview,
+ :href => item.send(attachment).url(file_preview),
+ :item => item
+ else
+ link_to item.send(attribute), item.send(attachment).url
+ end
+
+ return content_tag(:td, content)
+
+ end
+
+ # OPTIMIZE: Move html code to partial.
+ def typus_table_tree_field(attribute, item)
+ <<-HTML
+#{item.parent.to_label if item.parent}
+ HTML
+ end
+
+ # OPTIMIZE: Move html code to partial.
+ def typus_table_position_field(attribute, item)
+
+ html_position = []
+
+ [['Up', 'move_higher'], ['Down', 'move_lower']].each do |position|
+
+ options = { :controller => item.class.name.tableize,
+ :action => 'position',
+ :id => item.id,
+ :go => position.last }
+
+ first_or_last = (item.respond_to?(:first?) && (position.last == 'move_higher' && item.first?)) || (item.respond_to?(:last?) && (position.last == 'move_lower' && item.last?))
+ html_position << link_to_unless(first_or_last, _(position.first), params.merge(options)) do |name|
+ %(#{name} )
+ end
+ end
+
+ content = html_position.join(' / ')
+ return content_tag(:td, content)
+
+ end
+
+ def typus_table_datetime_field(attribute, item, link_options = {} )
+
+ date_format = item.class.typus_date_format(attribute)
+ content = !item.send(attribute).nil? ? item.send(attribute).to_s(date_format) : item.class.typus_options_for(:nil)
+
+ return content_tag(:td, content)
+
+ end
+
+ def typus_table_boolean_field(attribute, item)
+
+ boolean_hash = item.class.typus_boolean(attribute)
+ status = item.send(attribute)
+ link_text = boolean_hash["#{status}".to_sym]
+
+ options = { :controller => "admin/#{item.class.name.tableize}",
+ :action => 'toggle',
+ :id => item.id,
+ :field => attribute.gsub(/\?$/,'') }
+
+ confirm = _("Change %{attribute}?",
+ :attribute => item.class.human_attribute_name(attribute).downcase)
+
+ content = link_to _(link_text), options, :confirm => confirm
+
+ return content_tag(:td, content)
+
+ end
+
+ include Typus::TableHelperExtensions rescue nil
+end
diff --git a/vendor/plugins/typus/app/helpers/typus_helper.rb b/vendor/plugins/typus/app/helpers/typus_helper.rb
new file mode 100644
index 0000000..eaf1a8e
--- /dev/null
+++ b/vendor/plugins/typus/app/helpers/typus_helper.rb
@@ -0,0 +1,101 @@
+module TypusHelper
+
+ def applications
+
+ apps = ActiveSupport::OrderedHash.new
+
+ Typus.applications.each do |app|
+
+ available = Typus.application(app).map do |resource|
+ resource if @current_user.resources.include?(resource)
+ end.compact
+
+ next if available.empty?
+
+ apps[app] = available.sort_by { |x| x.constantize.typus_human_name }
+
+ end
+
+ render "admin/helpers/applications", :applications => apps
+
+ end
+
+ def resources
+
+ available = Typus.resources.map do |resource|
+ resource if @current_user.resources.include?(resource)
+ end.compact
+
+ return if available.empty?
+
+ render "admin/helpers/resources", :resources => available
+
+ end
+
+ def typus_block(*args)
+
+ options = args.extract_options!
+
+ partials_path = "admin/#{options[:location]}"
+ resources_partials_path = 'admin/resources'
+
+ partials = ActionController::Base.view_paths.map do |view_path|
+ Dir["#{view_path.path}/#{partials_path}/*"].map { |f| File.basename(f, '.html.erb') }
+ end.flatten
+ resources_partials = Dir["#{Rails.root}/app/views/#{resources_partials_path}/*"].map { |f| File.basename(f, '.html.erb') }
+
+ partial = "_#{options[:partial]}"
+
+ path = if partials.include?(partial) then partials_path
+ elsif resources_partials.include?(partial) then resources_partials_path
+ end
+
+ render "#{path}/#{options[:partial]}" if path
+
+ end
+
+ def page_title(action = params[:action])
+ crumbs = []
+ crumbs << @resource[:pluralized] if @resource
+ crumbs << _(action.humanize) unless %w( index ).include?(action)
+ return crumbs.compact.map { |x| x }.join(' › ')
+ end
+
+ def header
+
+ links = []
+ links << (link_to_unless_current _("Dashboard"), admin_dashboard_path)
+
+ Typus.models_on_header.each do |model|
+ links << (link_to_unless_current model.constantize.pluralized_human_name, :controller => "/admin/#{model.tableize}")
+ end
+
+ render "admin/helpers/header", :links => links
+
+ end
+
+ def login_info(user = @current_user)
+
+ admin_edit_typus_user_path = { :controller => "/admin/#{Typus::Configuration.options[:user_class_name].tableize}",
+ :action => 'edit',
+ :id => user.id }
+
+ message = _("Are you sure you want to sign out and end your session?")
+
+ user_details = if user.can?('edit', Typus::Configuration.options[:user_class_name])
+ link_to user.name, admin_edit_typus_user_path, :title => "#{user.email} (#{user.role})"
+ else
+ user.name
+ end
+
+ render "admin/helpers/login_info", :message => message, :user_details => user_details
+
+ end
+
+ def display_flash_message(message = flash)
+ return if message.empty?
+ flash_type = message.keys.first
+ render "admin/helpers/flash_message", :flash_type => flash_type, :message => message
+ end
+
+end
diff --git a/vendor/plugins/typus/app/models/typus_mailer.rb b/vendor/plugins/typus/app/models/typus_mailer.rb
new file mode 100644
index 0000000..812a123
--- /dev/null
+++ b/vendor/plugins/typus/app/models/typus_mailer.rb
@@ -0,0 +1,12 @@
+class TypusMailer < ActionMailer::Base
+
+ self.template_root = "#{File.dirname(__FILE__)}/../views"
+
+ def reset_password_link(user, url)
+ subject "[#{Typus::Configuration.options[:app_name]}] #{_("Reset password")}"
+ body :user => user, :url => url
+ recipients user.email
+ from Typus::Configuration.options[:email]
+ end
+
+end
diff --git a/vendor/plugins/typus/app/models/typus_user.rb b/vendor/plugins/typus/app/models/typus_user.rb
new file mode 100644
index 0000000..d4472e6
--- /dev/null
+++ b/vendor/plugins/typus/app/models/typus_user.rb
@@ -0,0 +1,8 @@
+class TypusUser < ActiveRecord::Base
+
+ ROLE = Typus::Configuration.roles.keys.sort
+ LANGUAGE = Typus.locales
+
+ enable_as_typus_user
+
+end
diff --git a/vendor/plugins/typus/app/views/admin/dashboard/_sidebar.html.erb b/vendor/plugins/typus/app/views/admin/dashboard/_sidebar.html.erb
new file mode 100644
index 0000000..9cba16c
--- /dev/null
+++ b/vendor/plugins/typus/app/views/admin/dashboard/_sidebar.html.erb
@@ -0,0 +1,5 @@
+Welcome!
+
+If you need help don't hesitate in joining the <%= link_to 'mailing list', 'http://groups.google.com/group/typus' %>.
+
+Replace this sidebar dropping a file named _sidebar.html.erb on the app/views/admin/dashboard folder.
diff --git a/vendor/plugins/typus/app/views/admin/helpers/_applications.html.erb b/vendor/plugins/typus/app/views/admin/helpers/_applications.html.erb
new file mode 100644
index 0000000..1934d1d
--- /dev/null
+++ b/vendor/plugins/typus/app/views/admin/helpers/_applications.html.erb
@@ -0,0 +1,39 @@
+<% applications.each do |app, models| %>
+
+
+
+
+ <%= _(app) %>
+
+
+ <% models.each do |model| %>
+
+ <%
+
+ klass = model.constantize
+ klass_resource = klass.name.tableize
+ klass_human_name = klass.pluralized_human_name
+
+ admin_items_path = { :controller => "admin/#{klass_resource}" }
+ new_admin_item_path = { :controller => "admin/#{klass_resource}", :action => 'new'}
+
+ %>
+
+
+
+
+ <%= link_to klass_human_name, admin_items_path %>
+ <%= _(klass.typus_description) if !klass.typus_description.nil? %>
+
+
+
+ <%= link_to_if @current_user.can?('create', klass), _("Add"), new_admin_item_path %>
+
+
+
+
+ <% end %>
+
+
+
+<% end %>
diff --git a/vendor/plugins/typus/app/views/admin/helpers/_date.html.erb b/vendor/plugins/typus/app/views/admin/helpers/_date.html.erb
new file mode 100644
index 0000000..0b56697
--- /dev/null
+++ b/vendor/plugins/typus/app/views/admin/helpers/_date.html.erb
@@ -0,0 +1,26 @@
+<%
+ if params[filter.to_s].is_a?(Hash)
+ date_from = params[filter.to_s]["from"]
+ date_to = params[filter.to_s]["to"]
+ else
+ date_from = ""
+ date_to = ""
+ end
+
+ date_format = Date::DATE_FORMATS[@resource[:class].typus_date_format(filter)]
+%>
+
+<%= @resource[:class].human_attribute_name(filter) %>
+
+<% form_tag url_for(:controller => params[:controller], :action => params[:action]), :method => :get do %>
+
+ <%= text_field_tag "#{filter}[from]", date_from, :size => 10, :class => :date_input, :date_format => date_format %>
+ -
+ <%= text_field_tag "#{filter}[to]", date_to, :size => 10, :class => :date_input, :date_format => date_format %>
+
+
+ <%= hidden_params.sort.join("\n") %>
+ <%= submit_tag _("Filter") %>
+
+<% end %>
+
\ No newline at end of file
diff --git a/vendor/plugins/typus/app/views/admin/helpers/_display_link_to_previous.html.erb b/vendor/plugins/typus/app/views/admin/helpers/_display_link_to_previous.html.erb
new file mode 100644
index 0000000..c66e7d3
--- /dev/null
+++ b/vendor/plugins/typus/app/views/admin/helpers/_display_link_to_previous.html.erb
@@ -0,0 +1,3 @@
+
+
<%= message %> <%= link_to _("Do you want to cancel it?"), params[:back_to] %>
+
diff --git a/vendor/plugins/typus/app/views/admin/helpers/_flash_message.html.erb b/vendor/plugins/typus/app/views/admin/helpers/_flash_message.html.erb
new file mode 100644
index 0000000..f1780bd
--- /dev/null
+++ b/vendor/plugins/typus/app/views/admin/helpers/_flash_message.html.erb
@@ -0,0 +1,3 @@
+
+
<%= message[flash_type] %>
+
diff --git a/vendor/plugins/typus/app/views/admin/helpers/_header.html.erb b/vendor/plugins/typus/app/views/admin/helpers/_header.html.erb
new file mode 100644
index 0000000..67542be
--- /dev/null
+++ b/vendor/plugins/typus/app/views/admin/helpers/_header.html.erb
@@ -0,0 +1,13 @@
+
+ <% if ActionController::Routing::Routes.named_routes.routes.has_key?(:root) %>
+ <%= link_to Typus::Configuration.options[:app_name], root_path, :title => _("View site") %>
+ <% else %>
+ <%= Typus::Configuration.options[:app_name] %>
+ <% end %>
+
+
+
+<% links.each do |link| -%>
+ <%= link %>
+<% end -%>
+
diff --git a/vendor/plugins/typus/app/views/admin/helpers/_list.html.erb b/vendor/plugins/typus/app/views/admin/helpers/_list.html.erb
new file mode 100644
index 0000000..6796d39
--- /dev/null
+++ b/vendor/plugins/typus/app/views/admin/helpers/_list.html.erb
@@ -0,0 +1,11 @@
+<%= content_tag('h2', header) if header %>
+
+<% unless options[:selector] %>
+
+
+ <% items.each do |item| %>
+ <%= item %>
+ <% end %>
+
+
+<% end %>
\ No newline at end of file
diff --git a/vendor/plugins/typus/app/views/admin/helpers/_login_info.html.erb b/vendor/plugins/typus/app/views/admin/helpers/_login_info.html.erb
new file mode 100644
index 0000000..65e5834
--- /dev/null
+++ b/vendor/plugins/typus/app/views/admin/helpers/_login_info.html.erb
@@ -0,0 +1,4 @@
+
+ <%= _("Logged as") %> <%= user_details %>
+ <%= link_to _("Sign out"), admin_sign_out_path, { :confirm => message } %>
+
diff --git a/vendor/plugins/typus/app/views/admin/helpers/_pagination.html.erb b/vendor/plugins/typus/app/views/admin/helpers/_pagination.html.erb
new file mode 100644
index 0000000..6e25f19
--- /dev/null
+++ b/vendor/plugins/typus/app/views/admin/helpers/_pagination.html.erb
@@ -0,0 +1,15 @@
+
\ No newline at end of file
diff --git a/vendor/plugins/typus/app/views/admin/helpers/_preview.html.erb b/vendor/plugins/typus/app/views/admin/helpers/_preview.html.erb
new file mode 100644
index 0000000..3113f84
--- /dev/null
+++ b/vendor/plugins/typus/app/views/admin/helpers/_preview.html.erb
@@ -0,0 +1,13 @@
+<%
+ dom = item.to_dom(:suffix => "#{attribute}_preview" )
+%>
+
+<% if has_file_preview %>
+
+<% end %>
+
+<%= content %>
diff --git a/vendor/plugins/typus/app/views/admin/helpers/_quick_edit.html.erb b/vendor/plugins/typus/app/views/admin/helpers/_quick_edit.html.erb
new file mode 100644
index 0000000..5672685
--- /dev/null
+++ b/vendor/plugins/typus/app/views/admin/helpers/_quick_edit.html.erb
@@ -0,0 +1,3 @@
+
diff --git a/vendor/plugins/typus/app/views/admin/helpers/_remove_filter_link.html.erb b/vendor/plugins/typus/app/views/admin/helpers/_remove_filter_link.html.erb
new file mode 100644
index 0000000..fc9eaac
--- /dev/null
+++ b/vendor/plugins/typus/app/views/admin/helpers/_remove_filter_link.html.erb
@@ -0,0 +1 @@
+<%= link_to _("Remove filter") %>
diff --git a/vendor/plugins/typus/app/views/admin/helpers/_resources.html.erb b/vendor/plugins/typus/app/views/admin/helpers/_resources.html.erb
new file mode 100644
index 0000000..b272da3
--- /dev/null
+++ b/vendor/plugins/typus/app/views/admin/helpers/_resources.html.erb
@@ -0,0 +1,14 @@
+
+
+
+ <%= _("Resources") %>
+
+
+ <% resources.each do |resource| %>
+
+ <%= link_to _(resource.titleize.capitalize), :controller => "admin/#{resource.underscore}" %>
+
+
+ <% end %>
+
+
diff --git a/vendor/plugins/typus/app/views/admin/helpers/_search.html.erb b/vendor/plugins/typus/app/views/admin/helpers/_search.html.erb
new file mode 100644
index 0000000..7bd1610
--- /dev/null
+++ b/vendor/plugins/typus/app/views/admin/helpers/_search.html.erb
@@ -0,0 +1,8 @@
+<%= _("Search") %>
+
+<% form_tag url_for(:controller => params[:controller]), :method => :get do %>
+
+ <%= hidden_params.sort.join("\n") %>
+<% end %>
+
+<%= _("Search by") %> <%= search_by.downcase %>.
diff --git a/vendor/plugins/typus/app/views/admin/helpers/_table_header.html.erb b/vendor/plugins/typus/app/views/admin/helpers/_table_header.html.erb
new file mode 100644
index 0000000..33f3085
--- /dev/null
+++ b/vendor/plugins/typus/app/views/admin/helpers/_table_header.html.erb
@@ -0,0 +1,5 @@
+
+ <% headers.each do |header| %>
+ <%= header %>
+ <% end %>
+
diff --git a/vendor/plugins/typus/app/views/admin/resources/_form.html.erb b/vendor/plugins/typus/app/views/admin/resources/_form.html.erb
new file mode 100644
index 0000000..905cd04
--- /dev/null
+++ b/vendor/plugins/typus/app/views/admin/resources/_form.html.erb
@@ -0,0 +1,12 @@
+<% form_for @item, :url => options, :builder => ActionView::Helpers::FormBuilder, :html => { :multipart => true } do |form| %>
+
+
+ <%= build_form(@fields, form) %>
+
+
+
+
+ <%= submit_tag button , :class => 'commit' %>
+
+
+<% end %>
\ No newline at end of file
diff --git a/vendor/plugins/typus/app/views/admin/resources/edit.html.erb b/vendor/plugins/typus/app/views/admin/resources/edit.html.erb
new file mode 100644
index 0000000..9a4ab00
--- /dev/null
+++ b/vendor/plugins/typus/app/views/admin/resources/edit.html.erb
@@ -0,0 +1,25 @@
+<% content_for :sidebar do %>
+ <%= typus_block :location => @resource[:self], :partial => 'sidebar' %>
+ <%= actions %>
+ <%= search %>
+<% end %>
+
+<%= display_link_to_previous if params[:back_to] %>
+
+<%= link_to @resource[:pluralized], :action => 'index' %> ›
+ <%= _("Edit") %>
+
+<%= typus_block :location => @resource[:self], :partial => 'edit' %>
+
+<%
+ options = { :action => 'update',
+ :id => @item.id ,
+ :back_to => params[:back_to],
+ :resource => params[:resource],
+ :resource_id => params[:resource_id]}
+ button = _("Save %{resource}", :resource => @resource[:human_name])
+%>
+
+<%= render "form", :options => options, :button => button %>
+
+<%= typus_relationships %>
diff --git a/vendor/plugins/typus/app/views/admin/resources/index.html.erb b/vendor/plugins/typus/app/views/admin/resources/index.html.erb
new file mode 100644
index 0000000..bd38435
--- /dev/null
+++ b/vendor/plugins/typus/app/views/admin/resources/index.html.erb
@@ -0,0 +1,21 @@
+<% content_for :sidebar do %>
+ <%= typus_block :location => @resource[:self], :partial => 'sidebar' %>
+ <%= actions %>
+ <%= export %>
+ <%= search %>
+ <%= filters %>
+<% end %>
+
+<%= @resource[:pluralized] %> <%= remove_filter_link %>
+
+<%= typus_block :location => @resource[:self], :partial => 'index' %>
+
+<% unless @items.count.zero? -%>
+ <%= build_list(@resource[:class], @fields, @items) %>
+ <%= pagination %>
+<% else %>
+
+ <% message = @resource[:class].count.zero? ? "There are no %{records}." : "There are no %{records} under this filter." %>
+
<%= _(message, :records => @resource[:human_name].pluralize.downcase) %>
+
+<% end %>
diff --git a/vendor/plugins/typus/app/views/admin/resources/new.html.erb b/vendor/plugins/typus/app/views/admin/resources/new.html.erb
new file mode 100644
index 0000000..441f70d
--- /dev/null
+++ b/vendor/plugins/typus/app/views/admin/resources/new.html.erb
@@ -0,0 +1,22 @@
+<% content_for :sidebar do %>
+ <%= typus_block :location => @resource[:self], :partial => 'sidebar' %>
+ <%= actions %>
+<% end %>
+
+<%= display_link_to_previous if params[:back_to] %>
+
+<%= link_to @resource[:pluralized], :action => 'index' %> ›
+ <%= _("New") %>
+
+<%= typus_block :location => @resource[:self], :partial => 'new' %>
+
+<%
+ options = { :action => 'create',
+ :back_to => params[:back_to],
+ :selected => params[:selected],
+ :resource => params[:resource],
+ :resource_id => params[:resource_id] }
+ button = _("Create %{resource}", :resource => @resource[:human_name])
+%>
+
+<%= render "form", :options => options, :button => button %>
diff --git a/vendor/plugins/typus/app/views/admin/resources/show.html.erb b/vendor/plugins/typus/app/views/admin/resources/show.html.erb
new file mode 100644
index 0000000..6b82872
--- /dev/null
+++ b/vendor/plugins/typus/app/views/admin/resources/show.html.erb
@@ -0,0 +1,45 @@
+<% content_for :sidebar do %>
+ <%= typus_block :location => @resource[:self], :partial => 'sidebar' %>
+ <%= actions %>
+ <%= search %>
+<% end %>
+
+<%= link_to @resource[:pluralized], :action => 'index' %> ›
+ <%= _("Show") %>
+
+<%= typus_block :location => @resource[:self], :partial => 'show' %>
+
+
+<%- @fields.each do |field| -%>
+ <%=h @resource[:class].human_attribute_name(field.first) %>
+ <%-
+ data_type = field.last
+ raw_data = @item.send(field.first)
+ data = case data_type
+ when :boolean
+ boolean_hash = @resource[:class].typus_boolean(field.first)
+ !raw_data.nil? ? boolean_hash["#{raw_data}".to_sym] : @resource[:class].typus_options_for(:nil)
+ when :belongs_to
+ if !raw_data.nil?
+ controller = raw_data.class.name.extract_resource.pluralize
+ action = raw_data.class.typus_options_for(:default_action_on_item)
+ options = { :controller => controller, :action => action, :id => raw_data }
+ link_to raw_data.to_label, options
+ else
+ h(raw_data)
+ end
+ when :file
+ typus_preview(@item, field.first)
+ when :text
+ defined?(RDiscount) ? markdown(raw_data) : simple_format(h(raw_data))
+ when :selector
+ @item.mapping(field.first)
+ else
+ h(raw_data)
+ end
+ -%>
+ <%= !data.blank? ? data : ('') %>
+<%- end -%>
+
+
+<%= typus_relationships %>
diff --git a/vendor/plugins/typus/app/views/admin/shared/_footer.html.erb b/vendor/plugins/typus/app/views/admin/shared/_footer.html.erb
new file mode 100644
index 0000000..cb0d6a0
--- /dev/null
+++ b/vendor/plugins/typus/app/views/admin/shared/_footer.html.erb
@@ -0,0 +1 @@
+<%= link_to 'Typus', 'http://core.typuscms.com/' %> by <%= link_to 'intraducibles.com', 'http://intraducibles.com' %>.
diff --git a/vendor/plugins/typus/app/views/admin/templates/_boolean.html.erb b/vendor/plugins/typus/app/views/admin/templates/_boolean.html.erb
new file mode 100644
index 0000000..3e7b954
--- /dev/null
+++ b/vendor/plugins/typus/app/views/admin/templates/_boolean.html.erb
@@ -0,0 +1,4 @@
+
+ <%= form.label attribute, label_text, :class => 'inline_label' %>
+ <%= form.check_box attribute, options %>
+
\ No newline at end of file
diff --git a/vendor/plugins/typus/app/views/admin/templates/_date.html.erb b/vendor/plugins/typus/app/views/admin/templates/_date.html.erb
new file mode 100644
index 0000000..1a40ae0
--- /dev/null
+++ b/vendor/plugins/typus/app/views/admin/templates/_date.html.erb
@@ -0,0 +1,9 @@
+<%
+ custom = { :include_blank => false }
+ options.merge!(custom)
+%>
+
+
+ <%= form.label attribute, label_text %>
+ <%= form.date_select attribute, options, html_options %>
+
\ No newline at end of file
diff --git a/vendor/plugins/typus/app/views/admin/templates/_datetime.html.erb b/vendor/plugins/typus/app/views/admin/templates/_datetime.html.erb
new file mode 100644
index 0000000..25ffae8
--- /dev/null
+++ b/vendor/plugins/typus/app/views/admin/templates/_datetime.html.erb
@@ -0,0 +1,9 @@
+<%
+ custom = { :include_blank => false }
+ options.merge!(custom)
+%>
+
+
+ <%= form.label attribute, label_text %>
+ <%= form.datetime_select attribute, options, html_options %>
+
\ No newline at end of file
diff --git a/vendor/plugins/typus/app/views/admin/templates/_file.html.erb b/vendor/plugins/typus/app/views/admin/templates/_file.html.erb
new file mode 100644
index 0000000..e8eccab
--- /dev/null
+++ b/vendor/plugins/typus/app/views/admin/templates/_file.html.erb
@@ -0,0 +1,19 @@
+<%
+
+ if @item.send(attribute).exists?
+ message = _("Remove %{attribute}", :attribute => @item.class.human_attribute_name(attribute).downcase)
+ label_text << <<-HTML
+ #{link_to message, { :action => 'detach',
+ :id => @item.id,
+ :attachment => attribute },
+ :confirm => _("Are you sure?")}
+ HTML
+ end
+
+%>
+
+
+ <%= form.label attribute, label_text %>
+ <%= form.file_field attribute, options %>
+ <%= typus_preview(@item, attribute) %>
+
diff --git a/vendor/plugins/typus/app/views/admin/templates/_password.html.erb b/vendor/plugins/typus/app/views/admin/templates/_password.html.erb
new file mode 100644
index 0000000..4b24a19
--- /dev/null
+++ b/vendor/plugins/typus/app/views/admin/templates/_password.html.erb
@@ -0,0 +1,4 @@
+
+ <%= form.label attribute, label_text %>
+ <%= form.password_field attribute, options %>
+
\ No newline at end of file
diff --git a/vendor/plugins/typus/app/views/admin/templates/_selector.html.erb b/vendor/plugins/typus/app/views/admin/templates/_selector.html.erb
new file mode 100644
index 0000000..206054e
--- /dev/null
+++ b/vendor/plugins/typus/app/views/admin/templates/_selector.html.erb
@@ -0,0 +1,9 @@
+<%
+ values = @resource[:class]::const_get("#{attribute.upcase}")
+ values = values.invert if values.kind_of?(Hash)
+%>
+
+
+ <%= form.label attribute, label_text %>
+ <%= form.select attribute, values, options, html_options %>
+
diff --git a/vendor/plugins/typus/app/views/admin/templates/_string.html.erb b/vendor/plugins/typus/app/views/admin/templates/_string.html.erb
new file mode 100644
index 0000000..e757989
--- /dev/null
+++ b/vendor/plugins/typus/app/views/admin/templates/_string.html.erb
@@ -0,0 +1,22 @@
+<%
+
+ # Read only fields.
+ if @resource[:class].typus_field_options_for(:read_only).to_s.include?(attribute)
+ custom = { :readonly => 'readonly' }
+ label_text << " #{_("Read only")} "
+ end
+
+ # Auto generated fields.
+ if @resource[:class].typus_field_options_for(:auto_generated).include?(attribute)
+ custom = { :auto_generated => true }
+ label_text << " #{_("Auto generated")} "
+ end
+
+ options.merge!(custom) if custom
+
+%>
+
+
+ <%= form.label attribute, label_text %>
+ <%= form.text_field attribute, options %>
+
\ No newline at end of file
diff --git a/vendor/plugins/typus/app/views/admin/templates/_text.html.erb b/vendor/plugins/typus/app/views/admin/templates/_text.html.erb
new file mode 100644
index 0000000..102249e
--- /dev/null
+++ b/vendor/plugins/typus/app/views/admin/templates/_text.html.erb
@@ -0,0 +1,9 @@
+<%
+ custom = { :rows => @resource[:class].typus_options_for(:form_rows) }
+ options = options.merge!(custom)
+%>
+
+
+ <%= form.label attribute, label_text %>
+ <%= form.text_area attribute, options %>
+
\ No newline at end of file
diff --git a/vendor/plugins/typus/app/views/admin/templates/_time.html.erb b/vendor/plugins/typus/app/views/admin/templates/_time.html.erb
new file mode 100644
index 0000000..748acbc
--- /dev/null
+++ b/vendor/plugins/typus/app/views/admin/templates/_time.html.erb
@@ -0,0 +1,9 @@
+<%
+ custom = { :include_blank => false }
+ options.merge!(custom)
+%>
+
+
+ <%= form.label attribute, label_text %>
+ <%= form.time_select attribute, options, html_options %>
+
\ No newline at end of file
diff --git a/vendor/plugins/typus/app/views/layouts/admin.html.erb b/vendor/plugins/typus/app/views/layouts/admin.html.erb
new file mode 100644
index 0000000..233dfe3
--- /dev/null
+++ b/vendor/plugins/typus/app/views/layouts/admin.html.erb
@@ -0,0 +1,69 @@
+
+
+
+
+
+
+
+
+ <%= page_title %>
+
+ <%= stylesheet_link_tag 'admin/reset',
+ 'admin/screen',
+ 'admin/jquery.fancybox-1.3.0' %>
+ <%= yield :stylesheets -%>
+
+ <%= javascript_include_tag 'admin/jquery-1.4.1.min',
+ 'admin/jquery.fancybox-1.3.0.pack',
+ 'admin/application' %>
+ <%= yield :javascripts -%>
+
+
+
+
+
+
+
+
+
+
+
+
+ <%= display_flash_message %>
+ <%= yield %>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/vendor/plugins/typus/app/views/layouts/typus.html.erb b/vendor/plugins/typus/app/views/layouts/typus.html.erb
new file mode 100644
index 0000000..d6c12a8
--- /dev/null
+++ b/vendor/plugins/typus/app/views/layouts/typus.html.erb
@@ -0,0 +1,33 @@
+
+
+
+
+
+
+
+
+
+
+ <%= page_title %>
+
+ <%= stylesheet_link_tag 'admin/reset', :media => 'screen' %>
+ <%= stylesheet_link_tag 'admin/screen', :media => 'screen' %>
+
+
+
+
+
+
+
<%= Typus::Configuration.options[:app_name] %>
+ <%= display_flash_message %>
+ <%= yield %>
+
+
+
+ <%= typus_block :location => 'shared', :partial => 'footer' %>
+
+
+
+
+
\ No newline at end of file
diff --git a/vendor/plugins/typus/app/views/typus/dashboard.html.erb b/vendor/plugins/typus/app/views/typus/dashboard.html.erb
new file mode 100644
index 0000000..248d3d7
--- /dev/null
+++ b/vendor/plugins/typus/app/views/typus/dashboard.html.erb
@@ -0,0 +1,9 @@
+<% content_for :sidebar do %>
+ <%= typus_block :location => 'dashboard', :partial => 'sidebar' %>
+<% end %>
+
+<%= _("Dashboard") %>
+
+<%= applications %>
+
+<%= resources %>
diff --git a/vendor/plugins/typus/app/views/typus/recover_password.html.erb b/vendor/plugins/typus/app/views/typus/recover_password.html.erb
new file mode 100644
index 0000000..7c64fa9
--- /dev/null
+++ b/vendor/plugins/typus/app/views/typus/recover_password.html.erb
@@ -0,0 +1,16 @@
+<% form_for :typus_user, :url => { :action => :recover_password } do |form| %>
+
+
+
+
+ <%= form.label :email, Typus.user_class.human_attribute_name(:email) %>
+ <%= form.text_field :email, :size => 20, :class => 'text' %>
+
+
+
+ <%= submit_tag _("Recover password"), :class => 'button' %> <%= link_to _("I remember my password"), admin_sign_in_path %>
+
+
+
+
+<% end %>
\ No newline at end of file
diff --git a/vendor/plugins/typus/app/views/typus/reset_password.html.erb b/vendor/plugins/typus/app/views/typus/reset_password.html.erb
new file mode 100644
index 0000000..475c7b0
--- /dev/null
+++ b/vendor/plugins/typus/app/views/typus/reset_password.html.erb
@@ -0,0 +1,25 @@
+<% form_for :typus_user, :url => { :action => :reset_password } do |form| %>
+
+ <%= hidden_field_tag :token, @typus_user.token %>
+
+ <%= error_messages_for :typus_user, :header_message => nil, :message => nil %>
+
+
+
+
+ <%= form.label :password, Typus.user_class.human_attribute_name(:password) %>
+ <%= form.password_field :password, :size => 20, :class => 'text' %>
+
+
+
+ <%= form.label :password_confirmation, Typus.user_class.human_attribute_name(:password_confirmation) %>
+ <%= form.password_field :password_confirmation, :size => 20, :class => 'text' %>
+
+
+
+ <%= submit_tag _("Change password"), :class => 'button' %> <%= link_to _("I remember my password"), admin_sign_in_path %>
+
+
+
+
+<% end %>
\ No newline at end of file
diff --git a/vendor/plugins/typus/app/views/typus/sign_in.html.erb b/vendor/plugins/typus/app/views/typus/sign_in.html.erb
new file mode 100644
index 0000000..b0d100b
--- /dev/null
+++ b/vendor/plugins/typus/app/views/typus/sign_in.html.erb
@@ -0,0 +1,21 @@
+<% form_for :typus_user, :url => { :action => 'sign_in' } do |form| %>
+
+
+
+
+ <%= form.label :email, Typus.user_class.human_attribute_name(:email) %>
+ <%= form.text_field :email, :size => 20, :class => 'text' %>
+
+
+
+ <%= form.label :password, Typus.user_class.human_attribute_name(:password) %>
+ <%= form.password_field :password, :size => 20, :class => 'text' %>
+
+
+
+ <%= submit_tag _("Sign in"), :class => 'button' %> <%= link_to _("Recover password"), admin_recover_password_path if Typus::Configuration.options[:email] %>
+
+
+
+
+<% end %>
\ No newline at end of file
diff --git a/vendor/plugins/typus/app/views/typus/sign_up.html.erb b/vendor/plugins/typus/app/views/typus/sign_up.html.erb
new file mode 100644
index 0000000..10ec701
--- /dev/null
+++ b/vendor/plugins/typus/app/views/typus/sign_up.html.erb
@@ -0,0 +1,16 @@
+<% form_for :typus_user, :url => { :action => :sign_up } do |form| %>
+
+
+
+
+ <%= form.label :email, Typus.user_class.human_attribute_name(:email) %>
+ <%= form.text_field :email, :size => 20, :class => 'text' %>
+
+
+
+ <%= submit_tag _("Sign up"), :class => 'button' %>
+
+
+
+
+<% end %>
\ No newline at end of file
diff --git a/vendor/plugins/typus/app/views/typus_mailer/reset_password_link.erb b/vendor/plugins/typus/app/views/typus_mailer/reset_password_link.erb
new file mode 100644
index 0000000..d9ff4ab
--- /dev/null
+++ b/vendor/plugins/typus/app/views/typus_mailer/reset_password_link.erb
@@ -0,0 +1,6 @@
+
+<%= _("You can update your password at") %>:
+
+ <%= @url %>
+
+<%= _("If you didn't request a password update, you can ignore this message") %>
diff --git a/vendor/plugins/typus/config/locales/ca.yml b/vendor/plugins/typus/config/locales/ca.yml
new file mode 100644
index 0000000..3b99610
--- /dev/null
+++ b/vendor/plugins/typus/config/locales/ca.yml
@@ -0,0 +1,118 @@
+# Catalan translations for Typus
+# by Lleïr Borràs
+
+ca:
+
+ "A valid token is required": "Es necessita un token vàlid."
+ "Actions": "Accions"
+ "Active": "Actiu"
+ "Add": "Afegir"
+ "Add new": "Afegir nou"
+ "Are you sure?": "Estàs segur?"
+ "Are you sure you want to leave this page?": "Estàs segur que vols abandonar aquesta pàgina?"
+ "Are you sure you want to sign out and end your session?": "Estàs segur que vols sortir i tancar la sessió?"
+ "As you're not the admin or the owner of this record you cannot edit it": "Com que no ets l'administrador o el propietari d'aquest registre no el pots editar."
+
+ "Change password": "Canviar contrassenya"
+ "Change %{attribute}?": "Canviar %{attribute}?"
+ "Checked if active": "Marca-ho per activar"
+ "Click OK to continue, or click Cancel to stay on this page": "Prem OK per continuar, o prem Cancel·lar per romandre en aquesta página."
+ "Create %{resource}": "Crear %{resource}"
+
+ "Dashboard": "Panell de control"
+ "Do you want to cancel it?": "Vols cancel·lar-lo?"
+ "Documentation": "Documentació"
+ "Down": "Baixar"
+
+ "Edit": "Editar"
+ "Enter your email below to create the first user": "Introdueix el teu email per crear el primer usuari."
+ "Error! Typus User or role doesn't exist": "Error! Typus User o el rol no existixen."
+
+ "False": "Fals"
+ "Filter": "Filtrar"
+ "Filter by": "Filtrar per"
+
+ "Go to": "Anar a"
+
+ "I remember my password": "Recordo la meva contrassenya"
+ "If you didn't request a password update, you can ignore this message": "Si no has demanat una actualització de la teva contrassenya, pots ignorar aquest missatge."
+ "If you have made any changes to the fields without clicking the Save/Update entry button, your changes will be lost": "Si has realitzat algun canvi en els camps sense premer el botó Guardar/Actualitzar, els teus canvis es perdran."
+ "Inactive": "Inactiu"
+
+ "Last few days": "Últims dies"
+ "Last 30 days": "Últims 30 dies"
+ "Last 7 days": "Últims 7 dies"
+ "License": "Llicència"
+ "Logged as": "Identificat com"
+ "Login": "Login"
+
+ "New": "Nou"
+ "Next": "Següent"
+
+ "Options": "Opcions"
+
+ "Password recovery link sent to your email": "L'enllaç de recuperació de contrassenya enviat al teu correu electrònic."
+ "Previous": "Anterior"
+
+ "Record moved %{to}": "Registre desplaçat %{to}."
+ "Recover password": "Recuperar contrassenya"
+ "Remove": "Esborrar"
+ "Remove %{attribute}": "Esborrar %{attribute}"
+ "Remove filter": "Treure filtre"
+ "Reset password": "Canviar contrassenya"
+ "Resources": "Recursos"
+
+ "Save %{resource}": "Guardar %{resource}"
+ "Search": "Cercar"
+ "Search by": "Cercar per"
+ "Setup": "Configurar"
+ "Send us feedback": "Envians comentaris"
+ "Show": "Mostrar"
+ "Sign in": "Entrar"
+ "Sign out": "Sortir"
+ "Sign up": "Crear compte"
+ "Submit a bug report": "Informar d'un error"
+ "System Users Administration": "Administrar usuaris del sistema"
+
+ "That doesn't seem like a valid email address": "Això no sembla ser una adreça de correu electrònic vàlida."
+ "The email and/or password you entered is invalid": "El correu i/o la contrasenya proporcionats no són vàlids."
+ "There are not defined applications in config/typus/*.yml": "No hi ha aplicacions definides a config/typus/*.yml"
+ "There are no %{records}": "No hi han %{records}."
+ "There are no %{records} under this filter": "No hi han %{records} amb aquest filtre."
+ "Today": "Avui"
+ "Toggle is disabled": "Alternar està desactivat."
+ "True": "Cert"
+
+ "Unrelate %{unrelate_model} from %{unrelate_model_from}?": "Deslligat %{unrelate_model} de %{unrelate_model_from}?"
+ "Up": "Pujar"
+
+ "You're adding a new %{resource_from}": "Estàs afegint un nou %{resource_from}."
+ "You're adding a new %{resource_from} to %{resource_to}": "Estàs afegint un nou %{resource_from} a %{resource_to}."
+ "You're not allowed to remove Typus Users": "No pots esborrar usuaris de typus."
+ "You're not allowed to toggle status": "No pots canviar el teu estat."
+ "You are about to delete a %{model}.\nAre you sure you want to continue?":
+ "You can update your password at": "Pots actualitzar la teva contrassenya a "
+ "You can't change your role": "No pots canviar-te tu mateix el rol."
+ "You can't remove yourself": "No et pots eliminar a tu mateix."
+ "You can't toggle your status": "No pots canviar-te l'estat."
+ "You're updating a %{resource_from}": "Estàs actualitzant un %{resource_from}."
+ "You're updating a %{resource_from} for %{resource_to}": "Estàs actualitzant un %{resource_from} de %{resource_to}."
+ "Your new password is %{password}": "La teva nova contrassenya és %{password}."
+
+ "View %{attribute}": "Veure %{attribute}"
+ "View site": "Veure la web"
+
+ "%{attachment} can't be removed": "%{attachment} no es pot esborrar."
+ "%{attachment} removed": "%{attachment} esborrat."
+ "%{current_user_role} can't delete this item": "%{current_user_role} no pot esborrar aquest element."
+ "%{current_user_role} can't display items": "%{current_user_role} no pot mostrar els elements."
+ "%{current_user_role} can't go to %{action} on %{controller}": "%{current_user_role} no pot visitar %{action} a %{controller}."
+ "%{current_user_role} can't perform action. (%{action})": "%{current_user_role} no pot realitzar l'acció. (%{action})"
+ "%{model} filtered by %{filtered_by}": "%{model} filtrats per %{filtered_by}"
+ "%{model} successfully created": "%{model} satisfactòriament creat."
+ "%{model} successfully updated": "%{model} satisfactòriament actualitzat."
+ "%{model} successfully removed": "%{model} satisfactòriament eliminat."
+ "%{model} %{attribute} changed": "%{model} %{attribute} canviat."
+ "%{model_a} related to %{model_b}": "%{model_a} relacionat amb %{model_b}."
+ "%{model_a} successfully assigned to %{model_b}": "%{model_a} assignat satisfactòriament a %{model_b}."
+ "%{model_a} unrelated from %{model_b}": "%{model_a} no està relacionat amb %{model_b}."
diff --git a/vendor/plugins/typus/config/locales/de.yml b/vendor/plugins/typus/config/locales/de.yml
new file mode 100644
index 0000000..e4766ad
--- /dev/null
+++ b/vendor/plugins/typus/config/locales/de.yml
@@ -0,0 +1,118 @@
+# German translations for Typus
+# by Michael Grunewalder
+
+de:
+
+ "A valid token is required": "Ein gültiges Merkmal ist erforderlich"
+ "Actions": "Aktionen"
+ "Active":
+ "Add": "Zufügen"
+ "Add new": "Erstellen"
+ "Are you sure?":
+ "Are you sure you want to leave this page?": "Sind Sie sicher, dass Sie diese Seite verlassen möchten?"
+ "Are you sure you want to sign out and end your session?": "Wollen Sie sich abmelden und die Sitzung beenden?"
+ "As you're not the admin or the owner of this record you cannot edit it": "Nur der Administrator oder der Eigent7uuml;er des Datensates kann ihn bearbeiten"
+
+ "Change password": "Passwort ändern"
+ "Change %{attribute}?": "%{attribute}ändern?"
+ "Checked if active": "Angekreuzt wenn activiert"
+ "Click OK to continue, or click Cancel to stay on this page": "Klicken Sie OK zum Fortfahren oder Abbrechen um auf dieser Seite zu bleiben"
+ "Create %{resource}": "Erstellen %{resource}"
+
+ "Dashboard": "Dashboard"
+ "Do you want to cancel it?": "Wollen Sie abbrechen?"
+ "Documentation": "Dokumentation"
+ "Down": "Runter"
+
+ "Edit": "Bearbeiten"
+ "Enter your email below to create the first user": "Geben Sie Ihre Email Adresse unten ein, um den ersten Benutzer zu erstellen"
+ "Error! Typus User or role doesn't exist": "Fehler: Typus Benutzer oder Rolle existiert nicht"
+
+ "False": "Falsch"
+ "Filter": "Filter"
+ "Filter by": "Filter nach"
+
+ "Go to": "Gehe zu"
+
+ "I remember my password": "Ich erinnere mein Passwort"
+ "If you didn't request a password update, you can ignore this message": "Falls Sie keine Passwort Äderung beantragt haben, können Sie diese nachricht ignorieren"
+ "If you have made any changes to the fields without clicking the Save/Update entry button, your changes will be lost": "Wenn Sie Änderungen an Feldern vorgenommen haben, ohne den Speichern/Bearbeiten Knopf gedr7uuml;ckt zu haben, gehen diese Änderungen verloren"
+ "Inactive":
+
+ "Last few days": "Letzten Tage"
+ "Last 30 days": "Letzten 30 Tage"
+ "Last 7 days": "Letzten 7 Tage"
+ "License": "Lizenz"
+ "Logged as": "Aufgezeichnet als"
+ "Login": "Anmeldem"
+
+ "New": "Neu"
+ "Next": "Nächster"
+
+ "Options": "Optionen"
+
+ "Password recovery link sent to your email": "Der Link zur Wiederfindung des Passworts wurde an Ihre Email Adresse gechickt"
+ "Previous": "Vorheriger"
+
+ "Record moved %{to}": "Datensatz verschoben nach %{to}"
+ "Recover password": "Passwort vergessen?"
+ "Remove":
+ "Remove %{attribute}": "%{attribute} entfernen"
+ "Remove filter": "Filter entfernen"
+ "Reset password": "Passwort zurücksetzen"
+ "Resources": "Resourcen"
+
+ "Save %{resource}":
+ "Search": "Suchen"
+ "Search by": "Suchen nach"
+ "Send us feedback": "Senden Sie uns Ihr Feedback"
+ "Setup": "Einrichten"
+ "Show": "Anzeigen"
+ "Sign in": "Anmelden"
+ "Sign out": "Abmelden"
+ "Sign up": "Konto erstellen"
+ "Submit a bug report":
+ "System Users Administration": "System Benutzer Verwaltung"
+
+ "That doesn't seem like a valid email address": "Das schein keine gültige Email Dresse zu sein"
+ "The email and/or password you entered is invalid": "Die eingegebene Email Adresse und/oder das Passwort ist ungültig"
+ "There are no %{records}": "Keine %{records}vorhanden"
+ "There are no %{records} under this filter": "Unter diesem Filter sind keine %{records} vorhanden"
+ "There are not defined applications in config/typus/*.yml": "Es gibt keine definierten Anwendungen in config/typus/*.yml"
+ "Today": "Heute"
+ "Toggle is disabled": "Schalter ist deaktiviert"
+ "True": "Richtig"
+
+ "Unrelate %{unrelate_model} from %{unrelate_model_from}?": "Verknüpfung zwischen %{unrelate_model} und %{unrelate_model_from}entfernen?"
+ "Up": "Hoch"
+
+ "View %{attribute}":
+ "View site": "Site anzeigen"
+
+ "You're adding a new %{resource_from}": "Sie erstellen eine neue %{resource_from}"
+ "You're adding a new %{resource_from} to %{resource_to}": "Sie fügen eine neue %{resource_from} an %{resource_to}"
+ "You're not allowed to remove Typus Users": "Sie sind nicht berechtigt den Typus Benutzer zu entfernen"
+ "You're not allowed to toggle status": "Sie können den Status nicht umschalten"
+ "You're updating a %{resource_from}": "Sie bearbeiten eine %{resource_from}"
+ "You're updating a %{resource_from} for %{resource_to}": "Sie bearbeiten eine %{resource_from} fü %{resource_to}"
+ "You are about to delete a %{model}.\nAre you sure you want to continue?":
+ "You can update your password at": "Sie k7ouml;nnen Ihr Passwort ändern unter"
+ "You can't change your role": "Sie können Ihre Rolle nicht ändern"
+ "You can't remove yourself": "Sie können sich selbst nicht entfernen"
+ "You can't toggle your status": "Sie können Ihren Status nicht umschalten"
+ "Your new password is %{password}": "Ihr neues Passwort ist %{password}"
+
+ "%{attachment} can't be removed":
+ "%{attachment} removed":
+ "%{current_user_role} can't delete this item": "%{current_user_role} kann diesen Eintrag nicht löschen"
+ "%{current_user_role} can't display items": "%{current_user_role} kann Einträge nicht anzeigen"
+ "%{current_user_role} can't go to %{action} on %{controller}": "%{current_user_role} kann %{action} von %{controller} nicht asuführen"
+ "%{current_user_role} can't perform action. (%{action})": "%{current_user_role} kann die Aktion nicht ausführen. (%{action})"
+ "%{model} filtered by %{filtered_by}": "%{model} gefiltert nach %{filtered_by}"
+ "%{model} successfully created": "%{model} erfolgreich erstellt"
+ "%{model} successfully removed": "%{model} erfolgreich gelöscht"
+ "%{model} successfully updated": "%{model} erfolgreich geändert"
+ "%{model} %{attribute} changed": "%{model} %{attribute} geändert"
+ "%{model_a} related to %{model_b}": "%{model_a} ist verknüpft mit %{model_b}"
+ "%{model_a} successfully assigned to %{model_b}": "%{model_a} erfolgreich an %{model_b} zugewiesen"
+ "%{model_a} unrelated from %{model_b}": "%{model_a} unverbunden mit %{model_b}"
diff --git a/vendor/plugins/typus/config/locales/es.yml b/vendor/plugins/typus/config/locales/es.yml
new file mode 100644
index 0000000..dd0c24d
--- /dev/null
+++ b/vendor/plugins/typus/config/locales/es.yml
@@ -0,0 +1,118 @@
+# Spanish translations for Typus
+# by Felipe Talavera
+
+es:
+
+ "A valid token is required": "Se requiere un token válido."
+ "Actions": "Acciones"
+ "Active": "Activo"
+ "Add": "Añadir"
+ "Add new": "Añadir nuevo"
+ "Are you sure?": "¿Estás seguro?"
+ "Are you sure you want to leave this page?": "¿Estás seguro que quieres abandonar esta página?"
+ "Are you sure you want to sign out and end your session?": "¿Estás seguro que quieres salir y cerrar la sessión?"
+ "As you're not the admin or the owner of this record you cannot edit it": "Como no eres el admin o el propietario de este registro no puedes editarlo."
+
+ "Change password": "Cambiar contraseña"
+ "Change %{attribute}?": "Cambiar %{attribute}?"
+ "Checked if active": "Marca para activar"
+ "Click OK to continue, or click Cancel to stay on this page": "Pulse OK para continuar, o pulse Cancelar para permanecer en esta página."
+ "Create %{resource}": "Crear %{resource}"
+
+ "Dashboard": "Panel de control"
+ "Do you want to cancel it?": "¿Quieres cancelarlo?"
+ "Documentation": "Documentación"
+ "Down": "Bajar"
+
+ "Edit": "Editar"
+ "Enter your email below to create the first user": "Introduce tu email para crear el primer usuario."
+ "Error! Typus User or role doesn't exist": "Error! Typus User o el role no existen."
+
+ "False": "Falso"
+ "Filter": "Filtrar"
+ "Filter by": "Filtrar por"
+
+ "Go to": "Ir a"
+
+ "I remember my password": "Recuerdo mi contraseña"
+ "If you didn't request a password update, you can ignore this message": "Si no pediste una actualización de tu contraseña, puedes ignorar este mensaje."
+ "If you have made any changes to the fields without clicking the Save/Update entry button, your changes will be lost": "Si has relizado algún cambio en los campos sin pulsar en el botón de Guardar/Actualizar, tus cambios se perderán."
+ "Inactive": "Inactivo"
+
+ "Last few days": "Últimos dias"
+ "Last 30 days": "Últimos 30 dias"
+ "Last 7 days": "Últimos 7 dias"
+ "License": "Licencia"
+ "Logged as": "Autenticado como"
+ "Login": "Login"
+
+ "New": "Nuevo"
+ "Next": "Siguiente"
+
+ "Options": "Opciones"
+
+ "Password recovery link sent to your email": "Enlace de recuperación de contraseña enviado a tu correo electrónico."
+ "Previous": "Anterior"
+
+ "Record moved %{to}": "Record moved %{to}."
+ "Recover password": "Recuperar contraseña"
+ "Remove": "Eliminar"
+ "Remove %{attribute}": "Borrar %{attribute}"
+ "Remove filter": "Quitar filtro"
+ "Reset password": "Cambiar contraseña"
+ "Resources": "Recursos"
+
+ "Save %{resource}": "Guardar %{resource}"
+ "Search": "Búsqueda"
+ "Search by": "Buscar por"
+ "Setup": "Configurar"
+ "Send us feedback": "Envianos tu comentarios"
+ "Show": "Mostrar"
+ "Sign in": "Entrar"
+ "Sign out": "Salir"
+ "Sign up": "Crear cuenta"
+ "Submit a bug report": "Reporta un error"
+ "System Users Administration": "Administrar usuarios del sistema"
+
+ "That doesn't seem like a valid email address": "Eso no parecia una dirección válida de correo electrónico."
+ "The email and/or password you entered is invalid": "El correo y/o la contraseña proporcionadas no son válidas."
+ "There are not defined applications in config/typus/*.yml": "No hay aplicaciones definidas en config/typus/*.yml"
+ "There are no %{records}": "No hay %{records}."
+ "There are no %{records} under this filter": "No hay %{records} con este filtro."
+ "Today": "Hoy"
+ "Toggle is disabled": "Alternat està desactivado."
+ "True": "Verdadero"
+
+ "Unrelate %{unrelate_model} from %{unrelate_model_from}?": "Desvincular %{unrelate_model} de %{unrelate_model_from}?"
+ "Up": "Subir"
+
+ "You're adding a new %{resource_from}": "Estás añadiendo un nuevo %{resource_from}."
+ "You're adding a new %{resource_from} to %{resource_to}": "Estás añadiendo un nuevo %{resource_from} a %{resource_to}."
+ "You're not allowed to remove Typus Users": "No se te permite borrar usuarios de typus."
+ "You're not allowed to toggle status": "No se te permite cambiar tu estado."
+ "You are about to delete a %{model}.\nAre you sure you want to continue?": "Estás a punto de eliminar un %{model}.\n¿Seguro que deseas continuar?"
+ "You can update your password at": "Puedes actualizar tu contraseña en"
+ "You can't change your role": "No puedes cambiar tu propio rol."
+ "You can't remove yourself": "No te puedes eliminar a ti mismo."
+ "You can't toggle your status": "No puedes cambiar tu estado."
+ "You're updating a %{resource_from}": "Estás actualizando un %{resource_from}."
+ "You're updating a %{resource_from} for %{resource_to}": "Estás actualizando un %{resource_from} de %{resource_to}."
+ "Your new password is %{password}": "Tu nueva contraseña es %{password}."
+
+ "View %{attribute}":
+ "View site": "Ver web"
+
+ "%{attachment} can't be removed": "%{attachment} no puede ser borrado."
+ "%{attachment} removed": "%{attachment} borrado."
+ "%{current_user_role} can't delete this item": "%{current_user_role} no puede borrar este elemento."
+ "%{current_user_role} can't display items": "%{current_user_role} no puede mostrar los elementos."
+ "%{current_user_role} can't go to %{action} on %{controller}": "%{current_user_role} no pude ir a %{action} en %{controller}."
+ "%{current_user_role} can't perform action. (%{action})": "%{current_user_role} no puede realizar la acción. (%{action})"
+ "%{model} filtered by %{filtered_by}": "%{model} filtrados por %{filtered_by}"
+ "%{model} successfully created": "%{model} satisfactoriamente creado."
+ "%{model} successfully updated": "%{model} satisfactoriamente actualizado."
+ "%{model} successfully removed": "%{model} satisfactoriamente eliminado."
+ "%{model} %{attribute} changed": "%{model} %{attribute} cambiado."
+ "%{model_a} related to %{model_b}": "%{model_a} relacionado con %{model_b}."
+ "%{model_a} successfully assigned to %{model_b}": "%{model_a} asignado satisfactoriamente a %{model_b}."
+ "%{model_a} unrelated from %{model_b}": "%{model_a} no esta relacionado con %{model_b}."
diff --git a/vendor/plugins/typus/config/locales/fr.yml b/vendor/plugins/typus/config/locales/fr.yml
new file mode 100644
index 0000000..d64fdc7
--- /dev/null
+++ b/vendor/plugins/typus/config/locales/fr.yml
@@ -0,0 +1,118 @@
+# French translations for Typus
+# by Ned Baldessin
+
+fr:
+
+ "A valid token is required": "Un token valide est nécessaire"
+ "Actions":
+ "Active":
+ "Add": "Ajouter"
+ "Add new": "Ajouter nouveau"
+ "Are you sure?":
+ "Are you sure you want to leave this page?": "Êtes-vous certain de vouloir quitter cette page?"
+ "Are you sure you want to sign out and end your session?":
+ "As you're not the admin or the owner of this record you cannot edit it": "Vous n'êtes pas le propriétaire de cette entrée, ou un administrateur, par conséquent vous ne pouvez pas le modifier"
+
+ "Change password": "Modifier le mot de passe"
+ "Change %{attribute}?": "Changer %{attribute}?"
+ "Checked if active": "Coché si actif"
+ "Click OK to continue, or click Cancel to stay on this page": "Cliquez sur Ok pour continuer, ou Annuler pour rester sur cette page."
+ "Create %{resource}": "Créer %{resource}"
+
+ "Dashboard": "Tableau de bord"
+ "Do you want to cancel it?": "Voulez-vous annuler?"
+ "Documentation":
+ "Down": "Descendre"
+
+ "Edit": "Éditer"
+ "Enter your email below to create the first user": "Entrez votre adresse email pour créer le premier utilisateur"
+ "Error! Typus User or role doesn't exist": "Une erreur est survenue. L'utilisateur ou le rôle sont inconnus."
+
+ "False":
+ "Filter": "Filtrer"
+ "Filter by": "Filtrer par"
+
+ "Go to": "Aller"
+
+ "I remember my password": "Je me souviens du mot de passe"
+ "If you didn't request a password update, you can ignore this message": "Si vous n'avez pas demandé à mettre à jour votre mot de passe, vous pouvez ignorer ce message"
+ "If you have made any changes to the fields without clicking the Save/Update entry button, your changes will be lost": "Si vous avez effectué des modifications sans cliquer sur le bouton Enregistrer ou Mettre à jour, ces modifications seront perdues."
+ "Inactive":
+
+ "Last few days":
+ "Last 30 days":
+ "Last 7 days":
+ "License":
+ "Logged as": "Identifié comme"
+ "Login": "Identification"
+
+ "New": "Nouveau"
+ "Next": "Suivant"
+
+ "Options": "Options"
+
+ "Password recovery link sent to your email":
+ "Previous": "Précédent"
+
+ "Record moved %{to}": "Entrées réordonnées"
+ "Recover password":
+ "Remove": "Supprimer"
+ "Remove %{attribute}": "Supprimer %{attribute}"
+ "Remove filter": "Supprimer le filtre"
+ "Reset password": "Renouveler le mot de passe"
+ "Resources": "Ressources"
+
+ "Save %{resource}":
+ "Search": "Recherche"
+ "Search by": "Rechercher par"
+ "Send us feedback":
+ "Setup": "Configurer"
+ "Show": "Voir"
+ "Sign in": "Entrer"
+ "Sign out": "Déconnexion"
+ "Sign up": "Ouvrir un compte"
+ "Submit a bug report":
+ "System Users Administration": "Modifier les utilisateurs de l'admin"
+
+ "That doesn't seem like a valid email address": "L'adresse email ne semble pas valide"
+ "The email and/or password you entered is invalid":
+ "There are no %{records}": "Il n'y aucun(e) %{records}."
+ "There are no %{records} under this filter": "Il n'y a aucun(e) %{records} avec ce filtre."
+ "There are not defined applications in config/typus/*.yml":
+ "Today":
+ "Toggle is disabled": "Le basculement est désactivé"
+ "True":
+
+ "Unrelate %{unrelate_model} from %{unrelate_model_from}?": "Dissocier %{unrelate_model} de %{unrelate_model_from}?"
+ "Up": "Monter"
+
+ "View %{attribute}":
+ "View site": "Voir le site"
+
+ "You can update your password at": "Vous pouvez modifier votre mot de passe ici"
+ "You can't change your role": "Vous ne pouvez pas changer votre propre rôle."
+ "You can't remove yourself": "Vous ne pouvez pas supprimer votre propre compte"
+ "You can't toggle your status": "Vous ne pouvez pas basculer votre statut"
+ "Your new password is %{password}": "Votre nouveau mot-de-passe est %{password}."
+ "You're adding a new %{resource_from}": "Vous ajoutez un nouveau %{resource_from}."
+ "You're adding a new %{resource_from} to %{resource_to}": "Vous ajoutez un(e) %{resource_from} à un(e) %{resource_to}."
+ "You're not allowed to remove Typus Users": "Vous n'avez pas le droit de supprimer des utilisateurs de l'administration"
+ "You're not allowed to toggle status": "Vous n'êtes pas autorisé à basculer votre statut"
+ "You're updating a %{resource_from}": "Vous mettez-à-jour un(e) %{resource_from}."
+ "You're updating a %{resource_from} for %{resource_to}": "Vous mettez-à-jour un(e) %{resource_from} pour un(e) %{resource_to}."
+ "You are about to delete a %{model}.\nAre you sure you want to continue?":
+
+ "%{attachment} removed":
+ "%{attachment} can't be removed":
+ "%{model} successfully created": "%{model} correctement créé(e)."
+ "%{model} successfully removed": "%{model} correctement supprimé(e)."
+ "%{model} successfully updated": "%{model} correctement mis(e)-à-jour."
+ "%{model} %{attribute} changed": "%{model} %{attribute} modifié."
+ "%{model_a} related to %{model_b}": "%{model_a} associé à %{model_b}."
+ "%{model_a} successfully assigned to %{model_b}": "%{model_a} associé à %{model_b}."
+ "%{model_a} unrelated from %{model_b}": "%{model_a} dissocié de %{model_b}."
+ "%{current_user_role} can't display items": "Un utilisateur de rôle %{current_user_role} ne peut pas afficher ces éléments."
+ "%{current_user_role} can't delete this item": "%{current_user_role} ne peut supprimer cette entrée"
+ "%{current_user_role} can't go to %{action} on %{controller}": "%{current_user_role} ne peut effectuer %{action} sur %{controller}"
+ "%{current_user_role} can't perform action. (%{action})": "%{current_user_role} ne peut effectuer l'action (%{action})"
+ "%{current_user_role} can't perform action (%{action})": "%{current_user_role} ne peut effectuer l'action (%{action})"
diff --git a/vendor/plugins/typus/config/locales/hu.yml b/vendor/plugins/typus/config/locales/hu.yml
new file mode 100644
index 0000000..39efa20
--- /dev/null
+++ b/vendor/plugins/typus/config/locales/hu.yml
@@ -0,0 +1,128 @@
+# Hungarian translations for Typus (template)
+# by Tompa Gábor - http://github.com/tompagabor/typus
+
+hu:
+
+ "A valid token is required": "eg érvényes token szükséges"
+ "Actions": "Akciók"
+ "Active": "Aktív"
+ "Add": "Hozzáad"
+ "Add new": "Új hozzáadása"
+ "Are you sure?": "Biztos vagy benne?"
+ "Are you sure you want to leave this page?": "Biztosan el akarod hagyni ezt az oldalt?"
+ "Are you sure you want to sign out and end your session?": "Biztosan ki akarsz lépni?"
+ "As you're not the admin or the owner of this record you cannot edit it": "Ezt a bejegyzést csak a tuljadonosa és az adminok szerkeszthetik."
+
+ "Change %{attribute}?": "Megváltoztatod ezt: %{attribute}?"
+ "Change password": "Jelszó megváltoztatása"
+ "Checked if active": "Bejelölve aktív"
+ "Click OK to continue, or click Cancel to stay on this page": "Kattints az OK gombra a továbblépéshez, vagy a mégse gombbal maradhatsz a mostani oldalon"
+ "Create %{resource}": "%{resource} létrehozása"
+
+ "Dashboard": "Admin nyitólap"
+ "Do you want to cancel it?": "Szeretnéd visszavonni?"
+ "Documentation": "Dokumentáció"
+ "Down": "Le"
+
+ "Edit": "Szerkesztés"
+ "Enter your email below to create the first user": "Írd be az e-mail címed az első felhasználó létrehozásához"
+ "Error! Typus User or role doesn't exist": "Hiba! Typus felhasználó vagy a jogosultság nem létezik"
+
+ "False": "Hamis"
+ "Filter":
+ "Filter by": "Szűrés"
+
+ "Go to": "Ide"
+
+ "I remember my password": "Emlékszem a jelszavamra"
+ "If you didn't request a password update, you can ignore this message": "Hogyha nem kértél jelszó emlékesztetőt, nyugodtan töröld ki ezt a levelet."
+ "If you have made any changes to the fields without clicking the Save/Update entry button, your changes will be lost": "Ha a módosítások után nem kattintassz a Mentés/Firssítés gombra, el fognak veszni a változtatások."
+ "Inactive": "Inaktív"
+
+ "Last few days": "Utóbbi néhány nap"
+ "Last 30 days": "Az elmúlt 30 nap"
+ "Last 7 days": "Az elmúlt 7 nap"
+ "License": "Licensz"
+ "Logged as": "Bejelentkezve "
+ "Login": "Belépés"
+
+ "New": "Új"
+ "Next": "Következő"
+
+ "Options": "Opciók"
+
+ "Password recovery link sent to your email": "A jelszó helyreállító linket elküldtük az email címedre."
+ "Previous": "Előző"
+
+ "Record moved %{to}": "A bejegyzés áthelyezve: %{to}"
+ "Recover password": "Jelszó helyreállítás"
+ "Remove": "Eltávolítás"
+ "Remove %{attribute}": "Szűrő %{attribute}"
+ "Remove filter": "Szűrő eltávolítása"
+ "Reset password": "Jelszó módosítása"
+ "Resources": "Források"
+
+ "Save %{resource}": "%{resource} mentése"
+ "Search": "Keresés"
+ "Search by": "Keresés"
+ "Send us feedback": "Visszajelzés küldése"
+ "Setup": "Beállítás"
+ "Show": "Mutatás"
+ "Sign in": "Bejelentkezés"
+ "Sign out": "Kijelentkezés"
+ "Sign up": "Regisztráció"
+ "Submit a bug report": "Hiba jelzése a fejlesztőknek"
+ "System Users Administration": "Rendszeradminisztrátorok kezelése"
+
+ "That doesn't seem like a valid email address": "Ez nem tűnik valódi e-mail címnek"
+ "The email and/or password you entered is invalid": "A megadott felhasználónév és/vagy jelszó nem megfelelő"
+ "There are no %{records}": "Nincsenek %{records}"
+ "There are no %{records} under this filter": "Nincsenek %{records} a szűrővel"
+ "There are not defined applications in config/typus/*.yml": "Nincsen definiált alkalmazás a config/typus/*.yml fájlban"
+ "Today": "Ma"
+ "Toggle is disabled": "Toggle letitlva"
+ "True": "Igaz"
+
+ "Unrelate %{unrelate_model} from %{unrelate_model_from}?": "Unrelate %{unrelate_model} from %{unrelate_model_from}?"
+ "Up": "Fel"
+
+ "View %{attribute}":
+ "View site": "A weboldal megtekintése"
+
+ "You're adding a new %{resource_from}": "%{resource_from} hozzáadása"
+ "You're adding a new %{resource_from} to %{resource_to}": "%{resource_from} hozzáadása %{resource_to} rekordhoz"
+ "You're not allowed to toggle status": "Nincsen jogod változtatni a státuszon"
+ "You're not allowed to remove Typus Users": "Nincsen jogod törölni Typus felhasználókat"
+ "You're updating a %{resource_from}": "%{resource_from} frissítése"
+ "You're updating a %{resource_from} for %{resource_to}": "%{resource_from} frissítése %{resource_to} rekordhoz"
+ "You are about to delete a %{model}.\nAre you sure you want to continue?":
+ "You can update your password at": "Frissítheted a jelszavad"
+ "You can't change your role": "Nincsen jogod megváltoztatni a jogosultsági szintedet"
+ "You can't remove yourself": "Nem törölheted saját magad"
+ "You can't toggle your status": "Nincs jogod változtatni a státuszodat"
+ "Your new password is %{password}": "Az új jelszavad: %{password}"
+
+ "%{attachment} can't be removed": "%{attachment} nem törölhető"
+ "%{attachment} removed": "%{attachment} törölve"
+ "%{current_user_role} can't delete this item": "%{current_user_role} nem lehet törölni az elemet"
+ "%{current_user_role} can't display items": "%{current_user_role} nem nézheti meg az elemeket"
+ "%{current_user_role} can't go to %{action} on %{controller}": "%{current_user_role} nem hívhatja meg ezt a műveletet"
+ "%{current_user_role} can't perform action. (%{action})": "%{current_user_role} nem futtathatja ez a műveletet (%{action})"
+ "%{model} filtered by %{filtered_by}": "%{model} szűrve %{filtered_by}"
+ "%{model} successfully created": "%{model} sikeresen létrehozva"
+ "%{model} successfully removed": "%{model} sikeresen törölve"
+ "%{model} successfully updated": "%{model} sikereseb frissítve"
+ "%{model} %{attribute} changed": "%{model} %{attribute} megváltozott"
+ "%{model_a} related to %{model_b}": "%{model_a} kapcsolódik %{model_b}hez"
+ "%{model_a} successfully assigned to %{model_b}": "%{model} sikeresen hozzárendelve %{model_b}hez"
+ "%{model_a} unrelated from %{model_b}": "%{model_a} nem kapcsolódik %{model_b}hez "
+
+ "Title": "Cím"
+ "Lead": "Bevezető"
+ "Author": "Szerző"
+ "Last editor": "Utoljára módosította"
+ "State": "Állapot"
+ "Body": "Tartalom"
+ "Comment count": "Hozzászólások száma"
+ "Has comment": "Hozzászólás engedélyezve"
+ "Published at": "Publikálva"
diff --git a/vendor/plugins/typus/config/locales/language.yml.template b/vendor/plugins/typus/config/locales/language.yml.template
new file mode 100644
index 0000000..577a22c
--- /dev/null
+++ b/vendor/plugins/typus/config/locales/language.yml.template
@@ -0,0 +1,118 @@
+# translations for Typus (template)
+# by
+
+:
+
+ "A valid token is required":
+ "Actions":
+ "Active":
+ "Add":
+ "Add new":
+ "Are you sure?":
+ "Are you sure you want to leave this page?":
+ "Are you sure you want to sign out and end your session?":
+ "As you're not the admin or the owner of this record you cannot edit it":
+
+ "Change %{attribute}?":
+ "Change password":
+ "Checked if active":
+ "Click OK to continue, or click Cancel to stay on this page":
+ "Create %{resource}":
+
+ "Dashboard":
+ "Do you want to cancel it?":
+ "Documentation":
+ "Down":
+
+ "Edit":
+ "Enter your email below to create the first user":
+ "Error! Typus User or role doesn't exist":
+
+ "False":
+ "Filter":
+ "Filter by":
+
+ "Go to":
+
+ "I remember my password":
+ "If you didn't request a password update, you can ignore this message":
+ "If you have made any changes to the fields without clicking the Save/Update entry button, your changes will be lost":
+ "Inactive":
+
+ "Last few days":
+ "Last 30 days":
+ "Last 7 days":
+ "License":
+ "Logged as":
+ "Login":
+
+ "New":
+ "Next":
+
+ "Options":
+
+ "Password recovery link sent to your email":
+ "Previous":
+
+ "Record moved %{to}":
+ "Recover password":
+ "Remove":
+ "Remove %{attribute}":
+ "Remove filter":
+ "Reset password":
+ "Resources":
+
+ "Save %{resource}":
+ "Search":
+ "Search by":
+ "Send us feedback":
+ "Setup":
+ "Show":
+ "Sign in":
+ "Sign out":
+ "Sign up":
+ "Submit a bug report":
+ "System Users Administration":
+
+ "That doesn't seem like a valid email address":
+ "The email and/or password you entered is invalid":
+ "There are no %{records}":
+ "There are no %{records} under this filter":
+ "There are not defined applications in config/typus/*.yml":
+ "Today":
+ "Toggle is disabled":
+ "True":
+
+ "Unrelate %{unrelate_model} from %{unrelate_model_from}?":
+ "Up":
+
+ "View %{attribute}":
+ "View site":
+
+ "You're adding a new %{resource_from}":
+ "You're adding a new %{resource_from} to %{resource_to}":
+ "You're not allowed to toggle status":
+ "You're not allowed to remove Typus Users":
+ "You're updating a %{resource_from}":
+ "You're updating a %{resource_from} for %{resource_to}":
+ "You are about to delete a %{model}.\nAre you sure you want to continue?":
+ "You can update your password at":
+ "You can't change your role":
+ "You can't remove yourself":
+ "You can't toggle your status":
+ "Your new password is %{password}":
+
+ "%{attachment} can't be removed":
+ "%{attachment} removed":
+ "%{current_user_role} can't delete this item":
+ "%{current_user_role} can't display items":
+ "%{current_user_role} can't go to %{action} on %{controller}":
+ "%{current_user_role} can't perform action. (%{action})":
+ "%{model} filtered by %{filtered_by}":
+ "%{model} successfully created":
+ "%{model} successfully removed":
+ "%{model} successfully updated":
+ "%{model} %{attribute} changed":
+ "%{model_a} related to %{model_b}":
+ "%{model_a} successfully assigned to %{model_b}":
+ "%{model_a} unrelated from %{model_b}":
diff --git a/vendor/plugins/typus/config/locales/models/README.md b/vendor/plugins/typus/config/locales/models/README.md
new file mode 100644
index 0000000..6db80fd
--- /dev/null
+++ b/vendor/plugins/typus/config/locales/models/README.md
@@ -0,0 +1,8 @@
+Important
+=========
+
+Model translations are disabled by default.
+
+It's responsability of the application to translate the models. If
+you want to use the provided translations add the `config/locales/models`
+to the I18n load path.
diff --git a/vendor/plugins/typus/config/locales/models/ca_models.yml b/vendor/plugins/typus/config/locales/models/ca_models.yml
new file mode 100644
index 0000000..27a6e17
--- /dev/null
+++ b/vendor/plugins/typus/config/locales/models/ca_models.yml
@@ -0,0 +1,16 @@
+# Catalan translations for Typus
+# by Lleïr Borràs
+
+ca:
+ activerecord:
+ models:
+ typus_user: Usuari
+ attributes:
+ typus_user:
+ email: "Correu electrònic"
+ first_name: "Nom"
+ last_name: "Cognoms"
+ password: "Contrasenya"
+ password_confirmation: "Confirmar contrasenya"
+ status: "Estat"
+ role: "Rol"
diff --git a/vendor/plugins/typus/config/locales/models/de_models.yml b/vendor/plugins/typus/config/locales/models/de_models.yml
new file mode 100644
index 0000000..d2c7143
--- /dev/null
+++ b/vendor/plugins/typus/config/locales/models/de_models.yml
@@ -0,0 +1,13 @@
+de:
+ activerecord:
+ models:
+ typus_user: "Typus Benutzer"
+ attributes:
+ typus_user:
+ email:
+ first_name: "Vorname"
+ last_name: "Nachname"
+ password: "Passwort"
+ password_confirmation: "Passwort Bestätigung"
+ status:
+ role:
diff --git a/vendor/plugins/typus/config/locales/models/es_models.yml b/vendor/plugins/typus/config/locales/models/es_models.yml
new file mode 100644
index 0000000..4be1100
--- /dev/null
+++ b/vendor/plugins/typus/config/locales/models/es_models.yml
@@ -0,0 +1,13 @@
+es:
+ activerecord:
+ models:
+ typus_user: Usuario
+ attributes:
+ typus_user:
+ email: "Correo electronico"
+ first_name: "Nombre"
+ last_name: "Apellidos"
+ password: "Contraseña"
+ password_confirmation: "Confirmar contraseña"
+ status: "Estado"
+ role: "Rol"
diff --git a/vendor/plugins/typus/config/locales/models/fr_models.yml b/vendor/plugins/typus/config/locales/models/fr_models.yml
new file mode 100644
index 0000000..4e68999
--- /dev/null
+++ b/vendor/plugins/typus/config/locales/models/fr_models.yml
@@ -0,0 +1,13 @@
+fr:
+ activerecord:
+ models:
+ typus_user: "Utilisateur admin"
+ attributes:
+ typus_user:
+ email:
+ first_name: "Prénom"
+ last_name: "Nom de famille"
+ password: "Mot de passe"
+ password_confirmation: "Confirmation du mot de passe"
+ status: "État"
+ role:
diff --git a/vendor/plugins/typus/config/locales/models/hu_models.yml b/vendor/plugins/typus/config/locales/models/hu_models.yml
new file mode 100644
index 0000000..14e5c59
--- /dev/null
+++ b/vendor/plugins/typus/config/locales/models/hu_models.yml
@@ -0,0 +1,13 @@
+hu:
+ activerecord:
+ models:
+ typus_user: "Typus felhasználó"
+ attributes:
+ typus_user:
+ email:
+ first_name: "Vezetéknév"
+ last_name: "Keresznév"
+ password: "Jelszó"
+ password_confirmation: "Jelszó megerősítés"
+ status: "Státusz"
+ role: "Jogosultsági szint"
diff --git a/vendor/plugins/typus/config/locales/models/pt-BR_models.yml b/vendor/plugins/typus/config/locales/models/pt-BR_models.yml
new file mode 100644
index 0000000..a05ba42
--- /dev/null
+++ b/vendor/plugins/typus/config/locales/models/pt-BR_models.yml
@@ -0,0 +1,13 @@
+pt-BR:
+ activerecord:
+ models:
+ typus_user: "Usuário do sistema"
+ attributes:
+ typus_user:
+ email:
+ first_name: "Primeiro nome"
+ last_name: "Sobrenome"
+ password: "Senha"
+ password_confirmation: "Senha confirmação"
+ status:
+ role:
diff --git a/vendor/plugins/typus/config/locales/models/ru_models.yml b/vendor/plugins/typus/config/locales/models/ru_models.yml
new file mode 100644
index 0000000..9c4851d
--- /dev/null
+++ b/vendor/plugins/typus/config/locales/models/ru_models.yml
@@ -0,0 +1,17 @@
+ru:
+ activerecord:
+ models:
+ typus_user:
+ one: "Системный пользователь"
+ few: "Системных пользователей"
+ many: "Системные пользователи"
+ attributes:
+ typus_user:
+ email:
+ first_name: "Имя"
+ last_name: "Фамлия"
+ password: "Пароль"
+ password_confirmation: "Подтверждение пароля"
+ status: "Статус"
+ role: "Роль"
+ language: "Язык"
diff --git a/vendor/plugins/typus/config/locales/pt-BR.yml b/vendor/plugins/typus/config/locales/pt-BR.yml
new file mode 100644
index 0000000..dbeaa40
--- /dev/null
+++ b/vendor/plugins/typus/config/locales/pt-BR.yml
@@ -0,0 +1,118 @@
+# Portuguese (pt-br) translations for Typus
+# by George Guimarães
+
+pt-BR:
+
+ "A valid token is required": "É necessário um token válido."
+ "Actions": "Ações"
+ "Active":
+ "Add": "Adicionar"
+ "Add new": "Adicionar novo"
+ "Are you sure?":
+ "Are you sure you want to leave this page?": "Tem certeza que quer sair desta página?"
+ "Are you sure you want to sign out and end your session?": "Tem certeza que quer sair e encerrar sua sessão?"
+ "As you're not the admin or the owner of this record you cannot edit it": "Como você não é o dono desse registro ou o admin, você não pode editá-lo."
+
+ "Change password": "Trocar senha"
+ "Change %{attribute}?": "Mudar %{attribute}?"
+ "Checked if active": "Marcar para ativar"
+ "Click OK to continue, or click Cancel to stay on this page": "Clique OK para continuar, ou clique em Cancelar para ficar nesta página."
+ "Create %{resource}": "Criar %{resource}"
+
+ "Dashboard": "Painel"
+ "Do you want to cancel it?": "Quer cancelar?"
+ "Documentation":
+ "Down": "Descer"
+
+ "Edit": "Editar"
+ "Enter your email below to create the first user": "Escreva seu email para criar o primeiro usuário"
+ "Error! Typus User or role doesn't exist": "Erro! Usuário ou função não existe."
+
+ "False": "Falso"
+ "Filter": "Filtrar"
+ "Filter by": "Filtrar por"
+
+ "Go to": "Ir a"
+
+ "I remember my password": "Lembro minha senha"
+ "If you didn't request a password update, you can ignore this message": "Se você não pediu uma renovação de senha, por favor ignore esta mensagem."
+ "If you have made any changes to the fields without clicking the Save/Update entry button, your changes will be lost": "Se você fez alterações nos campos e não clicou no botão de Salvar/Atualizar, suas alterações serão perdidas"
+ "Inactive":
+
+ "Last few days": "Últimos dias"
+ "Last 30 days": "Últimos 30 dias"
+ "Last 7 days": "Últimos 7 dias"
+ "License":
+ "Logged as": "Logado como"
+ "Login": "Login"
+
+ "New": "Novo"
+ "Next": "Próximo"
+
+ "Options": "Opções"
+
+ "Password recovery link sent to your email": "Link para recuperar senha enviado para seu email."
+ "Previous": "Anterior"
+
+ "Record moved %{to}": "Registro movido %{to}."
+ "Recover password": "Recuperar senha"
+ "Remove":
+ "Remove %{attribute}": "Remover %{attribute}"
+ "Remove filter": "Remover filtro"
+ "Reset password": "Trocar senha"
+ "Resources": "Recursos"
+
+ "Save %{resource}":
+ "Search": "Busca"
+ "Search by": "Buscar por"
+ "Send us feedback":
+ "Setup": "Configurar"
+ "Show": "Mostrar"
+ "Sign in": "Entrar"
+ "Sign out": "Sair"
+ "Sign up": "Criar conta"
+ "Submit a bug report":
+ "System Users Administration": "Administrar usuários do sistema"
+
+ "That doesn't seem like a valid email address": "Este não parece um email válido"
+ "The email and/or password you entered is invalid": "O email e/ou a senha que você colocou são inválidos."
+ "There are no %{records}": "Não há %{records}."
+ "There are no %{records} under this filter": "Não há %{records} com este filtro."
+ "There are not defined applications in config/typus/*.yml": "Não há aplicativos definidos em config/typus/*.yml"
+ "Toggle is disabled": "Toggle está desabilitado."
+ "Today": "Hoje"
+ "True": "Verdadeiro"
+
+ "Unrelate %{unrelate_model} from %{unrelate_model_from}?": "Desvincular %{unrelate_model} de %{unrelate_model_from}?"
+ "Up": "Subir"
+
+ "View %{attribute}": "Ver %{attribute}"
+ "View site": "Ver site"
+
+ "You're adding a new %{resource_from} to %{resource_to}": "Você está adicionando um novo %{resource_from} a %{resource_to}."
+ "You're adding a new %{resource_from}": "Você está adicionando um novo %{resource_from}."
+ "You're updating a %{resource_from} for %{resource_to}": "Você está atualizando um %{resource_from} de %{resource_to}."
+ "You're updating a %{resource_from}": "Você está atualizando um %{resource_from}."
+ "You are about to delete a %{model}.\nAre you sure you want to continue?":
+ "You can't toggle your status": "Você não pode mudar seu status."
+ "You're not allowed to toggle status": "Você não está autorizado a mudar o status."
+ "You can't remove yourself": "Você não pode apagar a si mesmo."
+ "You're not allowed to remove Typus Users": "Você não está autorizado a apagar usuários do sistema."
+ "You can update your password at": "Você pode atualizar sua senha em"
+ "Your new password is %{password}": "Sua nova senha é %{password}."
+ "You can't change your role": "Você não pode mudar sua própria função no sistema."
+
+ "%{attachment} can't be removed":
+ "%{attachment} removed":
+ "%{current_user_role} can't delete this item": "%{current_user_role} não pode apagar este item."
+ "%{current_user_role} can't display items": "%{current_user_role} não pode mostrar os items."
+ "%{current_user_role} can't go to %{action} on %{controller}": "%{current_user_role} não pode ir a %{action} no %{controller}."
+ "%{current_user_role} can't perform action. (%{action})": "%{current_user_role} não pode realizar a ação. (%{action})"
+ "%{model} filtered by %{filtered_by}": "%{model} filtrados por %{filtered_by}"
+ "%{model} successfully updated": "%{model} atualizado com sucesso."
+ "%{model} successfully created": "%{model} criado com sucesso."
+ "%{model} successfully removed": "%{model} removido com sucesso."
+ "%{model} %{attribute} changed": "%{model} %{attribute} atualizado."
+ "%{model_a} related to %{model_b}": "%{model_a} relacionado com %{model_b}."
+ "%{model_a} successfully assigned to %{model_b}": "%{model_a} atribuído com sucesso a %{model_b}."
+ "%{model_a} unrelated from %{model_b}": "%{model_a} não está relacionado com %{model_b}."
diff --git a/vendor/plugins/typus/config/locales/ru.yml b/vendor/plugins/typus/config/locales/ru.yml
new file mode 100644
index 0000000..d006599
--- /dev/null
+++ b/vendor/plugins/typus/config/locales/ru.yml
@@ -0,0 +1,118 @@
+# Russian (ru) translations for Typus
+# by Alexey Noskov
+
+ru:
+
+ "A valid token is required": "Необходим корректный ключ"
+ "Actions": "Действия"
+ "Active": "Активный"
+ "Add": "Добавить"
+ "Add new": "Добавить новый"
+ "Are you sure?": "Вы уверены?"
+ "Are you sure you want to leave this page?": "Вы уверены, что хотите покинуть страницу?"
+ "Are you sure you want to sign out and end your session?": "Вы уверены, что хотите выйти и завершить сессию?"
+ "As you're not the admin or the owner of this record you cannot edit it": "Вы не администратор и не владелец записи и не можете ее редактировать"
+
+ "Change password": "Сменить пароль"
+ "Change %{attribute}?": "Изменить %{attribute}?"
+ "Checked if active": "Отмечено, если активно"
+ "Click OK to continue, or click Cancel to stay on this page": "нажмите Ок, чтобы продолжить или Отмена, чтобы остаться на этой странице."
+ "Create %{resource}": "Создать %{resource}"
+
+ "Dashboard": "Обзор"
+ "Do you want to cancel it?": "Вы хотите отменить это?"
+ "Documentation": "Документация"
+ "Down": "Вниз"
+
+ "Edit": "Изменить"
+ "Enter your email below to create the first user":
+ "Error! Typus User or role doesn't exist":
+
+ "False":
+ "Filter": "фильтр"
+ "Filter by": "фильтр по"
+
+ "Go to": "Перейти к"
+
+ "I remember my password": "Запомнить пароль"
+ "If you didn't request a password update, you can ignore this message": "Если Вы не запрашивали обновление пароля, Вы можете проигнорировать это сообщение."
+ "If you have made any changes to the fields without clicking the Save/Update entry button, your changes will be lost": "Если вы сделали какие-то изменения, не кликая на Обновить/Сохранить, то они будут утеряны."
+ "Inactive": "Неактивный"
+
+ "Last few days": "Последние дней"
+ "Last 7 days": "Последние 7 дней"
+ "Last 30 days": "Последние 30 дней"
+ "License": "Лицензия"
+ "Logged as": "Вы вошли как"
+ "Login": "Редактировать"
+
+ "New": "Новый"
+ "Next": "Следующий"
+
+ "Options": "Опции"
+
+ "Password recovery link sent to your email": "Ссылка для восставновления пароля выслана по указанному E-Mail"
+ "Previous": "Предыдующий"
+
+ "Record moved %{to}": "Запись перемещена в %{to}."
+ "Recover password": "Восстановить пароль"
+ "Remove": "Удалить"
+ "Remove %{attribute}": "Удалить %{attribute}"
+ "Remove filter": "Удалить фильтр"
+ "Reset password": "Сбросить пароль"
+ "Resources": "Ресурсы"
+
+ "Save %{resource}": "Сохранить"
+ "Search": "Поиск"
+ "Search by": "Искать по"
+ "Send us feedback": "Обратная связь"
+ "Setup": "Установки"
+ "Show": "Показать"
+ "Sign in": "Войти"
+ "Sign out": "Выйти"
+ "Sign up": "Зарегистрироваться"
+ "Submit a bug report":
+ "System Users Administration": "Администрирование системных пользователей"
+
+ "That doesn't seem like a valid email address": "E-Mail некорректен"
+ "The email and/or password you entered is invalid": "E-Mail или пароль введены неверно"
+ "There are no %{records}": "%{records} не найдены"
+ "There are no %{records} under this filter": "%{records} по такому фильтру не найдены"
+ "There are not defined applications in config/typus/*.yml": "Ни одного приложения не определено в config/typus/*.yml"
+ "Today": "Сегодня"
+ "Toggle is disabled": "Переключение отключено"
+ "True": "ВЕРНО"
+
+ "Unrelate %{unrelate_model} from %{unrelate_model_from}?": "Отсоединить %{unrelate_model} от %{unrelate_model_from}?"
+ "Up": "Вверх"
+
+ "View %{attribute}":
+ "View site": "Перейти к сайту"
+
+ "You can update your password at": "Вы можете установить свой пароль на"
+ "You can't change your role": "Вы не можете менять свою собственную роль"
+ "You can't remove yourself": "Вы не можете удалить себя"
+ "You can't toggle your status": "Вы не можете менять свой статус"
+ "Your new password is %{password}": "Ваш новый пароль: %{password}."
+ "You're adding a new %{resource_from}": "Вы добавляете новый %{resource_from}."
+ "You're adding a new %{resource_from} to %{resource_to}": "Вы добавляете новый %{resource_from} для %{resource_to}."
+ "You're updating a %{resource_from}": "Вы редактируете %{resource_from}."
+ "You're updating a %{resource_from} for %{resource_to}": "Вы редактируете %{resource_from} для %{resource_to}."
+ "You're not allowed to remove Typus Users": "Вам не позволено удалять системных пользователей"
+ "You're not allowed to toggle status": "Вам не позволено менять статус"
+ "You are about to delete a %{model}.\nAre you sure you want to continue?":
+
+ "%{attachment} can't be removed": "%{attachment} не может быть удалено"
+ "%{attachment} removed": "%{attachment} удалено"
+ "%{model} filtered by %{filtered_by}": "%{model}, фильтрация по %{filtered_by}"
+ "%{current_user_role} can't delete this item": "%{current_user_role} не может удалить эту запись"
+ "%{current_user_role} can't display items": "%{current_user_role} не может отобразить записи"
+ "%{current_user_role} can't go to %{action} on %{controller}": "%{current_user_role} не может перейти к %{action} в %{controller}."
+ "%{current_user_role} can't perform action. (%{action})": "%{current_user_role} не может выполнить действие. (%{action})"
+ "%{model} successfully created": "%{model} создан"
+ "%{model} successfully removed": "%{model} удален"
+ "%{model} successfully updated": "%{model} успешно обновлен"
+ "%{model} %{attribute} changed": "%{model} %{attribute} изменен"
+ "%{model_a} related to %{model_b}": "%{model_a} присоединен с %{model_b}."
+ "%{model_a} successfully assigned to %{model_b}": "%{model_a} добавлен к %{model_b}."
+ "%{model_a} unrelated from %{model_b}": "%{model_a} отсоединен от %{model_b}."
diff --git a/vendor/plugins/typus/generators/typus/USAGE b/vendor/plugins/typus/generators/typus/USAGE
new file mode 100644
index 0000000..a736f70
--- /dev/null
+++ b/vendor/plugins/typus/generators/typus/USAGE
@@ -0,0 +1,13 @@
+Description:
+
+ This generator will create an easy-to-use interface to allow trusted
+ users edit structured content. (Admin scaffold generator)
+
+Examples:
+ `./script/generate typus`
+
+ creates needed files with `TypusUser` as the Typus user.
+
+ `./script/generate typus -u User
+
+ creates needed files with `User` as the Typus user.
diff --git a/vendor/plugins/typus/generators/typus/lib/insert_commands.rb b/vendor/plugins/typus/generators/typus/lib/insert_commands.rb
new file mode 100644
index 0000000..1b89263
--- /dev/null
+++ b/vendor/plugins/typus/generators/typus/lib/insert_commands.rb
@@ -0,0 +1,41 @@
+# Mostly pinched from http://github.com/ryanb/nifty-generators/tree/master
+
+Rails::Generator::Commands::Base.class_eval do
+
+ def file_contains?(relative_destination, line)
+ File.read(destination_path(relative_destination)).include?(line)
+ end
+
+end
+
+Rails::Generator::Commands::Create.class_eval do
+
+ def insert_into(file, line)
+ logger.insert "#{line} into #{file}"
+ unless options[:pretend] || file_contains?(file, line)
+ gsub_file file, /^(class|module|.*Routes).*$/ do |match|
+ "#{match}\n #{line}"
+ end
+ end
+ end
+
+end
+
+Rails::Generator::Commands::Destroy.class_eval do
+
+ def insert_into(file, line)
+ logger.remove "#{line} from #{file}"
+ unless options[:pretend]
+ gsub_file file, "\n #{line}", ''
+ end
+ end
+
+end
+
+Rails::Generator::Commands::List.class_eval do
+
+ def insert_into(file, line)
+ logger.insert "#{line} into #{file}"
+ end
+
+end
diff --git a/vendor/plugins/typus/generators/typus/lib/string.rb b/vendor/plugins/typus/generators/typus/lib/string.rb
new file mode 100644
index 0000000..5e4247f
--- /dev/null
+++ b/vendor/plugins/typus/generators/typus/lib/string.rb
@@ -0,0 +1,5 @@
+class String
+
+ def name; self; end
+
+end
diff --git a/vendor/plugins/typus/generators/typus/templates/README b/vendor/plugins/typus/generators/typus/templates/README
new file mode 100644
index 0000000..7bc52c2
--- /dev/null
+++ b/vendor/plugins/typus/generators/typus/templates/README
@@ -0,0 +1,44 @@
+= Customizing Typus
+
+You can overwrite and extend Admin::MasterController with your methods.
+
+Actions have to be defined in config/typus/application.yml :
+
+ Post:
+ actions:
+ index: custom_action
+ edit: custom_action_for_an_item
+
+And you have to add permissions on config/typus/application_roles.yml
+to have access to them.
+
+ admin:
+ Post: create, read, update, destroy, custom_action
+
+ editor:
+ Post: create, read, update, custom_action_for_an_item
+
+And your controller should look like this ...
+
+ class Admin::PostsController < MasterController
+
+ def index
+ end
+
+ def custom_action
+ end
+
+ def custom_action_for_an_item
+ end
+
+ end
+
+# TODO: Instructions on the tableless resources.
+
+# This controller was generated because you have defined a resource
+# on config/typus/XXXXXX_roles.yml which is a tableless model.
+#
+# admin:
+# <%= resource %>: index
+#
+
diff --git a/vendor/plugins/typus/generators/typus/templates/config/typus/README b/vendor/plugins/typus/generators/typus/templates/config/typus/README
new file mode 100644
index 0000000..558295c
--- /dev/null
+++ b/vendor/plugins/typus/generators/typus/templates/config/typus/README
@@ -0,0 +1,71 @@
+# Models
+
+This is an example of a **Typus** enabled model with all available
+options. You can use this example to customize your YAML files which
+only have set the most common settings.
+
+ Post:
+ fields:
+ list: id, title, category_id, created_at, is_published?
+ form: title, body, is_published?, created_at
+ show: title, category, is_published?
+ relationship: title, status
+ options:
+ auto_generated:
+ booleans:
+ is_published: ["Yes, it is", "No, it isn't"]
+ date_formats:
+ created_at: post_long
+ selectors:
+ read_only:
+ filter_by_date_range: valid_until
+ templates:
+ body: rich_text
+ actions:
+ index: cleanup
+ edit: send_as_newsletter
+ show: rebuild
+ export: csv, xml, pdf
+ order_by: created_at
+ relationships:
+ filters: is_published?, created_at, category_id
+ search: title, body
+ application: Application
+ description: Some text to describe the model
+ options:
+ default_action_on_item: show
+ end_year: 2015
+ form_rows: 25
+ index_after_save: false
+ minute_step: 15
+ nil: 'nil'
+ on_header: true
+ only_user_items: true
+ per_page: 5
+ sidebar_selector: 5
+ start_year: 1990
+
+Note: To define namespace models use :: as a separator. (i.e. Delayed::Job)
+
+# Roles
+
+In this file you can configure the actions available for each of
+your models on the application. You can also use the 'all' shortcut
+to allow the user the access to all actions.
+
+ admin:
+ Post: create, read, update, delete
+ Category: create, read, update, delete
+ TypusUser: all
+
+ editor:
+ Post: create, read, update
+ Category: read, update
+
+You can also define `resources` which are not related to a model,
+for example to control MemCached or see the Starling queue
+statistics.
+
+ admin:
+ Starling: index
+ MemCached: index, cleanup
diff --git a/vendor/plugins/typus/generators/typus/templates/config/typus/application.yml b/vendor/plugins/typus/generators/typus/templates/config/typus/application.yml
new file mode 100644
index 0000000..e028dc6
--- /dev/null
+++ b/vendor/plugins/typus/generators/typus/templates/config/typus/application.yml
@@ -0,0 +1,5 @@
+# Typus Models Configuration File
+#
+# Use the README file as a reference to customize settings.
+
+<%= configuration[:base] %>
\ No newline at end of file
diff --git a/vendor/plugins/typus/generators/typus/templates/config/typus/application_roles.yml b/vendor/plugins/typus/generators/typus/templates/config/typus/application_roles.yml
new file mode 100644
index 0000000..3423ca7
--- /dev/null
+++ b/vendor/plugins/typus/generators/typus/templates/config/typus/application_roles.yml
@@ -0,0 +1,6 @@
+# Typus Roles Configuration File
+#
+# Use the README file as a reference to customize settings.
+
+admin:
+<%= configuration[:roles] %>
\ No newline at end of file
diff --git a/vendor/plugins/typus/generators/typus/templates/config/typus/typus.yml b/vendor/plugins/typus/generators/typus/templates/config/typus/typus.yml
new file mode 100644
index 0000000..64bebb3
--- /dev/null
+++ b/vendor/plugins/typus/generators/typus/templates/config/typus/typus.yml
@@ -0,0 +1,17 @@
+# Typus Models Configuration File
+#
+# Use the README file as a reference to customize settings.
+
+<%= options[:user_class_name] %>:
+ fields:
+ default: first_name, last_name, email, role, status
+ list: email, role, status
+ form: first_name, last_name, role, email, password, password_confirmation, language
+ options:
+ selectors: role, language
+ booleans:
+ status: Active, Inactive
+ filters: status, role
+ search: first_name, last_name, email, role
+ application: Admin Panel
+ description: Admin Panel Users Administration
diff --git a/vendor/plugins/typus/generators/typus/templates/config/typus/typus_roles.yml b/vendor/plugins/typus/generators/typus/templates/config/typus/typus_roles.yml
new file mode 100644
index 0000000..7c9f901
--- /dev/null
+++ b/vendor/plugins/typus/generators/typus/templates/config/typus/typus_roles.yml
@@ -0,0 +1,6 @@
+# Typus Roles Configuration File
+#
+# Use the README file as a reference to customize settings.
+
+admin:
+ <%= options[:user_class_name] %>: all
diff --git a/vendor/plugins/typus/generators/typus/templates/controller.rb b/vendor/plugins/typus/generators/typus/templates/controller.rb
new file mode 100644
index 0000000..32e22fb
--- /dev/null
+++ b/vendor/plugins/typus/generators/typus/templates/controller.rb
@@ -0,0 +1,4 @@
+# Controller generated by Typus, use it to extend admin functionality.
+class Admin::<%= resource %>Controller < <%= inherits_from %>
+
+end
diff --git a/vendor/plugins/typus/generators/typus/templates/functional_test.rb b/vendor/plugins/typus/generators/typus/templates/functional_test.rb
new file mode 100644
index 0000000..02ebc69
--- /dev/null
+++ b/vendor/plugins/typus/generators/typus/templates/functional_test.rb
@@ -0,0 +1,11 @@
+require 'test_helper'
+
+# ControllerTest generated by Typus, use it to test the extended admin functionality.
+class Admin::<%= resource %>ControllerTest < ActionController::TestCase
+
+ # Replace this with your real tests.
+ test "the truth" do
+ assert true
+ end
+
+end
\ No newline at end of file
diff --git a/vendor/plugins/typus/generators/typus/templates/initializer.rb b/vendor/plugins/typus/generators/typus/templates/initializer.rb
new file mode 100644
index 0000000..92d43c1
--- /dev/null
+++ b/vendor/plugins/typus/generators/typus/templates/initializer.rb
@@ -0,0 +1,26 @@
+# Be sure to restart your server when you modify this file.
+
+# System wide options
+
+Typus::Configuration.options[:app_name] = '<%= options[:app_name] %>'
+# Typus::Configuration.options[:email] = 'admin@example.com'
+# Typus::Configuration.options[:file_preview] = :typus_preview
+# Typus::Configuration.options[:file_thumbnail] = :typus_thumbnail
+# Typus::Configuration.options[:relationship] = 'typus_users'
+# Typus::Configuration.options[:root] = 'admin'
+Typus::Configuration.options[:user_class_name] = '<%= options[:user_class_name] %>'
+Typus::Configuration.options[:user_fk] = '<%= options[:user_fk] %>'
+
+# Model options which can also be defined by model on the yaml files.
+
+# Typus::Configuration.options[:default_action_on_item] = 'edit'
+# Typus::Configuration.options[:end_year] = Time.now.year + 1
+# Typus::Configuration.options[:form_rows] = 15
+# Typus::Configuration.options[:index_after_save] = true
+# Typus::Configuration.options[:minute_step] = 5
+# Typus::Configuration.options[:nil] = 'nil'
+# Typus::Configuration.options[:on_header] = false
+# Typus::Configuration.options[:only_user_items] = false
+# Typus::Configuration.options[:per_page] = 15
+# Typus::Configuration.options[:sidebar_selector] = 5
+# Typus::Configuration.options[:start_year] = Time.now.year - 10
diff --git a/vendor/plugins/typus/generators/typus/templates/migration.rb b/vendor/plugins/typus/generators/typus/templates/migration.rb
new file mode 100644
index 0000000..a4ce6eb
--- /dev/null
+++ b/vendor/plugins/typus/generators/typus/templates/migration.rb
@@ -0,0 +1,22 @@
+class <%= migration_name %> < ActiveRecord::Migration
+
+ def self.up
+ create_table :<%= typus_users_table_name %> do |t|
+ t.string :first_name, :default => "", :null => false
+ t.string :last_name, :default => "", :null => false
+ t.string :role, :null => false
+ t.string :email, :null => false
+ t.boolean :status, :default => false
+ t.string :token, :null => false
+ t.string :salt, :null => false
+ t.string :crypted_password, :null => false
+ t.string :preferences
+ t.timestamps
+ end
+ end
+
+ def self.down
+ drop_table :<%= typus_users_table_name %>
+ end
+
+end
diff --git a/vendor/plugins/typus/generators/typus/templates/model.rb b/vendor/plugins/typus/generators/typus/templates/model.rb
new file mode 100644
index 0000000..a91a858
--- /dev/null
+++ b/vendor/plugins/typus/generators/typus/templates/model.rb
@@ -0,0 +1,8 @@
+class <%= options[:user_class_name] %> < ActiveRecord::Base
+
+ ROLE = Typus::Configuration.roles.keys.sort
+ LANGUAGE = Typus.locales
+
+ enable_as_typus_user
+
+end
diff --git a/vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/blank.gif b/vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/blank.gif
new file mode 100755
index 0000000..35d42e8
Binary files /dev/null and b/vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/blank.gif differ
diff --git a/vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_close.png b/vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_close.png
new file mode 100755
index 0000000..0703530
Binary files /dev/null and b/vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_close.png differ
diff --git a/vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_loading.png b/vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_loading.png
new file mode 100755
index 0000000..2503017
Binary files /dev/null and b/vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_loading.png differ
diff --git a/vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_nav_left.png b/vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_nav_left.png
new file mode 100755
index 0000000..ebaa6a4
Binary files /dev/null and b/vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_nav_left.png differ
diff --git a/vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_nav_right.png b/vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_nav_right.png
new file mode 100755
index 0000000..873294e
Binary files /dev/null and b/vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_nav_right.png differ
diff --git a/vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_shadow_e.png b/vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_shadow_e.png
new file mode 100755
index 0000000..2eda089
Binary files /dev/null and b/vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_shadow_e.png differ
diff --git a/vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_shadow_n.png b/vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_shadow_n.png
new file mode 100755
index 0000000..69aa10e
Binary files /dev/null and b/vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_shadow_n.png differ
diff --git a/vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_shadow_ne.png b/vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_shadow_ne.png
new file mode 100755
index 0000000..79f6980
Binary files /dev/null and b/vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_shadow_ne.png differ
diff --git a/vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_shadow_nw.png b/vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_shadow_nw.png
new file mode 100755
index 0000000..7182cd9
Binary files /dev/null and b/vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_shadow_nw.png differ
diff --git a/vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_shadow_s.png b/vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_shadow_s.png
new file mode 100755
index 0000000..d8858bf
Binary files /dev/null and b/vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_shadow_s.png differ
diff --git a/vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_shadow_se.png b/vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_shadow_se.png
new file mode 100755
index 0000000..541e3ff
Binary files /dev/null and b/vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_shadow_se.png differ
diff --git a/vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_shadow_sw.png b/vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_shadow_sw.png
new file mode 100755
index 0000000..b451689
Binary files /dev/null and b/vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_shadow_sw.png differ
diff --git a/vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_shadow_w.png b/vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_shadow_w.png
new file mode 100755
index 0000000..8a4e4a8
Binary files /dev/null and b/vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_shadow_w.png differ
diff --git a/vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_title_left.png b/vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_title_left.png
new file mode 100755
index 0000000..6049223
Binary files /dev/null and b/vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_title_left.png differ
diff --git a/vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_title_main.png b/vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_title_main.png
new file mode 100755
index 0000000..8044271
Binary files /dev/null and b/vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_title_main.png differ
diff --git a/vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_title_over.png b/vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_title_over.png
new file mode 100755
index 0000000..d9f458f
Binary files /dev/null and b/vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_title_over.png differ
diff --git a/vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_title_right.png b/vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_title_right.png
new file mode 100755
index 0000000..e36d9db
Binary files /dev/null and b/vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_title_right.png differ
diff --git a/vendor/plugins/typus/generators/typus/templates/public/images/admin/ui-icons.png b/vendor/plugins/typus/generators/typus/templates/public/images/admin/ui-icons.png
new file mode 100755
index 0000000..8ede620
Binary files /dev/null and b/vendor/plugins/typus/generators/typus/templates/public/images/admin/ui-icons.png differ
diff --git a/vendor/plugins/typus/generators/typus/templates/public/javascripts/admin/application.js b/vendor/plugins/typus/generators/typus/templates/public/javascripts/admin/application.js
new file mode 100644
index 0000000..4789b11
--- /dev/null
+++ b/vendor/plugins/typus/generators/typus/templates/public/javascripts/admin/application.js
@@ -0,0 +1,2 @@
+// Place your application-specific JavaScript functions and classes for
+// Typus here.
diff --git a/vendor/plugins/typus/generators/typus/templates/public/javascripts/admin/jquery-1.4.1.min.js b/vendor/plugins/typus/generators/typus/templates/public/javascripts/admin/jquery-1.4.1.min.js
new file mode 100644
index 0000000..0c7294c
--- /dev/null
+++ b/vendor/plugins/typus/generators/typus/templates/public/javascripts/admin/jquery-1.4.1.min.js
@@ -0,0 +1,152 @@
+/*!
+ * jQuery JavaScript Library v1.4.1
+ * http://jquery.com/
+ *
+ * Copyright 2010, John Resig
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * Includes Sizzle.js
+ * http://sizzlejs.com/
+ * Copyright 2010, The Dojo Foundation
+ * Released under the MIT, BSD, and GPL Licenses.
+ *
+ * Date: Mon Jan 25 19:43:33 2010 -0500
+ */
+(function(z,v){function la(){if(!c.isReady){try{r.documentElement.doScroll("left")}catch(a){setTimeout(la,1);return}c.ready()}}function Ma(a,b){b.src?c.ajax({url:b.src,async:false,dataType:"script"}):c.globalEval(b.text||b.textContent||b.innerHTML||"");b.parentNode&&b.parentNode.removeChild(b)}function X(a,b,d,f,e,i){var j=a.length;if(typeof b==="object"){for(var n in b)X(a,n,b[n],f,e,d);return a}if(d!==v){f=!i&&f&&c.isFunction(d);for(n=0;n-1){i=j.data;i.beforeFilter&&i.beforeFilter[a.type]&&!i.beforeFilter[a.type](a)||f.push(j.selector)}else delete x[o]}i=c(a.target).closest(f,
+a.currentTarget);m=0;for(s=i.length;m)[^>]*$|^#([\w-]+)$/,Qa=/^.[^:#\[\.,]*$/,Ra=/\S/,Sa=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,Ta=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,O=navigator.userAgent,
+va=false,P=[],L,$=Object.prototype.toString,aa=Object.prototype.hasOwnProperty,ba=Array.prototype.push,Q=Array.prototype.slice,wa=Array.prototype.indexOf;c.fn=c.prototype={init:function(a,b){var d,f;if(!a)return this;if(a.nodeType){this.context=this[0]=a;this.length=1;return this}if(typeof a==="string")if((d=Pa.exec(a))&&(d[1]||!b))if(d[1]){f=b?b.ownerDocument||b:r;if(a=Ta.exec(a))if(c.isPlainObject(b)){a=[r.createElement(a[1])];c.fn.attr.call(a,b,true)}else a=[f.createElement(a[1])];else{a=ra([d[1]],
+[f]);a=(a.cacheable?a.fragment.cloneNode(true):a.fragment).childNodes}}else{if(b=r.getElementById(d[2])){if(b.id!==d[2])return S.find(a);this.length=1;this[0]=b}this.context=r;this.selector=a;return this}else if(!b&&/^\w+$/.test(a)){this.selector=a;this.context=r;a=r.getElementsByTagName(a)}else return!b||b.jquery?(b||S).find(a):c(b).find(a);else if(c.isFunction(a))return S.ready(a);if(a.selector!==v){this.selector=a.selector;this.context=a.context}return c.isArray(a)?this.setArray(a):c.makeArray(a,
+this)},selector:"",jquery:"1.4.1",length:0,size:function(){return this.length},toArray:function(){return Q.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this.slice(a)[0]:this[a]},pushStack:function(a,b,d){a=c(a||null);a.prevObject=this;a.context=this.context;if(b==="find")a.selector=this.selector+(this.selector?" ":"")+d;else if(b)a.selector=this.selector+"."+b+"("+d+")";return a},setArray:function(a){this.length=0;ba.apply(this,a);return this},each:function(a,b){return c.each(this,
+a,b)},ready:function(a){c.bindReady();if(c.isReady)a.call(r,c);else P&&P.push(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(Q.apply(this,arguments),"slice",Q.call(arguments).join(","))},map:function(a){return this.pushStack(c.map(this,function(b,d){return a.call(b,d,b)}))},end:function(){return this.prevObject||c(null)},push:ba,sort:[].sort,splice:[].splice};
+c.fn.init.prototype=c.fn;c.extend=c.fn.extend=function(){var a=arguments[0]||{},b=1,d=arguments.length,f=false,e,i,j,n;if(typeof a==="boolean"){f=a;a=arguments[1]||{};b=2}if(typeof a!=="object"&&!c.isFunction(a))a={};if(d===b){a=this;--b}for(;ba ";var e=d.getElementsByTagName("*"),i=d.getElementsByTagName("a")[0];if(!(!e||!e.length||!i)){c.support=
+{leadingWhitespace:d.firstChild.nodeType===3,tbody:!d.getElementsByTagName("tbody").length,htmlSerialize:!!d.getElementsByTagName("link").length,style:/red/.test(i.getAttribute("style")),hrefNormalized:i.getAttribute("href")==="/a",opacity:/^0.55$/.test(i.style.opacity),cssFloat:!!i.style.cssFloat,checkOn:d.getElementsByTagName("input")[0].value==="on",optSelected:r.createElement("select").appendChild(r.createElement("option")).selected,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null};
+b.type="text/javascript";try{b.appendChild(r.createTextNode("window."+f+"=1;"))}catch(j){}a.insertBefore(b,a.firstChild);if(z[f]){c.support.scriptEval=true;delete z[f]}a.removeChild(b);if(d.attachEvent&&d.fireEvent){d.attachEvent("onclick",function n(){c.support.noCloneEvent=false;d.detachEvent("onclick",n)});d.cloneNode(true).fireEvent("onclick")}d=r.createElement("div");d.innerHTML=" ";a=r.createDocumentFragment();a.appendChild(d.firstChild);
+c.support.checkClone=a.cloneNode(true).cloneNode(true).lastChild.checked;c(function(){var n=r.createElement("div");n.style.width=n.style.paddingLeft="1px";r.body.appendChild(n);c.boxModel=c.support.boxModel=n.offsetWidth===2;r.body.removeChild(n).style.display="none"});a=function(n){var o=r.createElement("div");n="on"+n;var m=n in o;if(!m){o.setAttribute(n,"return;");m=typeof o[n]==="function"}return m};c.support.submitBubbles=a("submit");c.support.changeBubbles=a("change");a=b=d=e=i=null}})();c.props=
+{"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var G="jQuery"+J(),Ua=0,xa={},Va={};c.extend({cache:{},expando:G,noData:{embed:true,object:true,applet:true},data:function(a,b,d){if(!(a.nodeName&&c.noData[a.nodeName.toLowerCase()])){a=a==z?xa:a;var f=a[G],e=c.cache;if(!b&&!f)return null;f||(f=++Ua);if(typeof b==="object"){a[G]=f;e=e[f]=c.extend(true,
+{},b)}else e=e[f]?e[f]:typeof d==="undefined"?Va:(e[f]={});if(d!==v){a[G]=f;e[b]=d}return typeof b==="string"?e[b]:e}},removeData:function(a,b){if(!(a.nodeName&&c.noData[a.nodeName.toLowerCase()])){a=a==z?xa:a;var d=a[G],f=c.cache,e=f[d];if(b){if(e){delete e[b];c.isEmptyObject(e)&&c.removeData(a)}}else{try{delete a[G]}catch(i){a.removeAttribute&&a.removeAttribute(G)}delete f[d]}}}});c.fn.extend({data:function(a,b){if(typeof a==="undefined"&&this.length)return c.data(this[0]);else if(typeof a==="object")return this.each(function(){c.data(this,
+a)});var d=a.split(".");d[1]=d[1]?"."+d[1]:"";if(b===v){var f=this.triggerHandler("getData"+d[1]+"!",[d[0]]);if(f===v&&this.length)f=c.data(this[0],a);return f===v&&d[1]?this.data(d[0]):f}else return this.trigger("setData"+d[1]+"!",[d[0],b]).each(function(){c.data(this,a,b)})},removeData:function(a){return this.each(function(){c.removeData(this,a)})}});c.extend({queue:function(a,b,d){if(a){b=(b||"fx")+"queue";var f=c.data(a,b);if(!d)return f||[];if(!f||c.isArray(d))f=c.data(a,b,c.makeArray(d));else f.push(d);
+return f}},dequeue:function(a,b){b=b||"fx";var d=c.queue(a,b),f=d.shift();if(f==="inprogress")f=d.shift();if(f){b==="fx"&&d.unshift("inprogress");f.call(a,function(){c.dequeue(a,b)})}}});c.fn.extend({queue:function(a,b){if(typeof a!=="string"){b=a;a="fx"}if(b===v)return c.queue(this[0],a);return this.each(function(){var d=c.queue(this,a,b);a==="fx"&&d[0]!=="inprogress"&&c.dequeue(this,a)})},dequeue:function(a){return this.each(function(){c.dequeue(this,a)})},delay:function(a,b){a=c.fx?c.fx.speeds[a]||
+a:a;b=b||"fx";return this.queue(b,function(){var d=this;setTimeout(function(){c.dequeue(d,b)},a)})},clearQueue:function(a){return this.queue(a||"fx",[])}});var ya=/[\n\t]/g,ca=/\s+/,Wa=/\r/g,Xa=/href|src|style/,Ya=/(button|input)/i,Za=/(button|input|object|select|textarea)/i,$a=/^(a|area)$/i,za=/radio|checkbox/;c.fn.extend({attr:function(a,b){return X(this,a,b,true,c.attr)},removeAttr:function(a){return this.each(function(){c.attr(this,a,"");this.nodeType===1&&this.removeAttribute(a)})},addClass:function(a){if(c.isFunction(a))return this.each(function(o){var m=
+c(this);m.addClass(a.call(this,o,m.attr("class")))});if(a&&typeof a==="string")for(var b=(a||"").split(ca),d=0,f=this.length;d-1)return true;return false},val:function(a){if(a===v){var b=this[0];if(b){if(c.nodeName(b,"option"))return(b.attributes.value||
+{}).specified?b.value:b.text;if(c.nodeName(b,"select")){var d=b.selectedIndex,f=[],e=b.options;b=b.type==="select-one";if(d<0)return null;var i=b?d:0;for(d=b?d+1:e.length;i=0;else if(c.nodeName(this,"select")){var x=c.makeArray(s);c("option",this).each(function(){this.selected=c.inArray(c(this).val(),x)>=0});if(!x.length)this.selectedIndex=-1}else this.value=s}})}});c.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(a,b,d,f){if(!a||a.nodeType===3||a.nodeType===8)return v;if(f&&b in c.attrFn)return c(a)[b](d);
+f=a.nodeType!==1||!c.isXMLDoc(a);var e=d!==v;b=f&&c.props[b]||b;if(a.nodeType===1){var i=Xa.test(b);if(b in a&&f&&!i){if(e){b==="type"&&Ya.test(a.nodeName)&&a.parentNode&&c.error("type property can't be changed");a[b]=d}if(c.nodeName(a,"form")&&a.getAttributeNode(b))return a.getAttributeNode(b).nodeValue;if(b==="tabIndex")return(b=a.getAttributeNode("tabIndex"))&&b.specified?b.value:Za.test(a.nodeName)||$a.test(a.nodeName)&&a.href?0:v;return a[b]}if(!c.support.style&&f&&b==="style"){if(e)a.style.cssText=
+""+d;return a.style.cssText}e&&a.setAttribute(b,""+d);a=!c.support.hrefNormalized&&f&&i?a.getAttribute(b,2):a.getAttribute(b);return a===null?v:a}return c.style(a,b,d)}});var ab=function(a){return a.replace(/[^\w\s\.\|`]/g,function(b){return"\\"+b})};c.event={add:function(a,b,d,f){if(!(a.nodeType===3||a.nodeType===8)){if(a.setInterval&&a!==z&&!a.frameElement)a=z;if(!d.guid)d.guid=c.guid++;if(f!==v){d=c.proxy(d);d.data=f}var e=c.data(a,"events")||c.data(a,"events",{}),i=c.data(a,"handle"),j;if(!i){j=
+function(){return typeof c!=="undefined"&&!c.event.triggered?c.event.handle.apply(j.elem,arguments):v};i=c.data(a,"handle",j)}if(i){i.elem=a;b=b.split(/\s+/);for(var n,o=0;n=b[o++];){var m=n.split(".");n=m.shift();if(o>1){d=c.proxy(d);if(f!==v)d.data=f}d.type=m.slice(0).sort().join(".");var s=e[n],x=this.special[n]||{};if(!s){s=e[n]={};if(!x.setup||x.setup.call(a,f,m,d)===false)if(a.addEventListener)a.addEventListener(n,i,false);else a.attachEvent&&a.attachEvent("on"+n,i)}if(x.add)if((m=x.add.call(a,
+d,f,m,s))&&c.isFunction(m)){m.guid=m.guid||d.guid;m.data=m.data||d.data;m.type=m.type||d.type;d=m}s[d.guid]=d;this.global[n]=true}a=null}}},global:{},remove:function(a,b,d){if(!(a.nodeType===3||a.nodeType===8)){var f=c.data(a,"events"),e,i,j;if(f){if(b===v||typeof b==="string"&&b.charAt(0)===".")for(i in f)this.remove(a,i+(b||""));else{if(b.type){d=b.handler;b=b.type}b=b.split(/\s+/);for(var n=0;i=b[n++];){var o=i.split(".");i=o.shift();var m=!o.length,s=c.map(o.slice(0).sort(),ab);s=new RegExp("(^|\\.)"+
+s.join("\\.(?:.*\\.)?")+"(\\.|$)");var x=this.special[i]||{};if(f[i]){if(d){j=f[i][d.guid];delete f[i][d.guid]}else for(var A in f[i])if(m||s.test(f[i][A].type))delete f[i][A];x.remove&&x.remove.call(a,o,j);for(e in f[i])break;if(!e){if(!x.teardown||x.teardown.call(a,o)===false)if(a.removeEventListener)a.removeEventListener(i,c.data(a,"handle"),false);else a.detachEvent&&a.detachEvent("on"+i,c.data(a,"handle"));e=null;delete f[i]}}}}for(e in f)break;if(!e){if(A=c.data(a,"handle"))A.elem=null;c.removeData(a,
+"events");c.removeData(a,"handle")}}}},trigger:function(a,b,d,f){var e=a.type||a;if(!f){a=typeof a==="object"?a[G]?a:c.extend(c.Event(e),a):c.Event(e);if(e.indexOf("!")>=0){a.type=e=e.slice(0,-1);a.exclusive=true}if(!d){a.stopPropagation();this.global[e]&&c.each(c.cache,function(){this.events&&this.events[e]&&c.event.trigger(a,b,this.handle.elem)})}if(!d||d.nodeType===3||d.nodeType===8)return v;a.result=v;a.target=d;b=c.makeArray(b);b.unshift(a)}a.currentTarget=d;(f=c.data(d,"handle"))&&f.apply(d,
+b);f=d.parentNode||d.ownerDocument;try{if(!(d&&d.nodeName&&c.noData[d.nodeName.toLowerCase()]))if(d["on"+e]&&d["on"+e].apply(d,b)===false)a.result=false}catch(i){}if(!a.isPropagationStopped()&&f)c.event.trigger(a,b,f,true);else if(!a.isDefaultPrevented()){d=a.target;var j;if(!(c.nodeName(d,"a")&&e==="click")&&!(d&&d.nodeName&&c.noData[d.nodeName.toLowerCase()])){try{if(d[e]){if(j=d["on"+e])d["on"+e]=null;this.triggered=true;d[e]()}}catch(n){}if(j)d["on"+e]=j;this.triggered=false}}},handle:function(a){var b,
+d;a=arguments[0]=c.event.fix(a||z.event);a.currentTarget=this;d=a.type.split(".");a.type=d.shift();b=!d.length&&!a.exclusive;var f=new RegExp("(^|\\.)"+d.slice(0).sort().join("\\.(?:.*\\.)?")+"(\\.|$)");d=(c.data(this,"events")||{})[a.type];for(var e in d){var i=d[e];if(b||f.test(i.type)){a.handler=i;a.data=i.data;i=i.apply(this,arguments);if(i!==v){a.result=i;if(i===false){a.preventDefault();a.stopPropagation()}}if(a.isImmediatePropagationStopped())break}}return a.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),
+fix:function(a){if(a[G])return a;var b=a;a=c.Event(b);for(var d=this.props.length,f;d;){f=this.props[--d];a[f]=b[f]}if(!a.target)a.target=a.srcElement||r;if(a.target.nodeType===3)a.target=a.target.parentNode;if(!a.relatedTarget&&a.fromElement)a.relatedTarget=a.fromElement===a.target?a.toElement:a.fromElement;if(a.pageX==null&&a.clientX!=null){b=r.documentElement;d=r.body;a.pageX=a.clientX+(b&&b.scrollLeft||d&&d.scrollLeft||0)-(b&&b.clientLeft||d&&d.clientLeft||0);a.pageY=a.clientY+(b&&b.scrollTop||
+d&&d.scrollTop||0)-(b&&b.clientTop||d&&d.clientTop||0)}if(!a.which&&(a.charCode||a.charCode===0?a.charCode:a.keyCode))a.which=a.charCode||a.keyCode;if(!a.metaKey&&a.ctrlKey)a.metaKey=a.ctrlKey;if(!a.which&&a.button!==v)a.which=a.button&1?1:a.button&2?3:a.button&4?2:0;return a},guid:1E8,proxy:c.proxy,special:{ready:{setup:c.bindReady,teardown:c.noop},live:{add:function(a,b){c.extend(a,b||{});a.guid+=b.selector+b.live;b.liveProxy=a;c.event.add(this,b.live,na,b)},remove:function(a){if(a.length){var b=
+0,d=new RegExp("(^|\\.)"+a[0]+"(\\.|$)");c.each(c.data(this,"events").live||{},function(){d.test(this.type)&&b++});b<1&&c.event.remove(this,a[0],na)}},special:{}},beforeunload:{setup:function(a,b,d){if(this.setInterval)this.onbeforeunload=d;return false},teardown:function(a,b){if(this.onbeforeunload===b)this.onbeforeunload=null}}}};c.Event=function(a){if(!this.preventDefault)return new c.Event(a);if(a&&a.type){this.originalEvent=a;this.type=a.type}else this.type=a;this.timeStamp=J();this[G]=true};
+c.Event.prototype={preventDefault:function(){this.isDefaultPrevented=Z;var a=this.originalEvent;if(a){a.preventDefault&&a.preventDefault();a.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=Z;var a=this.originalEvent;if(a){a.stopPropagation&&a.stopPropagation();a.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=Z;this.stopPropagation()},isDefaultPrevented:Y,isPropagationStopped:Y,isImmediatePropagationStopped:Y};var Aa=function(a){for(var b=
+a.relatedTarget;b&&b!==this;)try{b=b.parentNode}catch(d){break}if(b!==this){a.type=a.data;c.event.handle.apply(this,arguments)}},Ba=function(a){a.type=a.data;c.event.handle.apply(this,arguments)};c.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){c.event.special[a]={setup:function(d){c.event.add(this,b,d&&d.selector?Ba:Aa,a)},teardown:function(d){c.event.remove(this,b,d&&d.selector?Ba:Aa)}}});if(!c.support.submitBubbles)c.event.special.submit={setup:function(a,b,d){if(this.nodeName.toLowerCase()!==
+"form"){c.event.add(this,"click.specialSubmit."+d.guid,function(f){var e=f.target,i=e.type;if((i==="submit"||i==="image")&&c(e).closest("form").length)return ma("submit",this,arguments)});c.event.add(this,"keypress.specialSubmit."+d.guid,function(f){var e=f.target,i=e.type;if((i==="text"||i==="password")&&c(e).closest("form").length&&f.keyCode===13)return ma("submit",this,arguments)})}else return false},remove:function(a,b){c.event.remove(this,"click.specialSubmit"+(b?"."+b.guid:""));c.event.remove(this,
+"keypress.specialSubmit"+(b?"."+b.guid:""))}};if(!c.support.changeBubbles){var da=/textarea|input|select/i;function Ca(a){var b=a.type,d=a.value;if(b==="radio"||b==="checkbox")d=a.checked;else if(b==="select-multiple")d=a.selectedIndex>-1?c.map(a.options,function(f){return f.selected}).join("-"):"";else if(a.nodeName.toLowerCase()==="select")d=a.selectedIndex;return d}function ea(a,b){var d=a.target,f,e;if(!(!da.test(d.nodeName)||d.readOnly)){f=c.data(d,"_change_data");e=Ca(d);if(a.type!=="focusout"||
+d.type!=="radio")c.data(d,"_change_data",e);if(!(f===v||e===f))if(f!=null||e){a.type="change";return c.event.trigger(a,b,d)}}}c.event.special.change={filters:{focusout:ea,click:function(a){var b=a.target,d=b.type;if(d==="radio"||d==="checkbox"||b.nodeName.toLowerCase()==="select")return ea.call(this,a)},keydown:function(a){var b=a.target,d=b.type;if(a.keyCode===13&&b.nodeName.toLowerCase()!=="textarea"||a.keyCode===32&&(d==="checkbox"||d==="radio")||d==="select-multiple")return ea.call(this,a)},beforeactivate:function(a){a=
+a.target;a.nodeName.toLowerCase()==="input"&&a.type==="radio"&&c.data(a,"_change_data",Ca(a))}},setup:function(a,b,d){for(var f in T)c.event.add(this,f+".specialChange."+d.guid,T[f]);return da.test(this.nodeName)},remove:function(a,b){for(var d in T)c.event.remove(this,d+".specialChange"+(b?"."+b.guid:""),T[d]);return da.test(this.nodeName)}};var T=c.event.special.change.filters}r.addEventListener&&c.each({focus:"focusin",blur:"focusout"},function(a,b){function d(f){f=c.event.fix(f);f.type=b;return c.event.handle.call(this,
+f)}c.event.special[b]={setup:function(){this.addEventListener(a,d,true)},teardown:function(){this.removeEventListener(a,d,true)}}});c.each(["bind","one"],function(a,b){c.fn[b]=function(d,f,e){if(typeof d==="object"){for(var i in d)this[b](i,f,d[i],e);return this}if(c.isFunction(f)){e=f;f=v}var j=b==="one"?c.proxy(e,function(n){c(this).unbind(n,j);return e.apply(this,arguments)}):e;return d==="unload"&&b!=="one"?this.one(d,f,e):this.each(function(){c.event.add(this,d,j,f)})}});c.fn.extend({unbind:function(a,
+b){if(typeof a==="object"&&!a.preventDefault){for(var d in a)this.unbind(d,a[d]);return this}return this.each(function(){c.event.remove(this,a,b)})},trigger:function(a,b){return this.each(function(){c.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0]){a=c.Event(a);a.preventDefault();a.stopPropagation();c.event.trigger(a,b,this[0]);return a.result}},toggle:function(a){for(var b=arguments,d=1;d0){y=t;break}}t=t[g]}l[q]=y}}}var f=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,e=0,i=Object.prototype.toString,j=false,n=true;[0,0].sort(function(){n=false;return 0});var o=function(g,h,k,l){k=k||[];var q=h=h||r;if(h.nodeType!==1&&h.nodeType!==9)return[];if(!g||
+typeof g!=="string")return k;for(var p=[],u,t,y,R,H=true,M=w(h),I=g;(f.exec(""),u=f.exec(I))!==null;){I=u[3];p.push(u[1]);if(u[2]){R=u[3];break}}if(p.length>1&&s.exec(g))if(p.length===2&&m.relative[p[0]])t=fa(p[0]+p[1],h);else for(t=m.relative[p[0]]?[h]:o(p.shift(),h);p.length;){g=p.shift();if(m.relative[g])g+=p.shift();t=fa(g,t)}else{if(!l&&p.length>1&&h.nodeType===9&&!M&&m.match.ID.test(p[0])&&!m.match.ID.test(p[p.length-1])){u=o.find(p.shift(),h,M);h=u.expr?o.filter(u.expr,u.set)[0]:u.set[0]}if(h){u=
+l?{expr:p.pop(),set:A(l)}:o.find(p.pop(),p.length===1&&(p[0]==="~"||p[0]==="+")&&h.parentNode?h.parentNode:h,M);t=u.expr?o.filter(u.expr,u.set):u.set;if(p.length>0)y=A(t);else H=false;for(;p.length;){var D=p.pop();u=D;if(m.relative[D])u=p.pop();else D="";if(u==null)u=h;m.relative[D](y,u,M)}}else y=[]}y||(y=t);y||o.error(D||g);if(i.call(y)==="[object Array]")if(H)if(h&&h.nodeType===1)for(g=0;y[g]!=null;g++){if(y[g]&&(y[g]===true||y[g].nodeType===1&&E(h,y[g])))k.push(t[g])}else for(g=0;y[g]!=null;g++)y[g]&&
+y[g].nodeType===1&&k.push(t[g]);else k.push.apply(k,y);else A(y,k);if(R){o(R,q,k,l);o.uniqueSort(k)}return k};o.uniqueSort=function(g){if(C){j=n;g.sort(C);if(j)for(var h=1;h":function(g,h){var k=typeof h==="string";if(k&&!/\W/.test(h)){h=h.toLowerCase();for(var l=0,q=g.length;l=0))k||l.push(u);else if(k)h[p]=false;return false},ID:function(g){return g[1].replace(/\\/g,"")},TAG:function(g){return g[1].toLowerCase()},CHILD:function(g){if(g[1]==="nth"){var h=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(g[2]==="even"&&"2n"||g[2]==="odd"&&
+"2n+1"||!/\D/.test(g[2])&&"0n+"+g[2]||g[2]);g[2]=h[1]+(h[2]||1)-0;g[3]=h[3]-0}g[0]=e++;return g},ATTR:function(g,h,k,l,q,p){h=g[1].replace(/\\/g,"");if(!p&&m.attrMap[h])g[1]=m.attrMap[h];if(g[2]==="~=")g[4]=" "+g[4]+" ";return g},PSEUDO:function(g,h,k,l,q){if(g[1]==="not")if((f.exec(g[3])||"").length>1||/^\w/.test(g[3]))g[3]=o(g[3],null,null,h);else{g=o.filter(g[3],h,k,true^q);k||l.push.apply(l,g);return false}else if(m.match.POS.test(g[0])||m.match.CHILD.test(g[0]))return true;return g},POS:function(g){g.unshift(true);
+return g}},filters:{enabled:function(g){return g.disabled===false&&g.type!=="hidden"},disabled:function(g){return g.disabled===true},checked:function(g){return g.checked===true},selected:function(g){return g.selected===true},parent:function(g){return!!g.firstChild},empty:function(g){return!g.firstChild},has:function(g,h,k){return!!o(k[3],g).length},header:function(g){return/h\d/i.test(g.nodeName)},text:function(g){return"text"===g.type},radio:function(g){return"radio"===g.type},checkbox:function(g){return"checkbox"===
+g.type},file:function(g){return"file"===g.type},password:function(g){return"password"===g.type},submit:function(g){return"submit"===g.type},image:function(g){return"image"===g.type},reset:function(g){return"reset"===g.type},button:function(g){return"button"===g.type||g.nodeName.toLowerCase()==="button"},input:function(g){return/input|select|textarea|button/i.test(g.nodeName)}},setFilters:{first:function(g,h){return h===0},last:function(g,h,k,l){return h===l.length-1},even:function(g,h){return h%2===
+0},odd:function(g,h){return h%2===1},lt:function(g,h,k){return hk[3]-0},nth:function(g,h,k){return k[3]-0===h},eq:function(g,h,k){return k[3]-0===h}},filter:{PSEUDO:function(g,h,k,l){var q=h[1],p=m.filters[q];if(p)return p(g,k,h,l);else if(q==="contains")return(g.textContent||g.innerText||a([g])||"").indexOf(h[3])>=0;else if(q==="not"){h=h[3];k=0;for(l=h.length;k=
+0}},ID:function(g,h){return g.nodeType===1&&g.getAttribute("id")===h},TAG:function(g,h){return h==="*"&&g.nodeType===1||g.nodeName.toLowerCase()===h},CLASS:function(g,h){return(" "+(g.className||g.getAttribute("class"))+" ").indexOf(h)>-1},ATTR:function(g,h){var k=h[1];g=m.attrHandle[k]?m.attrHandle[k](g):g[k]!=null?g[k]:g.getAttribute(k);k=g+"";var l=h[2];h=h[4];return g==null?l==="!=":l==="="?k===h:l==="*="?k.indexOf(h)>=0:l==="~="?(" "+k+" ").indexOf(h)>=0:!h?k&&g!==false:l==="!="?k!==h:l==="^="?
+k.indexOf(h)===0:l==="$="?k.substr(k.length-h.length)===h:l==="|="?k===h||k.substr(0,h.length+1)===h+"-":false},POS:function(g,h,k,l){var q=m.setFilters[h[2]];if(q)return q(g,k,h,l)}}},s=m.match.POS;for(var x in m.match){m.match[x]=new RegExp(m.match[x].source+/(?![^\[]*\])(?![^\(]*\))/.source);m.leftMatch[x]=new RegExp(/(^(?:.|\r|\n)*?)/.source+m.match[x].source.replace(/\\(\d+)/g,function(g,h){return"\\"+(h-0+1)}))}var A=function(g,h){g=Array.prototype.slice.call(g,0);if(h){h.push.apply(h,g);return h}return g};
+try{Array.prototype.slice.call(r.documentElement.childNodes,0)}catch(B){A=function(g,h){h=h||[];if(i.call(g)==="[object Array]")Array.prototype.push.apply(h,g);else if(typeof g.length==="number")for(var k=0,l=g.length;k ";var k=r.documentElement;k.insertBefore(g,k.firstChild);if(r.getElementById(h)){m.find.ID=function(l,q,p){if(typeof q.getElementById!=="undefined"&&!p)return(q=q.getElementById(l[1]))?q.id===l[1]||typeof q.getAttributeNode!=="undefined"&&q.getAttributeNode("id").nodeValue===l[1]?[q]:v:[]};m.filter.ID=function(l,q){var p=typeof l.getAttributeNode!=="undefined"&&l.getAttributeNode("id");
+return l.nodeType===1&&p&&p.nodeValue===q}}k.removeChild(g);k=g=null})();(function(){var g=r.createElement("div");g.appendChild(r.createComment(""));if(g.getElementsByTagName("*").length>0)m.find.TAG=function(h,k){k=k.getElementsByTagName(h[1]);if(h[1]==="*"){h=[];for(var l=0;k[l];l++)k[l].nodeType===1&&h.push(k[l]);k=h}return k};g.innerHTML=" ";if(g.firstChild&&typeof g.firstChild.getAttribute!=="undefined"&&g.firstChild.getAttribute("href")!=="#")m.attrHandle.href=function(h){return h.getAttribute("href",
+2)};g=null})();r.querySelectorAll&&function(){var g=o,h=r.createElement("div");h.innerHTML="
";if(!(h.querySelectorAll&&h.querySelectorAll(".TEST").length===0)){o=function(l,q,p,u){q=q||r;if(!u&&q.nodeType===9&&!w(q))try{return A(q.querySelectorAll(l),p)}catch(t){}return g(l,q,p,u)};for(var k in g)o[k]=g[k];h=null}}();(function(){var g=r.createElement("div");g.innerHTML="
";if(!(!g.getElementsByClassName||g.getElementsByClassName("e").length===
+0)){g.lastChild.className="e";if(g.getElementsByClassName("e").length!==1){m.order.splice(1,0,"CLASS");m.find.CLASS=function(h,k,l){if(typeof k.getElementsByClassName!=="undefined"&&!l)return k.getElementsByClassName(h[1])};g=null}}})();var E=r.compareDocumentPosition?function(g,h){return g.compareDocumentPosition(h)&16}:function(g,h){return g!==h&&(g.contains?g.contains(h):true)},w=function(g){return(g=(g?g.ownerDocument||g:0).documentElement)?g.nodeName!=="HTML":false},fa=function(g,h){var k=[],
+l="",q;for(h=h.nodeType?[h]:h;q=m.match.PSEUDO.exec(g);){l+=q[0];g=g.replace(m.match.PSEUDO,"")}g=m.relative[g]?g+"*":g;q=0;for(var p=h.length;q=0===d})};c.fn.extend({find:function(a){for(var b=this.pushStack("","find",a),d=0,f=0,e=this.length;f0)for(var i=d;i0},closest:function(a,b){if(c.isArray(a)){var d=[],f=this[0],e,i={},j;if(f&&a.length){e=0;for(var n=a.length;e
+-1:c(f).is(e)){d.push({selector:j,elem:f});delete i[j]}}f=f.parentNode}}return d}var o=c.expr.match.POS.test(a)?c(a,b||this.context):null;return this.map(function(m,s){for(;s&&s.ownerDocument&&s!==b;){if(o?o.index(s)>-1:c(s).is(a))return s;s=s.parentNode}return null})},index:function(a){if(!a||typeof a==="string")return c.inArray(this[0],a?c(a):this.parent().children());return c.inArray(a.jquery?a[0]:a,this)},add:function(a,b){a=typeof a==="string"?c(a,b||this.context):c.makeArray(a);b=c.merge(this.get(),
+a);return this.pushStack(pa(a[0])||pa(b[0])?b:c.unique(b))},andSelf:function(){return this.add(this.prevObject)}});c.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return c.dir(a,"parentNode")},parentsUntil:function(a,b,d){return c.dir(a,"parentNode",d)},next:function(a){return c.nth(a,2,"nextSibling")},prev:function(a){return c.nth(a,2,"previousSibling")},nextAll:function(a){return c.dir(a,"nextSibling")},prevAll:function(a){return c.dir(a,"previousSibling")},
+nextUntil:function(a,b,d){return c.dir(a,"nextSibling",d)},prevUntil:function(a,b,d){return c.dir(a,"previousSibling",d)},siblings:function(a){return c.sibling(a.parentNode.firstChild,a)},children:function(a){return c.sibling(a.firstChild)},contents:function(a){return c.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:c.makeArray(a.childNodes)}},function(a,b){c.fn[a]=function(d,f){var e=c.map(this,b,d);bb.test(a)||(f=d);if(f&&typeof f==="string")e=c.filter(f,e);e=this.length>1?c.unique(e):
+e;if((this.length>1||db.test(f))&&cb.test(a))e=e.reverse();return this.pushStack(e,a,Q.call(arguments).join(","))}});c.extend({filter:function(a,b,d){if(d)a=":not("+a+")";return c.find.matches(a,b)},dir:function(a,b,d){var f=[];for(a=a[b];a&&a.nodeType!==9&&(d===v||a.nodeType!==1||!c(a).is(d));){a.nodeType===1&&f.push(a);a=a[b]}return f},nth:function(a,b,d){b=b||1;for(var f=0;a;a=a[d])if(a.nodeType===1&&++f===b)break;return a},sibling:function(a,b){for(var d=[];a;a=a.nextSibling)a.nodeType===1&&a!==
+b&&d.push(a);return d}});var Fa=/ jQuery\d+="(?:\d+|null)"/g,V=/^\s+/,Ga=/(<([\w:]+)[^>]*?)\/>/g,eb=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,Ha=/<([\w:]+)/,fb=/"+d+">"},F={option:[1,""," "],legend:[1,""," "],thead:[1,""],tr:[2,""],td:[3,""],
+col:[2,""],area:[1,""," "],_default:[0,"",""]};F.optgroup=F.option;F.tbody=F.tfoot=F.colgroup=F.caption=F.thead;F.th=F.td;if(!c.support.htmlSerialize)F._default=[1,"div","
"];c.fn.extend({text:function(a){if(c.isFunction(a))return this.each(function(b){var d=c(this);d.text(a.call(this,b,d.text()))});if(typeof a!=="object"&&a!==v)return this.empty().append((this[0]&&this[0].ownerDocument||r).createTextNode(a));return c.getText(this)},
+wrapAll:function(a){if(c.isFunction(a))return this.each(function(d){c(this).wrapAll(a.call(this,d))});if(this[0]){var b=c(a,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var d=this;d.firstChild&&d.firstChild.nodeType===1;)d=d.firstChild;return d}).append(this)}return this},wrapInner:function(a){if(c.isFunction(a))return this.each(function(b){c(this).wrapInner(a.call(this,b))});return this.each(function(){var b=c(this),d=b.contents();d.length?
+d.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){c(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){c.nodeName(this,"body")||c(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,
+false,function(b){this.parentNode.insertBefore(b,this)});else if(arguments.length){var a=c(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this.nextSibling)});else if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,c(arguments[0]).toArray());return a}},clone:function(a){var b=this.map(function(){if(!c.support.noCloneEvent&&
+!c.isXMLDoc(this)){var d=this.outerHTML,f=this.ownerDocument;if(!d){d=f.createElement("div");d.appendChild(this.cloneNode(true));d=d.innerHTML}return c.clean([d.replace(Fa,"").replace(V,"")],f)[0]}else return this.cloneNode(true)});if(a===true){qa(this,b);qa(this.find("*"),b.find("*"))}return b},html:function(a){if(a===v)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(Fa,""):null;else if(typeof a==="string"&&!/
+ HTML
+
+=end
+ partial = "admin/helpers/quick_edit"
+ options = { :options => { :path => "articles/edit/1",
+ :message => "Edit this article" } }
+
+ assert_equal [ partial, options], output
+
+ end
+
+ def admin_quick_edit_path
+ 'quick_edit'
+ end
+
+end
\ No newline at end of file
diff --git a/vendor/plugins/typus/test/helpers/admin/sidebar_helper_test.rb b/vendor/plugins/typus/test/helpers/admin/sidebar_helper_test.rb
new file mode 100644
index 0000000..457e2b8
--- /dev/null
+++ b/vendor/plugins/typus/test/helpers/admin/sidebar_helper_test.rb
@@ -0,0 +1,320 @@
+# coding: utf-8
+
+require 'test/helper'
+
+class Admin::SidebarHelperTest < ActiveSupport::TestCase
+
+ include Admin::SidebarHelper
+
+ include ActionView::Helpers::UrlHelper
+ include ActionController::UrlWriter
+ include ActionView::Helpers::TagHelper
+ include ActionView::Helpers::FormTagHelper
+
+ def render(*args); args; end
+
+ def setup
+ default_url_options[:host] = 'test.host'
+ end
+
+ # TODO
+ def test_actions
+ end
+
+ def test_export
+
+ @resource = { :class => Post }
+
+ params = { :controller => 'admin/posts', :action => 'index' }
+ self.expects(:params).at_least_once.returns(params)
+
+ output = export
+
+ expected = [ "admin/helpers/list", { :items => [ %Q[CSV ],
+ %Q[XML ] ],
+ :header => "Export",
+ :options => { :header => "export" } } ]
+
+ assert_equal expected, output
+
+ end
+
+ def test_build_typus_list_with_empty_content_and_empty_header
+ output = build_typus_list([], :header => nil)
+ assert output.empty?
+ end
+
+ def test_build_typus_list_with_content_and_header
+
+ output = build_typus_list(['item1', 'item2'], :header => "Chunky Bacon")
+ assert !output.empty?
+
+ expected = [ "admin/helpers/list", { :header=>"Chunky bacon",
+ :options => { :header=>"Chunky Bacon" },
+ :items => [ "item1", "item2" ] } ]
+
+ assert_equal expected, output
+
+ end
+
+ def test_build_typus_list_with_content_without_header
+
+ output = build_typus_list(['item1', 'item2'])
+ expected = [ "admin/helpers/list", { :header => nil,
+ :options => {},
+ :items=>["item1", "item2"] } ]
+ assert_equal expected, output
+
+ end
+
+ def test_search
+
+ @resource = { :class => TypusUser, :self => 'typus_users' }
+
+ params = { :controller => 'admin/typus_users', :action => 'index' }
+ self.expects(:params).at_least_once.returns(params)
+
+ output = search
+
+ partial = "admin/helpers/search"
+ options = { :hidden_params => [ %Q[ ],
+ %Q[ ] ],
+ :search_by => "First name, Last name, Email, and Role" }
+
+ assert_equal [ partial, options ], output
+
+ end
+
+ def test_filters
+
+ @resource = { :class => TypusUser, :self => 'typus_users' }
+
+ @resource[:class].expects(:typus_filters).returns(Array.new)
+
+ output = filters
+ assert output.nil?
+
+ end
+
+ # TODO: Test filters when @resource[:class].typus_filters returns filters.
+ def test_filters_with_filters
+ return
+ end
+
+ # TODO
+ def test_relationship_filter
+ return
+ end
+
+ def test_date_filter
+
+ @resource = { :class => TypusUser, :self => 'typus_users' }
+ filter = 'created_at'
+
+ params = { :controller => 'admin/typus_users', :action => 'index' }
+ self.expects(:params).at_least_once.returns(params)
+
+ # With an empty request.
+
+ request = ""
+ output = date_filter(request, filter)
+
+ partial = "admin/helpers/list"
+ options = { :items => [ %Q[Today ],
+ %Q[Last few days ],
+ %Q[Last 7 days ],
+ %Q[Last 30 days ] ],
+ :header => "Created at",
+ :options => { :attribute => "created_at" } }
+
+ assert_equal [ partial, options ], output
+
+ # With a request.
+
+ request = "created_at=today&page=1"
+ output = date_filter(request, filter)
+
+ partial = "admin/helpers/list"
+ options = { :items => [ %Q[Today ],
+ %Q[Last few days ],
+ %Q[Last 7 days ],
+ %Q[Last 30 days ] ],
+ :header => "Created at",
+ :options => { :attribute => "created_at" } }
+
+ assert_equal [ partial, options ], output
+
+ end
+
+ def test_boolean_filter
+
+ @resource = { :class => TypusUser, :self => 'typus_users' }
+ filter = 'status'
+
+ params = { :controller => 'admin/typus_users', :action => 'index' }
+ self.expects(:params).at_least_once.returns(params)
+
+ # Status is true
+
+ request = "status=true&page=1"
+ output = boolean_filter(request, filter)
+
+ partial = "admin/helpers/list"
+ options = { :items => [ %Q[Active ],
+ %Q[Inactive ] ],
+ :header => "Status",
+ :options => { :attribute => "status" } }
+
+ assert_equal [ partial, options ], output
+
+ # Status is false
+
+ request = "status=false&page=1"
+ output = boolean_filter(request, filter)
+
+ partial = "admin/helpers/list"
+ options = { :items => [ %Q[Active ],
+ %Q[Inactive ] ],
+ :header => "Status",
+ :options => { :attribute => "status" } }
+
+ assert_equal [ partial, options ], output
+
+ end
+
+=begin
+
+ # FIXME
+
+ def test_string_filter_when_values_are_strings
+
+ @resource = { :class => TypusUser, :self => 'typus_users' }
+ filter = 'role'
+
+ params = { :controller => 'admin/typus_users', :action => 'index' }
+ self.expects(:params).at_least_once.returns(params)
+
+ # Roles is admin
+
+ request = 'role=admin&page=1'
+ # @resource[:class].expects('role').returns(['admin', 'designer', 'editor'])
+ output = string_filter(request, filter)
+
+ =begin
+ expected = <<-HTML
+Role
+
+ HTML
+ =end
+
+ partial = "admin/helpers/list"
+ options = { :items => [ "Admin ",
+ "Designer ",
+ "Editor " ],
+ :header => "Role",
+ :options => { :attribute => "role" } }
+
+ assert_equal [ partial, options ], output
+
+ # Roles is editor
+
+ request = 'role=editor&page=1'
+ @resource[:class].expects('role').returns(['admin', 'designer', 'editor'])
+ output = string_filter(request, filter)
+
+ =begin
+ expected = <<-HTML
+Role
+
+ HTML
+ =end
+
+ partial = "admin/helpers/list"
+ options = { :items => [ "Admin ",
+ "Designer ",
+ "Editor " ],
+ :header => "Role",
+ :options => { :attribute => "role" } }
+
+ assert_equal [ partial, options ], output
+
+ end
+
+=end
+
+=begin
+
+ # FIXME
+
+ def test_string_filter_when_values_are_arrays_of_strings
+
+ @resource = { :class => TypusUser, :self => 'typus_users' }
+ filter = 'role'
+
+ params = { :controller => 'admin/typus_users', :action => 'index' }
+ self.expects(:params).at_least_once.returns(params)
+
+ request = 'role=admin&page=1'
+
+ =begin
+
+ array = [['Administrador', 'admin'],
+ ['Diseñador', 'designer'],
+ ['Editor', 'editor']]
+ @resource[:class].expects('role').returns(array)
+
+ =end
+
+ output = string_filter(request, filter)
+
+ =begin
+ expected = <<-HTML
+Role
+
+ HTML
+ =end
+
+ partial = "admin/helpers/list"
+ options = { :items => [ "Administrador ",
+ "Diseñador ",
+ "Editor " ],
+ :header => "Role",
+ :options => { :attribute => "role" } }
+
+ assert_equal [ partial, options ], output
+
+ end
+
+=end
+
+=begin
+
+ # FIXME
+
+ def test_string_filter_when_empty_values
+
+ @resource = { :class => TypusUser }
+ filter = 'role'
+
+ request = 'role=admin&page=1'
+ @resource[:class].expects('role').returns([])
+ output = string_filter(request, filter)
+ assert output.empty?
+
+ end
+
+=end
+
+end
\ No newline at end of file
diff --git a/vendor/plugins/typus/test/helpers/admin/table_helper_test.rb b/vendor/plugins/typus/test/helpers/admin/table_helper_test.rb
new file mode 100644
index 0000000..f71f1bf
--- /dev/null
+++ b/vendor/plugins/typus/test/helpers/admin/table_helper_test.rb
@@ -0,0 +1,266 @@
+require 'test/helper'
+
+class Admin::TableHelperTest < ActiveSupport::TestCase
+
+ include Admin::TableHelper
+
+ include ActionView::Helpers::UrlHelper
+ include ActionController::UrlWriter
+ include ActionView::Helpers::TagHelper
+ include ActionView::Helpers::TextHelper
+
+ def setup
+ default_url_options[:host] = 'test.host'
+ end
+
+ # FIXME
+ def test_build_typus_table
+
+ return
+
+ @current_user = typus_users(:admin)
+
+ params = { :controller => 'admin/typus_users', :action => 'index' }
+ self.expects(:params).at_least_once.returns(params)
+
+ fields = TypusUser.typus_fields_for(:list)
+ items = TypusUser.find(:all)
+
+ output = build_typus_table(TypusUser, fields, items)
+ expected = <<-HTML
+
+Email
+Role
+Status
+
+
+ HTML
+
+ assert_equal expected, output
+
+ end
+
+ def test_typus_table_header
+
+ @current_user = mock()
+ @current_user.expects(:can?).with('delete', TypusUser).returns(true)
+
+ fields = TypusUser.typus_fields_for(:list)
+
+ params = { :controller => 'admin/typus_users', :action => 'index' }
+ self.expects(:params).at_least_once.returns(params)
+
+ output = typus_table_header(TypusUser, fields)
+ expected = <<-HTML
+
+Email
+Role
+Status
+
+
+ HTML
+
+ assert_equal expected, output
+
+ end
+
+ def test_typus_table_header_with_params
+
+ @current_user = mock()
+ @current_user.expects(:can?).with('delete', TypusUser).returns(true)
+
+ fields = TypusUser.typus_fields_for(:list)
+
+ params = { :controller => 'admin/typus_users', :action => 'index', :search => 'admin' }
+ self.expects(:params).at_least_once.returns(params)
+
+ output = typus_table_header(TypusUser, fields)
+ expected = <<-HTML
+
+Email
+Role
+Status
+
+
+ HTML
+
+ assert_equal expected, output
+
+ end
+
+ def test_typus_table_header_when_user_cannot_delete_items
+
+ @current_user = mock()
+ @current_user.expects(:can?).with('delete', TypusUser).returns(false)
+
+ fields = TypusUser.typus_fields_for(:list)
+
+ params = { :controller => 'admin/typus_users', :action => 'index' }
+ self.expects(:params).at_least_once.returns(params)
+
+ output = typus_table_header(TypusUser, fields)
+ expected = <<-HTML
+
+Email
+Role
+Status
+
+ HTML
+
+ assert_equal expected, output
+
+ end
+
+ def test_typus_table_header_when_user_cannot_delete_items_with_params
+
+ @current_user = mock()
+ @current_user.expects(:can?).with('delete', TypusUser).returns(false)
+
+ fields = TypusUser.typus_fields_for(:list)
+
+ params = { :controller => 'admin/typus_users', :action => 'index', :search => 'admin' }
+ self.expects(:params).at_least_once.returns(params)
+
+ output = typus_table_header(TypusUser, fields)
+ expected = <<-HTML
+
+Email
+Role
+Status
+
+ HTML
+
+ assert_equal expected, output
+
+ end
+
+
+ def test_typus_table_belongs_to_field
+
+ @current_user = typus_users(:admin)
+
+ comment = comments(:without_post_id)
+ output = typus_table_belongs_to_field('post', comment)
+ expected = " "
+
+ assert_equal expected, output
+ default_url_options[:host] = 'test.host'
+
+ comment = comments(:with_post_id)
+ output = typus_table_belongs_to_field('post', comment)
+ expected = <<-HTML
+Post#1
+ HTML
+
+ assert_equal expected.strip, output
+
+ end
+
+ def test_typus_table_has_and_belongs_to_many_field
+
+ post = Post.find(1)
+
+ output = typus_table_has_and_belongs_to_many_field('comments', post)
+ expected = <<-HTML
+John Me Me
+ HTML
+
+ assert_equal expected.strip, output
+
+ end
+
+ def test_typus_table_string_field
+
+ post = posts(:published)
+ output = typus_table_string_field(:title, post, :created_at)
+ expected = <<-HTML
+#{post.title}
+ HTML
+
+ assert_equal expected.strip, output
+
+ end
+
+ def test_typus_table_string_field_with_link
+
+ post = posts(:published)
+ output = typus_table_string_field(:title, post, :title)
+ expected = <<-HTML
+#{post.title}
+ HTML
+
+ assert_equal expected.strip, output
+
+ end
+
+ def test_typus_table_tree_field
+
+ return if !defined?(ActiveRecord::Acts::Tree)
+
+ page = pages(:published)
+ output = typus_table_tree_field('test', page)
+ expected = <<-HTML
+
+HTML
+
+ assert_equal expected, output
+
+ page = pages(:unpublished)
+ output = typus_table_tree_field('test', page)
+ expected = <<-HTML
+Page#1
+HTML
+
+ assert_equal expected, output
+
+ end
+
+ def test_typus_table_datetime_field
+
+ post = posts(:published)
+ Time::DATE_FORMATS[:post_short] = '%m/%y'
+
+ output = typus_table_datetime_field(:created_at, post)
+ expected = <<-HTML
+#{post.created_at.strftime('%m/%y')}
+ HTML
+
+ assert_equal expected.strip, output
+
+ end
+
+ def test_typus_table_datetime_field_with_link
+
+ post = posts(:published)
+ Time::DATE_FORMATS[:post_short] = '%m/%y'
+
+ output = typus_table_datetime_field(:created_at, post, :created_at)
+ expected = <<-HTML
+#{post.created_at.strftime('%m/%y')}
+ HTML
+
+ assert_equal expected.strip, output
+
+ end
+
+ def test_typus_table_boolean_field
+
+ post = typus_users(:admin)
+ output = typus_table_boolean_field('status', post)
+ expected = <<-HTML
+Active
+ HTML
+
+ assert_equal expected.strip, output
+
+ post = typus_users(:disabled_user)
+ output = typus_table_boolean_field('status', post)
+ expected = <<-HTML
+Inactive
+ HTML
+
+ assert_equal expected.strip, output
+
+ end
+
+end
\ No newline at end of file
diff --git a/vendor/plugins/typus/test/helpers/typus_helper_test.rb b/vendor/plugins/typus/test/helpers/typus_helper_test.rb
new file mode 100644
index 0000000..d233164
--- /dev/null
+++ b/vendor/plugins/typus/test/helpers/typus_helper_test.rb
@@ -0,0 +1,144 @@
+require 'test/helper'
+
+class TypusHelperTest < ActiveSupport::TestCase
+
+ include TypusHelper
+ include ActionView::Helpers::UrlHelper
+ include ActionView::Helpers::TextHelper
+ include ActionController::UrlWriter
+
+ def render(*args); args; end
+
+ # FIXME: Pending to verify the applications included. Use the keys.
+ def test_applications
+
+ @current_user = typus_users(:admin)
+
+ output = applications
+
+ partial = "admin/helpers/applications"
+ options = { :applications => { [ "Blog", [ "Comment", "Post" ] ]=> nil,
+ [ "Site", [ "Asset", "Page" ] ] => nil,
+ [ "System", [ "Delayed::Task" ] ] => nil,
+ [ "Typus", [ "TypusUser" ] ] => nil } }
+
+ assert_equal partial, output.first
+ # assert_equal options, output.last
+
+ end
+
+ # FIXME: Pending to add the options.
+ def test_resources
+
+ @current_user = typus_users(:admin)
+
+ output = resources
+ partial = "admin/helpers/resources"
+ options = {}
+
+ assert_equal partial, output.first
+ # assert_equal options, output.last
+
+ end
+
+ def test_typus_block_when_partial_does_not_exist
+ output = typus_block(:resource => 'posts', :location => 'sidebar', :partial => 'pum')
+ assert output.nil?
+ end
+
+ def test_page_title
+ params = {}
+ options = { :app_name => 'whatistypus.com' }
+ Typus::Configuration.stubs(:options).returns(options)
+ output = page_title('custom_action')
+ assert_equal 'whatistypus.com - Custom action', output
+ end
+
+ def test_header_with_root_path
+
+ # Add root named route
+ ActionController::Routing::Routes.add_named_route :root, "/", { :controller => "posts" }
+
+ # ActionView::Helpers::UrlHelper does not support strings, which are returned by named routes
+ # link root_path
+ self.stubs(:link_to).returns(%(View site ))
+ self.stubs(:link_to_unless_current).returns(%(Dashboard ))
+
+ output = header
+
+=begin
+ expected = <<-HTML
+#{Typus::Configuration.options[:app_name]}
+
+ HTML
+=end
+
+ partial = "admin/helpers/header"
+ options = { :links => [ "Dashboard ",
+ "Dashboard ",
+ "View site " ] }
+
+ assert_equal [ partial, options ], output
+
+ end
+
+ # TODO: Clean
+ def test_header_without_root_path
+
+ # Remove root route from list
+ ActionController::Routing::Routes.named_routes.routes.reject! { |key, route| key == :root }
+
+ self.stubs(:link_to_unless_current).returns(%(Dashboard ))
+
+=begin
+ expected = <<-HTML
+#{Typus::Configuration.options[:app_name]}
+
+ HTML
+=end
+
+ output = header
+ partial = "admin/helpers/header"
+ options = { :links => [ "Dashboard ",
+ "Dashboard " ] }
+
+ assert_equal [ partial, options ], output
+
+ end
+
+ def test_display_flash_message
+
+ message = { :test => 'This is the message.' }
+
+ output = display_flash_message(message)
+
+=begin
+ expected = <<-HTML
+
+ HTML
+=end
+
+ partial = "admin/helpers/flash_message"
+ options = { :flash_type => :test,
+ :message => { :test => 'This is the message.' } }
+
+ assert_equal [ partial, options ], output
+
+ end
+
+ def test_display_flash_message_with_empty_message
+ message = {}
+ output = display_flash_message(message)
+ assert output.nil?
+ end
+
+end
\ No newline at end of file
diff --git a/vendor/plugins/typus/test/lib/active_record_test.rb b/vendor/plugins/typus/test/lib/active_record_test.rb
new file mode 100644
index 0000000..8a806bf
--- /dev/null
+++ b/vendor/plugins/typus/test/lib/active_record_test.rb
@@ -0,0 +1,356 @@
+require "test/helper"
+
+class ActiveRecordTest < ActiveSupport::TestCase
+
+ def test_should_verify_model_fields_is_an_instance_of_active_support_ordered_hash
+ assert TypusUser.model_fields.instance_of?(ActiveSupport::OrderedHash)
+ end
+
+ def test_should_return_model_fields_for_typus_user
+ expected_fields = [[:id, :integer],
+ [:first_name, :string],
+ [:last_name, :string],
+ [:role, :string],
+ [:email, :string],
+ [:status, :boolean],
+ [:token, :string],
+ [:salt, :string],
+ [:crypted_password, :string],
+ [:preferences, :string],
+ [:created_at, :datetime],
+ [:updated_at, :datetime]]
+ assert_equal expected_fields.map { |i| i.first }, TypusUser.model_fields.keys
+ assert_equal expected_fields.map { |i| i.last }, TypusUser.model_fields.values
+ end
+
+ def test_should_return_model_fields_for_post
+ expected_fields = [[:id, :integer],
+ [:title, :string],
+ [:body, :text],
+ [:status, :string],
+ [:favorite_comment_id, :integer],
+ [:created_at, :datetime],
+ [:updated_at, :datetime],
+ [:published_at, :datetime],
+ [:typus_user_id, :integer]]
+ assert_equal expected_fields.map { |i| i.first }, Post.model_fields.keys
+ assert_equal expected_fields.map { |i| i.last }, Post.model_fields.values
+ end
+
+ def test_should_verify_model_relationships_is_an_instance_of_active_support_ordered_hash
+ assert TypusUser.model_relationships.instance_of?(ActiveSupport::OrderedHash)
+ end
+
+ def test_should_return_model_relationships_for_post
+ expected = [[:comments, :has_many],
+ [:categories, :has_and_belongs_to_many],
+ [:user, nil],
+ [:assets, :has_many]]
+ expected.each do |i|
+ assert_equal i.last, Post.model_relationships[i.first]
+ end
+ end
+
+ def test_should_return_description_of_a_model
+ assert TypusUser.respond_to?(:typus_description)
+ assert_equal "System Users Administration", TypusUser.typus_description
+ end
+
+ def test_should_return_typus_fields_for_list_for_typus_user
+ expected_fields = [["email", :string],
+ ["role", :selector],
+ ["status", :boolean]]
+ assert_equal expected_fields.map { |i| i.first }, TypusUser.typus_fields_for("list").keys
+ assert_equal expected_fields.map { |i| i.last }, TypusUser.typus_fields_for("list").values
+ assert_equal expected_fields.map { |i| i.first }, TypusUser.typus_fields_for(:list).keys
+ assert_equal expected_fields.map { |i| i.last }, TypusUser.typus_fields_for(:list).values
+ end
+
+ def test_should_return_typus_fields_for_list_for_post
+ expected_fields = [["title", :string],
+ ["created_at", :datetime],
+ ["status", :selector]]
+ assert_equal expected_fields.map { |i| i.first }, Post.typus_fields_for("list").keys
+ assert_equal expected_fields.map { |i| i.last }, Post.typus_fields_for("list").values
+ assert_equal expected_fields.map { |i| i.first }, Post.typus_fields_for(:list).keys
+ assert_equal expected_fields.map { |i| i.last }, Post.typus_fields_for(:list).values
+ end
+
+ def test_should_return_typus_fields_for_form_for_typus_user
+ expected_fields = [["first_name", :string],
+ ["last_name", :string],
+ ["role", :selector],
+ ["email", :string],
+ ["password", :password],
+ ["password_confirmation", :password]]
+ assert_equal expected_fields.map { |i| i.first }, TypusUser.typus_fields_for("form").keys
+ assert_equal expected_fields.map { |i| i.last }, TypusUser.typus_fields_for("form").values
+ assert_equal expected_fields.map { |i| i.first }, TypusUser.typus_fields_for(:form).keys
+ assert_equal expected_fields.map { |i| i.last }, TypusUser.typus_fields_for(:form).values
+ end
+
+ def test_should_return_typus_fields_for_form_for_picture
+ expected_fields = [["title", :string],
+ ["picture", :file]]
+ assert_equal expected_fields.map { |i| i.first }, Picture.typus_fields_for("form").keys
+ assert_equal expected_fields.map { |i| i.last }, Picture.typus_fields_for("form").values
+ assert_equal expected_fields.map { |i| i.first }, Picture.typus_fields_for(:form).keys
+ assert_equal expected_fields.map { |i| i.last }, Picture.typus_fields_for(:form).values
+ end
+
+ def test_should_return_typus_fields_for_a_model_without_configuration
+ expected_fields = []
+ klass = Class.new(ActiveRecord::Base)
+ assert_equal expected_fields, klass.typus_fields_for(:form)
+ assert_equal expected_fields, klass.typus_fields_for(:list)
+ end
+
+ def test_should_return_typus_fields_for_relationship_for_typus_user
+ expected_fields = [["email", :string],
+ ["role", :selector],
+ ["status", :boolean]]
+ assert_equal expected_fields.map { |i| i.first }, TypusUser.typus_fields_for("relationship").keys
+ assert_equal expected_fields.map { |i| i.last }, TypusUser.typus_fields_for("relationship").values
+ assert_equal expected_fields.map { |i| i.first }, TypusUser.typus_fields_for(:relationship).keys
+ assert_equal expected_fields.map { |i| i.last }, TypusUser.typus_fields_for(:relationship).values
+ end
+
+ def test_should_return_all_fields_for_undefined_field_type_on_typus_user
+ expected_fields = [["email", :string],
+ ["role", :selector],
+ ["status", :boolean]]
+ assert_equal expected_fields.map { |i| i.first }, TypusUser.typus_fields_for("undefined").keys
+ assert_equal expected_fields.map { |i| i.last }, TypusUser.typus_fields_for("undefined").values
+ assert_equal expected_fields.map { |i| i.first }, TypusUser.typus_fields_for(:undefined).keys
+ assert_equal expected_fields.map { |i| i.last }, TypusUser.typus_fields_for(:undefined).values
+ end
+
+ def test_should_return_filters_for_typus_user
+ expected = [["status", :boolean],
+ ["role", :string]]
+ assert_equal "status, role", Typus::Configuration.config["TypusUser"]["filters"]
+ assert_equal expected.map { |i| i.first }, TypusUser.typus_filters.keys
+ assert_equal expected.map { |i| i.last }, TypusUser.typus_filters.values
+ end
+
+ def test_should_return_post_typus_filters
+ expected = [["status", :string],
+ ["created_at", :datetime],
+ ["user", nil],
+ ["user_id", nil]]
+ assert_equal expected.map { |i| i.first }.join(", "), Typus::Configuration.config["Post"]["filters"]
+ assert_equal expected.map { |i| i.first }, Post.typus_filters.keys
+ assert_equal expected.map { |i| i.last }, Post.typus_filters.values
+ end
+
+ def test_should_return_actions_on_list_for_typus_user
+ assert TypusUser.typus_actions_on("list").empty?
+ assert TypusUser.typus_actions_on(:list).empty?
+ end
+
+ def test_should_return_post_actions_on_index
+ assert_equal %w( cleanup ), Post.typus_actions_on("index")
+ assert_equal %w( cleanup ), Post.typus_actions_on(:index)
+ end
+
+ def test_should_return_post_actions_on_edit
+ assert_equal %w( send_as_newsletter preview ), Post.typus_actions_on("edit")
+ assert_equal %w( send_as_newsletter preview ), Post.typus_actions_on(:edit)
+ end
+
+ def test_should_return_post_actions
+ assert_equal %w( cleanup preview send_as_newsletter ), Post.typus_actions.sort
+ end
+
+ def test_should_return_field_options_for_post
+ assert_equal [ :status ], Post.typus_field_options_for("selectors")
+ assert_equal [ :status ], Post.typus_field_options_for(:selectors)
+ assert_equal [ :permalink ], Post.typus_field_options_for("read_only")
+ assert_equal [ :permalink ], Post.typus_field_options_for(:read_only)
+ assert_equal [ :created_at ], Post.typus_field_options_for("auto_generated")
+ assert_equal [ :created_at ], Post.typus_field_options_for(:auto_generated)
+ end
+
+ def test_should_return_options_for_post_and_page
+
+ assert_equal 15, Post.typus_options_for(:form_rows)
+ assert_equal 15, Post.typus_options_for("form_rows")
+
+ assert_equal 25, Page.typus_options_for(:form_rows)
+ assert_equal 25, Page.typus_options_for("form_rows")
+
+ assert_equal 15, Asset.typus_options_for(:form_rows)
+ assert_equal 15, Asset.typus_options_for("form_rows")
+
+ assert_equal 15, TypusUser.typus_options_for(:form_rows)
+ assert_equal 15, TypusUser.typus_options_for("form_rows")
+
+ assert Page.typus_options_for(:on_header)
+ assert !TypusUser.typus_options_for(:on_header)
+
+ assert_nil TypusUser.typus_options_for(:unexisting)
+
+ end
+
+ def test_should_verify_typus_boolean_is_an_instance_of_active_support_ordered_hash
+ assert TypusUser.typus_boolean("status").instance_of?(ActiveSupport::OrderedHash)
+ end
+
+ def test_should_return_booleans_for_typus_users
+ assert_equal [ :true, :false ], TypusUser.typus_boolean("status").keys
+ assert_equal [ "Active", "Inactive" ], TypusUser.typus_boolean("status").values
+ assert_equal [ :true, :false ], TypusUser.typus_boolean(:status).keys
+ assert_equal [ "Active", "Inactive" ], TypusUser.typus_boolean(:status).values
+ end
+
+ def test_should_return_booleans_for_post
+ assert_equal [ :true, :false ], Post.typus_boolean("status").keys
+ assert_equal [ "True", "False" ], Post.typus_boolean("status").values
+ assert_equal [ :true, :false ], Post.typus_boolean(:status).keys
+ assert_equal [ "True", "False" ], Post.typus_boolean(:status).values
+ end
+
+ def test_should_return_date_formats_for_post
+ assert_equal :post_short, Post.typus_date_format("created_at")
+ assert_equal :post_short, Post.typus_date_format(:created_at)
+ assert_equal :db, Post.typus_date_format
+ assert_equal :db, Post.typus_date_format("unknown")
+ assert_equal :db, Post.typus_date_format(:unknown)
+ end
+
+ def test_should_return_defaults_for_post
+ assert_equal %w( title ), Post.typus_defaults_for("search")
+ assert_equal %w( title ), Post.typus_defaults_for(:search)
+ assert_equal %w( title -created_at ), Post.typus_defaults_for("order_by")
+ assert_equal %w( title -created_at ), Post.typus_defaults_for(:order_by)
+ end
+
+ def test_should_return_relationships_for_post
+ assert_equal %w( assets categories comments views ), Post.typus_defaults_for("relationships")
+ assert_equal %w( assets categories comments views ), Post.typus_defaults_for(:relationships)
+ assert !Post.typus_defaults_for("relationships").empty?
+ assert !Post.typus_defaults_for(:relationships).empty?
+ end
+
+ def test_should_return_order_by_for_model
+ assert_equal "posts.title ASC, posts.created_at DESC", Post.typus_order_by
+ assert_equal %w( title -created_at ), Post.typus_defaults_for("order_by")
+ assert_equal %w( title -created_at ), Post.typus_defaults_for(:order_by)
+ end
+
+ def test_should_return_sql_conditions_on_search_for_typus_user
+ expected = "(first_name LIKE '%francesc%' OR last_name LIKE '%francesc%' OR email LIKE '%francesc%' OR role LIKE '%francesc%')"
+ params = { :search => "francesc" }
+ assert_equal expected, TypusUser.build_conditions(params).first
+ params = { :search => "Francesc" }
+ assert_equal expected, TypusUser.build_conditions(params).first
+ end
+
+ def test_should_return_sql_conditions_on_search_and_filter_for_typus_user
+
+ case ENV["DB"]
+ when /mysql/
+ boolean_true = "(`typus_users`.`status` = 1)"
+ boolean_false = "(`typus_users`.`status` = 0)"
+ else
+ boolean_true = "(\"typus_users\".\"status\" = 't')"
+ boolean_false = "(\"typus_users\".\"status\" = 'f')"
+ end
+
+ expected = "((first_name LIKE '%francesc%' OR last_name LIKE '%francesc%' OR email LIKE '%francesc%' OR role LIKE '%francesc%')) AND #{boolean_true}"
+ params = { :search => "francesc", :status => "true" }
+ assert_equal expected, TypusUser.build_conditions(params).first
+ params = { :search => "francesc", :status => "false" }
+ assert_match /#{boolean_false}/, TypusUser.build_conditions(params).first
+
+ end
+
+ def test_should_return_sql_conditions_on_filtering_typus_users_by_status
+
+ case ENV["DB"]
+ when /mysql/
+ boolean_true = "(`typus_users`.`status` = 1)"
+ boolean_false = "(`typus_users`.`status` = 0)"
+ else
+ boolean_true = "(\"typus_users\".\"status\" = 't')"
+ boolean_false = "(\"typus_users\".\"status\" = 'f')"
+ end
+
+ params = { :status => "true" }
+ assert_equal boolean_true, TypusUser.build_conditions(params).first
+ params = { :status => "false" }
+ assert_equal boolean_false, TypusUser.build_conditions(params).first
+
+ end
+
+ def test_should_return_sql_conditions_on_filtering_typus_users_by_created_at
+
+ expected = case ENV["DB"]
+ when /postgresql/
+ "(created_at BETWEEN E'#{Time.new.midnight.to_s(:db)}' AND E'#{Time.new.midnight.tomorrow.to_s(:db)}')"
+ else
+ "(created_at BETWEEN '#{Time.new.midnight.to_s(:db)}' AND '#{Time.new.midnight.tomorrow.to_s(:db)}')"
+ end
+ params = { :created_at => "today" }
+ assert_equal expected, TypusUser.build_conditions(params).first
+
+ expected = case ENV["DB"]
+ when /postgresql/
+ "(created_at BETWEEN E'#{3.days.ago.midnight.to_s(:db)}' AND E'#{Time.new.midnight.tomorrow.to_s(:db)}')"
+ else
+ "(created_at BETWEEN '#{3.days.ago.midnight.to_s(:db)}' AND '#{Time.new.midnight.tomorrow.to_s(:db)}')"
+ end
+ params = { :created_at => "last_few_days" }
+ assert_equal expected, TypusUser.build_conditions(params).first
+
+ expected = case ENV["DB"]
+ when /postgresql/
+ "(created_at BETWEEN E'#{6.days.ago.midnight.to_s(:db)}' AND E'#{Time.new.midnight.tomorrow.to_s(:db)}')"
+ else
+ "(created_at BETWEEN '#{6.days.ago.midnight.to_s(:db)}' AND '#{Time.new.midnight.tomorrow.to_s(:db)}')"
+ end
+ params = { :created_at => "last_7_days" }
+ assert_equal expected, TypusUser.build_conditions(params).first
+
+
+ expected = case ENV["DB"]
+ when /postgresql/
+ "(created_at BETWEEN E'#{Time.new.midnight.last_month.to_s(:db)}' AND E'#{Time.new.midnight.tomorrow.to_s(:db)}')"
+ else
+ "(created_at BETWEEN '#{Time.new.midnight.last_month.to_s(:db)}' AND '#{Time.new.midnight.tomorrow.to_s(:db)}')"
+ end
+ params = { :created_at => "last_30_days" }
+ assert_equal expected, TypusUser.build_conditions(params).first
+
+ end
+
+ def test_should_return_sql_conditions_on_filtering_posts_by_published_at
+ expected = case ENV["DB"]
+ when /postgresql/
+ "(published_at BETWEEN E'#{Time.new.midnight.to_s(:db)}' AND E'#{Time.new.midnight.tomorrow.to_s(:db)}')"
+ else
+ "(published_at BETWEEN '#{Time.new.midnight.to_s(:db)}' AND '#{Time.new.midnight.tomorrow.to_s(:db)}')"
+ end
+ params = { :published_at => "today" }
+ assert_equal expected, Post.build_conditions(params).first
+ end
+
+ def test_should_return_sql_conditions_on_filtering_posts_by_string
+ expected = case ENV["DB"]
+ when /postgresql/
+ "(\"typus_users\".\"role\" = E'admin')"
+ when /mysql/
+ "(`typus_users`.`role` = 'admin')"
+ else
+ "(\"typus_users\".\"role\" = 'admin')"
+ end
+ params = { :role => "admin" }
+ assert_equal expected, TypusUser.build_conditions(params).first
+ end
+
+ def test_should_verify_typus_user_id
+ assert Post.typus_user_id?
+ assert !TypusUser.typus_user_id?
+ end
+
+end
diff --git a/vendor/plugins/typus/test/lib/configuration_test.rb b/vendor/plugins/typus/test/lib/configuration_test.rb
new file mode 100644
index 0000000..867679d
--- /dev/null
+++ b/vendor/plugins/typus/test/lib/configuration_test.rb
@@ -0,0 +1,92 @@
+require "test/helper"
+
+class ConfigurationTest < ActiveSupport::TestCase
+
+ def test_should_verify_configuration_responds_to_options
+ assert Typus::Configuration.respond_to?(:options)
+ end
+
+ def test_should_verify_application_wide_configuration_options
+ initializer = "#{Rails.root}/config/initializers/typus.rb"
+ return if File.exist?(initializer)
+ assert_equal "Typus", Typus::Configuration.options[:app_name]
+ assert_equal "vendor/plugins/typus/test/config/working", Typus::Configuration.options[:config_folder]
+ assert_equal "columbia", Typus::Configuration.options[:default_password]
+ assert_equal nil, Typus::Configuration.options[:email]
+ assert_equal :typus_preview, Typus::Configuration.options[:file_preview]
+ assert_equal :typus_thumbnail, Typus::Configuration.options[:file_thumbnail]
+ assert_equal "typus_users", Typus::Configuration.options[:relationship]
+ assert_equal "admin", Typus::Configuration.options[:root]
+ assert_equal "TypusUser", Typus::Configuration.options[:user_class_name]
+ assert_equal "typus_user_id", Typus::Configuration.options[:user_fk]
+ end
+
+ def test_should_verify_model_configuration_options
+ initializer = "#{Rails.root}/config/initializers/typus.rb"
+ return if File.exist?(initializer)
+ assert_equal "edit", Typus::Configuration.options[:default_action_on_item]
+ assert_nil Typus::Configuration.options[:end_year]
+ assert_equal 15, Typus::Configuration.options[:form_rows]
+ assert_equal false, Typus::Configuration.options[:index_after_save]
+ assert_equal 5, Typus::Configuration.options[:minute_step]
+ assert_equal "nil", Typus::Configuration.options[:nil]
+ assert_equal false, Typus::Configuration.options[:on_header]
+ assert_equal false, Typus::Configuration.options[:only_user_items]
+ assert_equal 15, Typus::Configuration.options[:per_page]
+ assert_equal 5, Typus::Configuration.options[:sidebar_selector]
+ assert_nil Typus::Configuration.options[:start_year]
+ end
+
+ def test_should_verify_typus_roles_is_loaded
+ assert Typus::Configuration.respond_to?(:roles!)
+ assert Typus::Configuration.roles!.kind_of?(Hash)
+ end
+
+ def test_should_verify_typus_config_file_is_loaded
+ assert Typus::Configuration.respond_to?(:config!)
+ assert Typus::Configuration.config!.kind_of?(Hash)
+ end
+
+ def test_should_load_configuration_files_from_config_broken
+ options = { :config_folder => "vendor/plugins/typus/test/config/broken" }
+ Typus::Configuration.stubs(:options).returns(options)
+ assert_not_equal Hash.new, Typus::Configuration.roles!
+ assert_not_equal Hash.new, Typus::Configuration.config!
+ end
+
+ def test_should_load_configuration_files_from_config_empty
+ options = { :config_folder => "vendor/plugins/typus/test/config/empty" }
+ Typus::Configuration.stubs(:options).returns(options)
+ assert_equal Hash.new, Typus::Configuration.roles!
+ assert_equal Hash.new, Typus::Configuration.config!
+ end
+
+ def test_should_load_configuration_files_from_config_ordered
+ options = { :config_folder => "vendor/plugins/typus/test/config/ordered" }
+ Typus::Configuration.stubs(:options).returns(options)
+ files = Dir["#{Rails.root}/#{Typus::Configuration.options[:config_folder]}/*_roles.yml"]
+ expected = files.collect { |file| File.basename(file) }.sort
+ assert_equal expected, ["001_roles.yml", "002_roles.yml"]
+ expected = { "admin" => { "categories" => "read" } }
+ assert_equal expected, Typus::Configuration.roles!
+ end
+
+ def test_should_load_configuration_files_from_config_unordered
+ options = { :config_folder => "vendor/plugins/typus/test/config/unordered" }
+ Typus::Configuration.stubs(:options).returns(options)
+ files = Dir["#{Rails.root}/#{Typus::Configuration.options[:config_folder]}/*_roles.yml"]
+ expected = files.collect { |file| File.basename(file) }
+ assert_equal expected, ["app_one_roles.yml", "app_two_roles.yml"]
+ expected = { "admin" => { "categories" => "read, update" } }
+ assert_equal expected, Typus::Configuration.roles!
+ end
+
+ def test_should_load_configuration_files_from_config_default
+ options = { :config_folder => "vendor/plugins/typus/test/config/default" }
+ Typus::Configuration.stubs(:options).returns(options)
+ assert_not_equal Hash.new, Typus::Configuration.roles!
+ assert_not_equal Hash.new, Typus::Configuration.config!
+ assert Typus.resources.empty?
+ end
+
+end
\ No newline at end of file
diff --git a/vendor/plugins/typus/test/lib/routes_test.rb b/vendor/plugins/typus/test/lib/routes_test.rb
new file mode 100644
index 0000000..63ed69d
--- /dev/null
+++ b/vendor/plugins/typus/test/lib/routes_test.rb
@@ -0,0 +1,71 @@
+require 'test/helper'
+
+class RoutesTest < ActiveSupport::TestCase
+
+ include ActionController::TestCase::Assertions
+
+ def test_should_verify_admin_named_routes
+
+ routes = ActionController::Routing::Routes.named_routes.routes.keys
+
+ expected = [ :admin_sign_up, :admin_sign_in, :admin_sign_out,
+ :admin_recover_password, :admin_reset_password,
+ :admin_dashboard,
+ :admin_quick_edit ]
+
+ expected.each { |route| assert routes.include?(route) }
+
+ end
+
+ def test_should_verify_admin_named_routes_for_typus_users
+
+ routes = ActionController::Routing::Routes.named_routes.routes.keys
+
+ expected = [ :admin_typus_users,
+ :admin_typus_user ]
+
+ expected.each { |route| assert !routes.include?(route) }
+
+ expected = [ :relate_admin_typus_user,
+ :unrelate_admin_typus_user ]
+
+ expected.each { |route| assert !routes.include?(route) }
+
+ end
+
+ def test_should_verify_default_admin_named_routes_for_posts
+
+ routes = ActionController::Routing::Routes.named_routes.routes.keys
+
+ expected = [ :admin_posts,
+ :admin_post ]
+
+ expected.each { |route| assert !routes.include?(route) }
+
+ end
+
+ def test_should_verify_custom_admin_named_routes_for_posts
+
+ routes = ActionController::Routing::Routes.named_routes.routes.keys
+
+ expected = [ :cleanup_admin_posts,
+ :send_as_newsletter_admin_post,
+ :preview_admin_post ]
+
+ expected.each { |route| assert !routes.include?(route) }
+
+ end
+
+ def test_should_verify_generated_routes_for_typus_controller
+
+ assert_routing '/admin', :controller => 'typus', :action => 'dashboard'
+
+ actions = [ 'sign_up', 'sign_in', 'sign_out',
+ 'recover_password', 'reset_password',
+ 'quick_edit' ]
+
+ actions.each { |a| assert_routing "/admin/#{a}", :controller => 'typus', :action => a }
+
+ end
+
+end
\ No newline at end of file
diff --git a/vendor/plugins/typus/test/lib/typus_test.rb b/vendor/plugins/typus/test/lib/typus_test.rb
new file mode 100644
index 0000000..960dd22
--- /dev/null
+++ b/vendor/plugins/typus/test/lib/typus_test.rb
@@ -0,0 +1,69 @@
+require 'test/helper'
+
+class TypusTest < ActiveSupport::TestCase
+
+ def test_should_return_path
+ expected = Dir.pwd + '/lib/../'
+ assert_equal expected, Typus.root
+ end
+
+ def test_should_return_applications_and_should_be_sorted
+ assert Typus.respond_to?(:applications)
+ assert Typus.applications.kind_of?(Array)
+ assert_equal %w( Blog Site System Typus ), Typus.applications
+ end
+
+ def test_should_return_modules_of_an_application
+ assert Typus.respond_to?(:application)
+ assert_equal %w( Comment Post ), Typus.application('Blog')
+ end
+
+ def test_should_return_models_and_should_be_sorted
+ assert Typus.respond_to?(:models)
+ assert Typus.models.kind_of?(Array)
+ assert_equal %w( Asset Category Comment CustomUser Delayed::Task Page Post TypusUser View ), Typus.models
+ end
+
+ def test_should_return_an_array_of_models_on_header
+ assert Typus.models_on_header.kind_of?(Array)
+ assert_equal ["Page"], Typus.models_on_header
+ end
+
+ # FIXME: Somehow excludes the Order resource.
+ def test_should_verify_resources_class_method
+ return
+ assert Typus.respond_to?(:resources)
+ assert_equal %w( Git Order Status WatchDog ), Typus.resources
+ end
+
+ def test_should_return_user_class
+ assert_equal TypusUser, Typus.user_class
+ end
+
+ def test_should_return_overwritted_user_class
+ options = { :user_class_name => 'CustomUser' }
+ Typus::Configuration.stubs(:options).returns(options)
+ assert_equal CustomUser, Typus.user_class
+ end
+
+ def test_should_return_user_fk
+ assert_equal 'typus_user_id', Typus.user_fk
+ end
+
+ def test_should_return_overwritted_user_fk
+ options = { :user_fk => 'my_user_fk' }
+ Typus::Configuration.stubs(:options).returns(options)
+ assert_equal 'my_user_fk', Typus.user_fk
+ end
+
+ def test_should_return_relationship
+ assert_equal 'typus_users', Typus.relationship
+ end
+
+ def test_should_return_overwritted_user_fk
+ options = { :relationship => 'my_typus_users' }
+ Typus::Configuration.stubs(:options).returns(options)
+ assert_equal 'my_typus_users', Typus.relationship
+ end
+
+end
\ No newline at end of file
diff --git a/vendor/plugins/typus/test/schema.rb b/vendor/plugins/typus/test/schema.rb
new file mode 100644
index 0000000..0b2c77a
--- /dev/null
+++ b/vendor/plugins/typus/test/schema.rb
@@ -0,0 +1,86 @@
+ActiveRecord::Migration.verbose = false
+
+ActiveRecord::Schema.define do
+
+ create_table :assets, :force => true do |t|
+ t.string :caption
+ t.string :resource_type
+ t.integer :resource_id
+ t.integer :position
+ end
+
+ create_table :categories, :force => true do |t|
+ t.string :name
+ t.string :permalink
+ t.text :description
+ t.integer :position
+ end
+
+ create_table :comments, :force => true do |t|
+ t.string :email, :name
+ t.text :body
+ t.integer :post_id
+ end
+
+ add_index :comments, :post_id
+
+ create_table :delayed_tasks, :force => true do |t|
+ t.string :name
+ end
+
+ create_table :pages, :force => true do |t|
+ t.string :title
+ t.text :body
+ t.boolean :is_published
+ t.integer :parent_id
+ end
+
+ create_table :posts, :force => true do |t|
+ t.string :title
+ t.text :body
+ t.string :status
+ t.integer :favorite_comment_id
+ t.timestamps
+ t.datetime :published_at
+ t.integer :typus_user_id
+ end
+
+ create_table :pictures, :force => true do |t|
+ t.string :title
+ t.string :picture_file_name
+ t.string :picture_content_type
+ t.integer :picture_file_size
+ t.datetime :picture_updated_at
+ t.datetime :created_at
+ t.datetime :updated_at
+ t.integer :typus_user_id
+ end
+
+ create_table :typus_users, :force => true do |t|
+ t.string :first_name, :default => "", :null => false
+ t.string :last_name, :default => "", :null => false
+ t.string :role, :null => false
+ t.string :email, :null => false
+ t.boolean :status, :default => false
+ t.string :token, :null => false
+ t.string :salt, :null => false
+ t.string :crypted_password, :null => false
+ t.string :preferences
+ t.timestamps
+ end
+
+ create_table :views, :force => true do |t|
+ t.string :ip, :default => '127.0.0.1'
+ t.integer :post_id
+ t.timestamps
+ end
+
+ create_table :categories_posts, :force => true, :id => false do |t|
+ t.column :category_id, :integer
+ t.column :post_id, :integer
+ end
+
+ add_index :categories_posts, :category_id
+ add_index :categories_posts, :post_id
+
+end
diff --git a/vendor/plugins/typus/test/unit/typus_mailer_test.rb b/vendor/plugins/typus/test/unit/typus_mailer_test.rb
new file mode 100644
index 0000000..9345f53
--- /dev/null
+++ b/vendor/plugins/typus/test/unit/typus_mailer_test.rb
@@ -0,0 +1,29 @@
+require 'test/helper'
+
+class TypusMailerTest < ActiveSupport::TestCase
+
+ def setup
+ @user = typus_users(:admin)
+ url = "http://test.host/admin/reset_password?token=#{@user.token}"
+ @response = TypusMailer.deliver_reset_password_link(@user, url)
+ end
+
+ def test_should_verify_email_from_is_defined_by_typus_options
+ assert_equal Typus::Configuration.options[:email], @response.from
+ end
+
+ def test_should_verify_email_to_is_typus_user_email
+ assert_equal [ @user.email ], @response.to
+ end
+
+ def test_should_verify_email_subject
+ expected = "[#{Typus::Configuration.options[:app_name]}] Reset password"
+ assert_equal expected, @response.subject
+ end
+
+ def test_should_verify_email_contains_reset_password_link_with_token
+ expected = "http://test.host/admin/reset_password?token=1A2B3C4D5E6F"
+ assert_match expected, @response.body
+ end
+
+end
\ No newline at end of file
diff --git a/vendor/plugins/typus/test/unit/typus_test.rb b/vendor/plugins/typus/test/unit/typus_test.rb
new file mode 100644
index 0000000..467beb6
--- /dev/null
+++ b/vendor/plugins/typus/test/unit/typus_test.rb
@@ -0,0 +1,17 @@
+require 'test/helper'
+
+class TypusTest < ActiveSupport::TestCase
+
+ def test_should_verify_models
+ models = [ Category, Comment, Post, TypusUser ]
+ models.each { |m| assert m.superclass.equal?(ActiveRecord::Base) }
+ end
+
+ def test_should_verify_fixtures_are_loaded
+ assert_equal 3, Category.count
+ assert_equal 4, Comment.count
+ assert_equal 4, Post.count
+ assert_equal 5, TypusUser.count
+ end
+
+end
\ No newline at end of file
diff --git a/vendor/plugins/typus/test/unit/typus_user_roles_test.rb b/vendor/plugins/typus/test/unit/typus_user_roles_test.rb
new file mode 100644
index 0000000..fd47a4a
--- /dev/null
+++ b/vendor/plugins/typus/test/unit/typus_user_roles_test.rb
@@ -0,0 +1,97 @@
+require 'test/helper'
+
+class TypusUserRolesTest < ActiveSupport::TestCase
+
+ def test_should_get_list_of_roles
+ roles = %w( admin designer editor )
+ assert_equal roles, Typus::Configuration.roles.map(&:first).sort
+ end
+
+ def test_admin_role_settings
+
+ typus_user = typus_users(:admin)
+ assert_equal 'admin', typus_user.role
+
+ models = %w( Asset Category Comment Delayed::Task Git Page Post Status TypusUser View WatchDog )
+ assert_equal models, typus_user.resources.map(&:first).sort
+
+ # Order exists on the roles, but, as we compact the hash, the
+ # resource is removed.
+ assert !typus_user.resources.map(&:first).include?('Order')
+
+ resources = %w( Git Status WatchDog )
+ models.delete_if { |m| resources.include?(m) }
+
+ %w( create read update destroy ).each do |action|
+ models.each { |model| assert typus_user.can?(action, model), "Error on #{model} #{action}" }
+ end
+
+ # Order resource doesn't have an index action, so we current user
+ # cannot perform the action.
+ assert typus_user.cannot?('index', 'Order')
+
+ # Status resource has an index action, but not a show one.
+ # We add the { :special => true } option to by-pass the action
+ # renaming performed in the TypusUser#can? method.
+ assert typus_user.can?('index', 'Status', { :special => true })
+ assert typus_user.cannot?('show', 'Status', { :special => true })
+
+ end
+
+ def test_editor_role_settings
+
+ typus_user = typus_users(:editor)
+ assert_equal 'editor', typus_user.role
+
+ %w( Category Comment Git Post TypusUser ).each do |model|
+ assert typus_user.resources.map(&:first).include?(model)
+ end
+
+ # Category: create, read, update
+ %w( create read update ).each { |action| assert typus_user.can?(action, 'Category') }
+ %w( delete ).each { |action| assert typus_user.cannot?(action, 'Category') }
+
+ # Post: create, read, update
+ %w( create read update ).each { |action| assert typus_user.can?(action, 'Post') }
+ %w( delete ).each { |action| assert typus_user.cannot?(action, 'Post') }
+
+ # Comment: read, update, delete
+ %w( read update delete ).each { |action| assert typus_user.can?(action, 'Comment') }
+ %w( create ).each { |action| assert typus_user.cannot?(action, 'Comment') }
+
+ # TypusUser: read, update
+ %w( read update ).each { |action| assert typus_user.can?(action, 'TypusUser') }
+ %w( create delete ).each { |action| assert typus_user.cannot?(action, 'TypusUser') }
+
+ end
+
+ def test_designer_role_settings
+
+ typus_user = typus_users(:designer)
+ assert_equal 'designer', typus_user.role
+
+ models = %w( Category Comment Post )
+ assert_equal models, typus_user.resources.map(&:first).sort
+
+ # Category: read, update
+ %w( read update ).each { |action| assert typus_user.can?(action, 'Category') }
+ %w( create delete ).each { |action| assert typus_user.cannot?(action, 'Category') }
+
+ # Comment: read
+ %w( read ).each { |action| assert typus_user.can?(action, 'Comment') }
+ %w( create update delete ).each { |action| assert typus_user.cannot?(action, 'Comment') }
+
+ # Post: read, update
+ %w( read update ).each { |action| assert typus_user.can?(action, 'Post') }
+ %w( create delete ).each { |action| assert typus_user.cannot?(action, 'Post') }
+
+ end
+
+ def test_admin_can_perform_any_action_on_delayed_task_model
+ typus_user = typus_users(:admin)
+ action = 'whatever_i_want_to'
+ klass = Delayed::Task
+ assert typus_user.can?(action, klass), "Admin can't perform `#{action}` on `#{klass}`."
+ end
+
+end
\ No newline at end of file
diff --git a/vendor/plugins/typus/test/unit/typus_user_test.rb b/vendor/plugins/typus/test/unit/typus_user_test.rb
new file mode 100644
index 0000000..e5c99b8
--- /dev/null
+++ b/vendor/plugins/typus/test/unit/typus_user_test.rb
@@ -0,0 +1,179 @@
+require 'test/helper'
+
+class TypusUserTest < ActiveSupport::TestCase
+
+ def setup
+ @data = { :first_name => '',
+ :last_name => '',
+ :email => 'test@example.com',
+ :password => '12345678',
+ :password_confirmation => '12345678',
+ :role => Typus::Configuration.options[:root],
+ :preferences => { :locale => :en } }
+ @typus_user = TypusUser.new(@data)
+ end
+
+ def test_should_verify_typus_user_attributes
+ [ :first_name, :last_name, :email, :role, :salt, :crypted_password ].each do |attribute|
+ assert TypusUser.instance_methods.map { |i| i.to_sym }.include?(attribute)
+ end
+ end
+
+ def test_should_verify_definition_on_instance_methods
+ [ :is_root?, :authenticated? ].each do |instance_method|
+ assert TypusUser.instance_methods.map { |i| i.to_sym }.include?(instance_method)
+ end
+ end
+
+ def test_should_verify_email_format
+ @typus_user.email = 'admin'
+ assert @typus_user.invalid?
+ assert @typus_user.errors.invalid?(:email)
+ end
+
+ def test_should_verify_email_is_not_valid
+ email = <<-RAW
+this_is_chelm@example.com
+
+ RAW
+ @typus_user.email = email
+ assert @typus_user.invalid?
+ assert @typus_user.errors.invalid?(:email)
+ end
+
+ def test_should_verify_emails_are_downcase
+ email = 'TEST@EXAMPLE.COM'
+ @typus_user.email = email
+ assert @typus_user.invalid?
+ assert @typus_user.errors.invalid?(:email)
+ end
+
+ def test_should_verify_some_valid_emails_schemas
+ emails = [ 'test+filter@example.com',
+ 'test.filter@example.com',
+ 'test@example.co.uk',
+ 'test@example.es' ]
+ emails.each do |email|
+ @typus_user.email = email
+ assert @typus_user.valid?
+ end
+ end
+
+ def test_should_verify_invalid_emails_are_detected
+ emails = [ 'test@example', 'test@example.c', 'testexample.com' ]
+ emails.each do |email|
+ @typus_user.email = email
+ assert @typus_user.invalid?
+ assert @typus_user.errors.invalid?(:email)
+ end
+ end
+
+ def test_should_verify_email_is_unique
+ @typus_user.save
+ @another_typus_user = TypusUser.new(@data)
+ assert @another_typus_user.invalid?
+ assert @another_typus_user.errors.invalid?(:email)
+ end
+
+ def test_should_verify_length_of_password_when_under_within
+ @typus_user.password = '1234'
+ @typus_user.password_confirmation = '1234'
+ assert @typus_user.invalid?
+ assert @typus_user.errors.invalid?(:password)
+ end
+
+ def test_should_verify_length_of_password_when_its_within_on_lower_limit
+ @typus_user.password = '=' * 8
+ @typus_user.password_confirmation = '=' * 8
+ assert @typus_user.valid?
+ end
+
+ def test_should_verify_length_of_password_when_its_within_on_upper_limit
+ @typus_user.password = '=' * 40
+ @typus_user.password_confirmation = '=' * 40
+ assert @typus_user.valid?
+ end
+
+ def test_should_verify_length_of_password_when_its_over_within
+ @typus_user.password = '=' * 50
+ @typus_user.password_confirmation = '=' * 50
+ assert @typus_user.invalid?
+ assert @typus_user.errors.invalid?(:password)
+ end
+
+ def test_should_verify_confirmation_of_password
+
+ @typus_user.password = '12345678'
+ @typus_user.password_confirmation = '87654321'
+ assert @typus_user.invalid?
+ assert @typus_user.errors.invalid?(:password)
+
+ @typus_user.password = '12345678'
+ @typus_user.password_confirmation = ''
+ assert @typus_user.invalid?
+ assert @typus_user.errors.invalid?(:password)
+
+ end
+
+ def test_should_verify_role
+ @typus_user.role = ''
+ assert @typus_user.invalid?
+ assert @typus_user.errors.invalid?(:role)
+ assert_equal "can't be blank", @typus_user.errors[:role]
+ end
+
+ def test_should_return_name_when_only_email
+ assert_equal @typus_user.email, @typus_user.name
+ end
+
+ def test_should_return_name_when_theres_first_name_and_last_name
+ @typus_user.first_name = 'John'
+ @typus_user.last_name = 'Smith'
+ assert_equal 'John Smith', @typus_user.name
+ end
+
+ def test_should_return_verify_is_root
+ assert @typus_user.is_root?
+ editor = typus_users(:editor)
+ assert editor.is_not_root?
+ end
+
+ def test_should_verify_authenticated
+ @typus_user.save
+ assert @typus_user.authenticated?('12345678')
+ assert !@typus_user.authenticated?('87654321')
+ end
+
+ def test_should_verify_typus_user_can_be_created
+ assert_difference 'TypusUser.count' do
+ TypusUser.create(@data)
+ end
+ end
+
+ def test_should_verify_salt_on_user_never_changes
+
+ @typus_user.save
+ salt = @typus_user.salt
+ crypted_password = @typus_user.crypted_password
+
+ @typus_user.update_attributes :password => '11111111', :password_confirmation => '11111111'
+ assert_equal salt, @typus_user.salt
+ assert_not_equal crypted_password, @typus_user.crypted_password
+
+ end
+
+ def test_should_verify_generate
+ assert TypusUser.respond_to?(:generate)
+ assert TypusUser.generate(:email => 'demo@example.com', :password => 'XXXXXXXX').invalid?
+ assert TypusUser.generate(:email => 'demo@example.com', :password => 'XXXXXXXX', :role => 'admin').valid?
+ end
+
+ def test_should_verify_can?
+ assert TypusUser.instance_methods.map { |i| i.to_sym }.include?(:can?)
+ @current_user = TypusUser.find(:first)
+ assert @current_user.can?('delete', TypusUser)
+ assert @current_user.can?('delete', 'TypusUser')
+ assert !@current_user.cannot?('delete', 'TypusUser')
+ end
+
+end
\ No newline at end of file
diff --git a/vendor/plugins/typus/test/vendor/paginator_test.rb b/vendor/plugins/typus/test/vendor/paginator_test.rb
new file mode 100644
index 0000000..29235fb
--- /dev/null
+++ b/vendor/plugins/typus/test/vendor/paginator_test.rb
@@ -0,0 +1,138 @@
+require 'test/helper'
+
+class PaginatorTest < ActiveSupport::TestCase
+
+ PER_PAGE = 10
+
+ def setup
+ @data = (0..43).to_a
+ @pager = Paginator.new(@data.size, PER_PAGE) do |offset,per_page|
+ @data[offset,per_page]
+ end
+ end
+
+ def test_initializing_paginator_raises_exception
+ assert_raises(Paginator::MissingSelectError) do
+ @pager = Paginator.new(@data.size, PER_PAGE)
+ end
+ end
+
+ def test_can_get_last_page_from_page_object
+ assert_equal @pager.last, @pager.page(2).last
+ end
+
+ # FIXME: Problem with paginator.rb.
+ def test_can_get_first_page_from_page_object
+ return
+ assert_equal @pager.first, @pager.page(2).first
+ end
+
+ def test_does_not_exceed_per_page
+ @pager.each do |page|
+ assert page.items.size <= PER_PAGE
+ end
+ end
+
+ def test_only_last_page_has_less_items
+ @pager.each do |page|
+ if page != @pager.last
+ assert page.items.size <= PER_PAGE
+ else
+ assert page.items.size < PER_PAGE
+ end
+ end
+ end
+
+ def test_returns_correct_first_page
+ assert_equal @pager.page(1).number, @pager.first.number
+ end
+
+ def test_returns_correct_last_page
+ assert_equal @pager.page(5).number, @pager.last.number
+ end
+
+ def test_last_page_has_no_next_page
+ assert !@pager.last.next?
+ assert !@pager.last.next
+ end
+
+ def test_first_page_has_no_prev_page
+ assert !@pager.first.prev?
+ assert !@pager.first.prev
+ end
+
+ def test_page_enumerable
+ @pager.each do |page|
+ assert page
+ page.each do |item|
+ assert item
+ end
+ page.each_with_index do |item, index|
+ assert_equal page.items[index], item
+ end
+ assert_equal page.items, page.inject([]) { |list, item| list << item }
+ end
+ end
+
+ def test_each_with_index
+ page_offset = 0
+ @pager.each_with_index do |page, page_index|
+ assert page
+ assert_equal page_offset, page_index
+ item_offset = 0
+ page.each_with_index do |item, item_index|
+ assert item
+ assert_equal item_offset, item_index
+ item_offset += 1
+ end
+ page_offset += 1
+ end
+ end
+
+ def test_number_of_pages
+ assert_equal 5, @pager.number_of_pages
+ end
+
+ def test_passing_block_to_initializer_with_arity_of_two_yields_per_page
+ pager = Paginator.new(20,2) do |offset,per_page|
+ assert_equal 2, per_page
+ end
+ pager.page(1).items
+ end
+
+ def test_passing_block_to_initializer_with_arity_of_one_does_not_yield_per_page
+ pager = Paginator.new(20,2) do |offset|
+ assert_equal 0, offset
+ end
+ pager.page(1).items
+ end
+
+ def test_page_object_knows_first_and_last_item_numbers
+ items = (1..11).to_a
+ pager = Paginator.new(items.size,3) do |offset, per_page|
+ items[offset, per_page]
+ end
+ page = pager.page(1)
+ assert_equal 1, page.first_item_number
+ assert_equal 3, page.last_item_number
+ page = pager.page(2)
+ assert_equal 4, page.first_item_number
+ assert_equal 6, page.last_item_number
+ page = pager.page(3)
+ assert_equal 7, page.first_item_number
+ assert_equal 9, page.last_item_number
+ page = pager.page(4)
+ assert_equal 10, page.first_item_number
+ assert_equal 11, page.last_item_number
+ end
+
+end
+
+class PaginatorTestWithMathN < PaginatorTest
+
+ def setup
+ require 'mathn'
+ super
+ end
+
+end
\ No newline at end of file
diff --git a/vendor/plugins/typus/typus.gemspec b/vendor/plugins/typus/typus.gemspec
new file mode 100644
index 0000000..2db962b
--- /dev/null
+++ b/vendor/plugins/typus/typus.gemspec
@@ -0,0 +1,24 @@
+# -*- encoding: utf-8 -*-
+lib = File.expand_path('../lib/', __FILE__)
+$:.unshift lib unless $:.include?(lib)
+
+require "typus/version"
+
+Gem::Specification.new do |s|
+
+ s.name = "typus"
+ s.version = Typus::VERSION
+ s.platform = Gem::Platform::RUBY
+ s.authors = ["Francesc Esplugas"]
+ s.email = ["francesc@intraducibles.com"]
+ s.homepage = "http://labs.intraducibles.com/projects/typus"
+ s.summary = "Effortless backend interface for Ruby on Rails applications. (Admin scaffold generator.)"
+ s.description = "Awesone admin scaffold generator for Ruby on Rails applications."
+
+ s.required_rubygems_version = ">= 1.3.6"
+ s.rubyforge_project = "typus"
+
+ s.files = Dir.glob("**/*")
+ s.require_path = "lib"
+
+end