diff --git a/app/controllers/categories_controller.rb b/app/controllers/categories_controller.rb index 63d227a..b592d94 100644 --- a/app/controllers/categories_controller.rb +++ b/app/controllers/categories_controller.rb @@ -3,7 +3,11 @@ class CategoriesController < ApplicationController # GET /categories # GET /categories.xml def index - @categories = Category.all + @categories = Category.paginate :all, :page => params[:page], :per_page => 4 + + @num_categories = @categories.count + + @photos = Photo.all(:limit => 2, :order => 'RANDOM()') respond_to do |format| format.html # index.html.erb diff --git a/app/controllers/pages_controller.rb b/app/controllers/pages_controller.rb new file mode 100644 index 0000000..7ce5503 --- /dev/null +++ b/app/controllers/pages_controller.rb @@ -0,0 +1,7 @@ +class PagesController < ApplicationController + layout "photos" + + def index + @photo = Photo.first(:order => 'RANDOM()') + end +end diff --git a/app/controllers/photos_controller.rb b/app/controllers/photos_controller.rb index fec4440..ef9fb6e 100644 --- a/app/controllers/photos_controller.rb +++ b/app/controllers/photos_controller.rb @@ -13,6 +13,9 @@ class PhotosController < ApplicationController @photos = Photo.paginate :all, :page => params[:page], :per_page => 11 @num_photos = @photos.count end + respond_to do |format| + format.html + end end def create diff --git a/app/helpers/pages_helper.rb b/app/helpers/pages_helper.rb new file mode 100644 index 0000000..2c057fd --- /dev/null +++ b/app/helpers/pages_helper.rb @@ -0,0 +1,2 @@ +module PagesHelper +end diff --git a/app/models/photo.rb b/app/models/photo.rb index e10f915..d789f47 100644 --- a/app/models/photo.rb +++ b/app/models/photo.rb @@ -1,9 +1,10 @@ -require 'exifr' +require 'mini_exiftool' class Photo < ActiveRecord::Base has_and_belongs_to_many :categories has_attached_file :photo, :styles => { :original => "1024x1024>", + :size17 => "476x476#", :size11 => "308x308#", :size8 => "224x224#", :size5 => "140x140#", @@ -16,7 +17,9 @@ class Photo < ActiveRecord::Base private def get_exif - exif = EXIFR::JPEG.new(photo.queued_for_write[:original].path) - self.description = exif.image_description + exif = MiniExiftool.new photo.queued_for_write[:original].path + self.title = exif.title + self.description = exif.description + self.save end end diff --git a/app/views/categories/index.html.erb b/app/views/categories/index.html.erb index 969db18..3f76f33 100644 --- a/app/views/categories/index.html.erb +++ b/app/views/categories/index.html.erb @@ -1,6 +1,26 @@ + + +<% @num_blank = 4 - @num_categories -%> +
+ +<% @photos.each do |photo| %> + +
+ <%= link_to ' ', photo.photo.url, :rel => 'photo', :class => 'fancy' %> +
+ +<% end %> <% @categories.each do |category| %>
@@ -8,4 +28,19 @@
<% end %> +<% @num_blank.times do %> +
+
+<% end %> + + +
diff --git a/app/views/layouts/photos.html.erb b/app/views/layouts/photos.html.erb index 56109a2..972a19f 100644 --- a/app/views/layouts/photos.html.erb +++ b/app/views/layouts/photos.html.erb @@ -10,18 +10,28 @@ + +
-
-
+
+
-
+
- + - <%= yield %> + <%= yield %> + + -
-
+
+
+ +
diff --git a/app/views/pages/about.html.erb b/app/views/pages/about.html.erb new file mode 100644 index 0000000..0e7f1c1 --- /dev/null +++ b/app/views/pages/about.html.erb @@ -0,0 +1,26 @@ +
+
+
+ <%= link_to '
portfolio
', :controller => 'categories' %> +
+
+ +
+ +
+
+ +
+
+ +
+
+
+
+
+
+
+ <%= link_to '
contact
', :action => 'contact' %> +
+ +
\ No newline at end of file diff --git a/app/views/pages/index.html.erb b/app/views/pages/index.html.erb new file mode 100644 index 0000000..b62261b --- /dev/null +++ b/app/views/pages/index.html.erb @@ -0,0 +1,18 @@ +
+ <%= link_to '
about
', :action => 'about' %> +
+
+ <%= link_to '
portfolio
', :controller => 'categories' %> +
+
+ +
+
+ +
+
+
+
+
+ <%= link_to '
contact
', :action => 'contact' %> +
diff --git a/app/views/photos/index.html.erb b/app/views/photos/index.html.erb index 77c2878..5eaa585 100644 --- a/app/views/photos/index.html.erb +++ b/app/views/photos/index.html.erb @@ -1,9 +1,9 @@ -
-
+ ', :controller = 'pages', :action => 'about' )... + ^ +/Users/danbee/Sites/rails/photos/app/views/categories/index.html.erb:2: syntax error, unexpected ',', expecting ')' +.../div>', :controller = 'pages', :action => 'about' ).to_s); @... + ^) on line #2 of app/views/categories/index.html.erb: +1:
+2: <%= link_to '
about
', :controller = 'pages', :action => 'about' %> +3:
+4:
+5: + + app/views/categories/index.html.erb:28:in `compile!' + app/controllers/categories_controller.rb:12:in `index' + +Rendered rescues/_trace (40.8ms) +Rendered rescues/_request_and_response (0.5ms) +Rendering rescues/layout (internal_server_error) + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 12:05:01) [GET] + Category Load (0.9ms) SELECT * FROM "categories"  + Photo Load (1.3ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 6 +Rendering template within layouts/photos +Rendering categories/index +Completed in 21ms (View: 8, DB: 2) | 200 OK [http://localhost/categories] + + +Processing PagesController#index (for 127.0.0.1 at 2010-10-09 12:05:19) [GET] + Photo Load (0.7ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 1 +Rendering template within layouts/photos +Rendering pages/index +Completed in 12ms (View: 6, DB: 1) | 200 OK [http://localhost/] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 12:05:20) [GET] + Category Load (0.9ms) SELECT * FROM "categories"  + Photo Load (1.0ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 6 +Rendering template within layouts/photos +Rendering categories/index +Completed in 17ms (View: 5, DB: 2) | 200 OK [http://localhost/categories] + + +Processing PagesController#index (for 127.0.0.1 at 2010-10-09 12:05:29) [GET] + Photo Load (0.6ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 1 +Rendering template within layouts/photos +Rendering pages/index +Completed in 12ms (View: 6, DB: 1) | 200 OK [http://localhost/] + + +Processing Admin::CategoriesController#index (for 127.0.0.1 at 2010-10-09 12:06:22) [GET] + Parameters: {"action"=>"index", "controller"=>"admin/categories"} + TypusUser Load (0.3ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + SQL (0.2ms) SELECT count(*) AS count_all FROM "categories"  +Rendering template within layouts/admin +Rendering admin/resources/index +Rendered admin/helpers/_list (0.8ms) +Rendered admin/helpers/_search (2.0ms) + Category Load (1.0ms) SELECT "categories".* FROM "categories" ORDER BY categories.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_table_header (0.5ms) +Rendered admin/helpers/_header (1.1ms) +Rendered admin/helpers/_login_info (0.9ms) +Rendered admin/shared/_footer (0.6ms) +Completed in 190ms (View: 162, DB: 1) | 200 OK [http://localhost/admin/categories] + + +Processing Admin::CategoriesController#edit (for 127.0.0.1 at 2010-10-09 12:06:28) [GET] + Parameters: {"action"=>"edit", "id"=>"1", "controller"=>"admin/categories"} + TypusUser Load (0.6ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Category Load (0.3ms) SELECT * FROM "categories" WHERE ("categories"."id" = 1)  +Rendering template within layouts/admin +Rendering admin/resources/edit +Rendered admin/helpers/_list (0.2ms) +Rendered admin/helpers/_search (0.7ms) +Rendered admin/templates/_string (3.0ms) +Rendered admin/templates/_text (1.1ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/resources/_form (17.5ms) + SQL (0.2ms) SELECT count(*) AS count_all FROM "photos"  + Photo Load (2.4ms) SELECT * FROM "photos"  + Photo Load (1.6ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 )  + CACHE (0.0ms) SELECT * FROM "categories" WHERE ("categories"."id" = 1)  + SQL (0.2ms) SELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 )  + CACHE (0.0ms) SELECT * FROM "categories" WHERE ("categories"."id" = 1)  + Photo Load (1.7ms) SELECT * 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 +Rendered admin/helpers/_table_header (0.1ms) +Rendered admin/helpers/_header (0.2ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 185ms (View: 158, DB: 7) | 200 OK [http://localhost/admin/categories/edit/1] + + +Processing Admin::CategoriesController#update (for 127.0.0.1 at 2010-10-09 12:06:31) [PUT] + Parameters: {"category"=>{"name"=>"Landscapes", "sort"=>"", "base_colour"=>"#16bf00", "photo_id"=>"", "description"=>""}, "commit"=>"Save Category", "action"=>"update", "_method"=>"put", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "id"=>"1", "controller"=>"admin/categories"} + TypusUser Load (0.6ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Category Load (0.3ms) SELECT * FROM "categories" WHERE ("categories"."id" = 1)  + Category Update (0.3ms) UPDATE "categories" SET "updated_at" = '2010-10-09 16:06:31', "base_colour" = '#16bf00' WHERE "id" = 1 +Redirected to http://localhost:3000/admin/categories/edit/1 +Completed in 26ms (DB: 1) | 302 Found [http://localhost/admin/categories/update/1] + + +Processing Admin::CategoriesController#edit (for 127.0.0.1 at 2010-10-09 12:06:31) [GET] + Parameters: {"action"=>"edit", "id"=>"1", "controller"=>"admin/categories"} + TypusUser Load (0.5ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Category Load (0.3ms) SELECT * FROM "categories" WHERE ("categories"."id" = 1)  +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.9ms) +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.0ms) + SQL (0.2ms) SELECT count(*) AS count_all FROM "photos"  + Photo Load (1.9ms) SELECT * FROM "photos"  + Photo Load (1.5ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 )  + CACHE (0.0ms) SELECT * FROM "categories" WHERE ("categories"."id" = 1)  + SQL (0.3ms) SELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 )  + CACHE (0.0ms) SELECT * FROM "categories" WHERE ("categories"."id" = 1)  + Photo Load (2.0ms) SELECT * 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 +Rendered admin/helpers/_table_header (0.1ms) +Rendered admin/helpers/_header (0.2ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/helpers/_flash_message (0.5ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 90ms (View: 62, DB: 7) | 200 OK [http://localhost/admin/categories/edit/1] + + +Processing PagesController#index (for 127.0.0.1 at 2010-10-09 12:06:32) [GET] + Photo Load (0.6ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 1 +Rendering template within layouts/photos +Rendering pages/index +Completed in 73ms (View: 6, DB: 1) | 200 OK [http://localhost/] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 12:06:33) [GET] + Category Load (0.8ms) SELECT * FROM "categories"  + Photo Load (0.8ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 6 +Rendering template within layouts/photos +Rendering categories/index +Completed in 16ms (View: 5, DB: 2) | 200 OK [http://localhost/categories] + + +Processing Admin::CategoriesController#update (for 127.0.0.1 at 2010-10-09 12:06:55) [PUT] + Parameters: {"category"=>{"name"=>"Landscapes", "sort"=>"", "base_colour"=>"#54cc1e", "photo_id"=>"", "description"=>""}, "commit"=>"Save Category", "action"=>"update", "_method"=>"put", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "id"=>"1", "controller"=>"admin/categories"} + TypusUser Load (0.7ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Category Load (0.3ms) SELECT * FROM "categories" WHERE ("categories"."id" = 1)  + Category Update (0.3ms) UPDATE "categories" SET "updated_at" = '2010-10-09 16:06:55', "base_colour" = '#54cc1e' WHERE "id" = 1 +Redirected to http://localhost:3000/admin/categories/edit/1 +Completed in 26ms (DB: 1) | 302 Found [http://localhost/admin/categories/update/1] + + +Processing Admin::CategoriesController#edit (for 127.0.0.1 at 2010-10-09 12:06:55) [GET] + Parameters: {"action"=>"edit", "id"=>"1", "controller"=>"admin/categories"} + TypusUser Load (0.8ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Category Load (0.3ms) SELECT * FROM "categories" WHERE ("categories"."id" = 1)  +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.0ms) +Rendered admin/templates/_text (0.5ms) +Rendered admin/templates/_string (0.9ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/resources/_form (8.6ms) + SQL (0.2ms) SELECT count(*) AS count_all FROM "photos"  + Photo Load (2.2ms) SELECT * FROM "photos"  + Photo Load (1.7ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 )  + CACHE (0.0ms) SELECT * FROM "categories" WHERE ("categories"."id" = 1)  + SQL (0.2ms) SELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 )  + CACHE (0.0ms) SELECT * FROM "categories" WHERE ("categories"."id" = 1)  + Photo Load (1.6ms) SELECT * 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 +Rendered admin/helpers/_table_header (0.1ms) +Rendered admin/helpers/_header (0.2ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/helpers/_flash_message (0.1ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 91ms (View: 60, DB: 7) | 200 OK [http://localhost/admin/categories/edit/1] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 12:06:57) [GET] + Category Load (0.9ms) SELECT * FROM "categories"  + Photo Load (0.9ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 6 +Rendering template within layouts/photos +Rendering categories/index +Completed in 19ms (View: 6, DB: 2) | 200 OK [http://localhost/categories] + + +Processing Admin::CategoriesController#update (for 127.0.0.1 at 2010-10-09 12:07:45) [PUT] + Parameters: {"category"=>{"name"=>"Landscapes", "sort"=>"", "base_colour"=>"#7dd231", "photo_id"=>"", "description"=>""}, "commit"=>"Save Category", "action"=>"update", "_method"=>"put", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "id"=>"1", "controller"=>"admin/categories"} + TypusUser Load (0.5ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Category Load (0.3ms) SELECT * FROM "categories" WHERE ("categories"."id" = 1)  + Category Update (0.3ms) UPDATE "categories" SET "updated_at" = '2010-10-09 16:07:45', "base_colour" = '#7dd231' WHERE "id" = 1 +Redirected to http://localhost:3000/admin/categories/edit/1 +Completed in 27ms (DB: 1) | 302 Found [http://localhost/admin/categories/update/1] + + +Processing Admin::CategoriesController#edit (for 127.0.0.1 at 2010-10-09 12:07:45) [GET] + Parameters: {"action"=>"edit", "id"=>"1", "controller"=>"admin/categories"} + TypusUser Load (0.8ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Category Load (0.5ms) SELECT * FROM "categories" WHERE ("categories"."id" = 1)  +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.6ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/resources/_form (7.9ms) + SQL (0.2ms) SELECT count(*) AS count_all FROM "photos"  + Photo Load (2.3ms) SELECT * FROM "photos"  + Photo Load (2.3ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 )  + CACHE (0.0ms) SELECT * FROM "categories" WHERE ("categories"."id" = 1)  + SQL (0.3ms) SELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 )  + CACHE (0.0ms) SELECT * FROM "categories" WHERE ("categories"."id" = 1)  + Photo Load (1.8ms) SELECT * 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 +Rendered admin/helpers/_table_header (0.1ms) +Rendered admin/helpers/_header (0.2ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/helpers/_flash_message (0.1ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 161ms (View: 124, DB: 8) | 200 OK [http://localhost/admin/categories/edit/1] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 12:07:46) [GET] + Category Load (0.8ms) SELECT * FROM "categories"  + Photo Load (0.9ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 6 +Rendering template within layouts/photos +Rendering categories/index +Completed in 17ms (View: 6, DB: 2) | 200 OK [http://localhost/categories] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 12:07:50) [GET] + Parameters: {"category_id"=>"6"} + Category Load (0.3ms) SELECT * FROM "categories" WHERE ("categories"."id" = '6') LIMIT 1 + Photo Load (0.6ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 6 ) LIMIT 11 OFFSET 0 +Rendering template within layouts/photos +Rendering photos/index +Completed in 22ms (View: 8, DB: 1) | 200 OK [http://localhost/categories/6/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 12:07:52) [GET] + Parameters: {"category_id"=>"1"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1 + Photo Load (1.3ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 0 + SQL (0.2ms) SELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 )  +Rendering template within layouts/photos +Rendering photos/index +Completed in 88ms (View: 14, DB: 2) | 200 OK [http://localhost/categories/1/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 12:07:58) [GET] + Parameters: {"category_id"=>"1", "page"=>"2"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1 + Photo Load (0.6ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 11 +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 12:08:00) [GET] + Parameters: {"category_id"=>"1", "page"=>"1"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1 + Photo Load (1.3ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 0 + SQL (0.2ms) SELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 )  +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 PagesController#index (for 127.0.0.1 at 2010-10-09 12:08:04) [GET] + Photo Load (0.6ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 1 +Rendering template within layouts/photos +Rendering pages/index +Completed in 13ms (View: 6, DB: 1) | 200 OK [http://localhost/] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 12:08:05) [GET] + Category Load (0.8ms) SELECT * FROM "categories"  + Photo Load (0.8ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 6 +Rendering template within layouts/photos +Rendering categories/index +Completed in 15ms (View: 5, DB: 2) | 200 OK [http://localhost/categories] + + +Processing PagesController#about (for 127.0.0.1 at 2010-10-09 12:08:29) [GET] +Rendering template within layouts/photos +Rendering pages/about +Completed in 5ms (View: 3, DB: 0) | 200 OK [http://localhost/about] + + +Processing PagesController#about (for 127.0.0.1 at 2010-10-09 12:09:17) [GET] +Rendering template within layouts/photos +Rendering pages/about +Completed in 7ms (View: 5, DB: 0) | 200 OK [http://localhost/about] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 12:09:19) [GET] + Category Load (0.8ms) SELECT * FROM "categories"  + Photo Load (0.8ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 6 +Rendering template within layouts/photos +Rendering categories/index +Completed in 19ms (View: 8, DB: 2) | 200 OK [http://localhost/categories] + + +Processing PagesController#about (for 127.0.0.1 at 2010-10-09 12:09:20) [GET] +Rendering template within layouts/photos +Rendering pages/about +Completed in 5ms (View: 3, DB: 0) | 200 OK [http://localhost/about] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 12:09:23) [GET] + Category Load (0.8ms) SELECT * FROM "categories"  + Photo Load (0.8ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 6 +Rendering template within layouts/photos +Rendering categories/index +Completed in 15ms (View: 5, DB: 2) | 200 OK [http://localhost/categories] + + +Processing PagesController#about (for 127.0.0.1 at 2010-10-09 12:09:25) [GET] +Rendering template within layouts/photos +Rendering pages/about +Completed in 4ms (View: 3, DB: 0) | 200 OK [http://localhost/about] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 12:09:56) [GET] + Category Load (0.9ms) SELECT * FROM "categories"  + Photo Load (0.8ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 6 +Rendering template within layouts/photos +Rendering categories/index +Completed in 17ms (View: 5, DB: 2) | 200 OK [http://localhost/categories] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 12:09:58) [GET] + Parameters: {"category_id"=>"4"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '4') LIMIT 1 + Photo Load (1.2ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 4 ) LIMIT 11 OFFSET 0 +Rendering template within layouts/photos +Rendering photos/index +Completed in 26ms (View: 13, DB: 1) | 200 OK [http://localhost/categories/4/photos] + + +Processing PagesController#about (for 127.0.0.1 at 2010-10-09 12:10:36) [GET] +Rendering template within layouts/photos +Rendering pages/about +Completed in 4ms (View: 2, DB: 0) | 200 OK [http://localhost/about] + + +Processing PagesController#about (for 127.0.0.1 at 2010-10-09 12:11:27) [GET] +Rendering template within layouts/photos +Rendering pages/about +Completed in 7ms (View: 5, DB: 0) | 200 OK [http://localhost/about] + + +Processing PagesController#about (for 127.0.0.1 at 2010-10-09 12:11:30) [GET] +Rendering template within layouts/photos +Rendering pages/about +Completed in 4ms (View: 2, DB: 0) | 200 OK [http://localhost/about] + + +Processing PagesController#about (for 127.0.0.1 at 2010-10-09 12:11:48) [GET] +Rendering template within layouts/photos +Rendering pages/about +Completed in 4ms (View: 2, DB: 0) | 200 OK [http://localhost/about] + + +Processing PagesController#about (for 127.0.0.1 at 2010-10-09 12:12:42) [GET] +Rendering template within layouts/photos +Rendering pages/about +Completed in 4ms (View: 2, DB: 0) | 200 OK [http://localhost/about] + + +Processing PagesController#about (for 127.0.0.1 at 2010-10-09 12:13:05) [GET] +Rendering template within layouts/photos +Rendering pages/about +Completed in 8ms (View: 6, DB: 0) | 200 OK [http://localhost/about] + + +Processing PagesController#about (for 127.0.0.1 at 2010-10-09 12:13:26) [GET] +Rendering template within layouts/photos +Rendering pages/about +Completed in 7ms (View: 5, DB: 0) | 200 OK [http://localhost/about] + + +Processing PagesController#about (for 127.0.0.1 at 2010-10-09 12:13:34) [GET] +Rendering template within layouts/photos +Rendering pages/about +Completed in 8ms (View: 6, DB: 0) | 200 OK [http://localhost/about] + + +Processing PagesController#about (for 127.0.0.1 at 2010-10-09 12:13:38) [GET] +Rendering template within layouts/photos +Rendering pages/about +Completed in 8ms (View: 6, DB: 0) | 200 OK [http://localhost/about] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 12:13:47) [GET] + Category Load (0.8ms) SELECT * FROM "categories"  + Photo Load (0.9ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 6 +Rendering template within layouts/photos +Rendering categories/index +Completed in 16ms (View: 5, DB: 2) | 200 OK [http://localhost/categories] + + +Processing PagesController#about (for 127.0.0.1 at 2010-10-09 12:13:48) [GET] +Rendering template within layouts/photos +Rendering pages/about +Completed in 4ms (View: 3, DB: 0) | 200 OK [http://localhost/about] + + +Processing PagesController#index (for 127.0.0.1 at 2010-10-09 12:13:49) [GET] + Photo Load (0.7ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 1 +Rendering template within layouts/photos +Rendering pages/index +Completed in 12ms (View: 6, DB: 1) | 200 OK [http://localhost/] + + +Processing PagesController#about (for 127.0.0.1 at 2010-10-09 12:13:50) [GET] +Rendering template within layouts/photos +Rendering pages/about +Completed in 4ms (View: 3, DB: 0) | 200 OK [http://localhost/about] + + +Processing PagesController#contact (for 127.0.0.1 at 2010-10-09 12:13:56) [GET] + +ActionController::UnknownAction (No action responded to contact. Actions: index): + + +Rendering rescues/layout (not_found) + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 12:13:57) [GET] + Category Load (0.8ms) SELECT * FROM "categories"  + Photo Load (0.8ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 6 +Rendering template within layouts/photos +Rendering categories/index +Completed in 16ms (View: 5, DB: 2) | 200 OK [http://localhost/categories] + + +Processing PagesController#about (for 127.0.0.1 at 2010-10-09 12:13:59) [GET] +Rendering template within layouts/photos +Rendering pages/about +Completed in 4ms (View: 3, DB: 0) | 200 OK [http://localhost/about] + + +Processing PagesController#index (for 127.0.0.1 at 2010-10-09 12:13:59) [GET] + Photo Load (0.6ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 1 +Rendering template within layouts/photos +Rendering pages/index +Completed in 12ms (View: 6, DB: 1) | 200 OK [http://localhost/] + + +Processing PagesController#about (for 127.0.0.1 at 2010-10-09 12:14:01) [GET] +Rendering template within layouts/photos +Rendering pages/about +Completed in 4ms (View: 3, DB: 0) | 200 OK [http://localhost/about] + + +Processing PagesController#index (for 127.0.0.1 at 2010-10-09 12:14:03) [GET] + Photo Load (0.8ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 1 +Rendering template within layouts/photos +Rendering pages/index +Completed in 15ms (View: 6, DB: 1) | 200 OK [http://localhost/] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 12:14:04) [GET] + Category Load (0.8ms) SELECT * FROM "categories"  + Photo Load (0.8ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 6 +Rendering template within layouts/photos +Rendering categories/index +Completed in 16ms (View: 5, DB: 2) | 200 OK [http://localhost/categories] + + +Processing PagesController#index (for 127.0.0.1 at 2010-10-09 12:14:16) [GET] + Photo Load (0.6ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 1 +Rendering template within layouts/photos +Rendering pages/index +Completed in 12ms (View: 6, DB: 1) | 200 OK [http://localhost/] + + +Processing PagesController#about (for 127.0.0.1 at 2010-10-09 12:14:20) [GET] +Rendering template within layouts/photos +Rendering pages/about +Completed in 4ms (View: 3, DB: 0) | 200 OK [http://localhost/about] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 12:14:22) [GET] + Category Load (0.9ms) SELECT * FROM "categories"  + Photo Load (1.1ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 6 +Rendering template within layouts/photos +Rendering categories/index +Completed in 16ms (View: 5, DB: 2) | 200 OK [http://localhost/categories] + + +Processing PagesController#index (for 127.0.0.1 at 2010-10-09 12:14:37) [GET] + Photo Load (0.6ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 1 +Rendering template within layouts/photos +Rendering pages/index +Completed in 13ms (View: 6, DB: 1) | 200 OK [http://localhost/] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 12:14:39) [GET] + Category Load (0.8ms) SELECT * FROM "categories"  + Photo Load (0.8ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 6 +Rendering template within layouts/photos +Rendering categories/index +Completed in 16ms (View: 5, DB: 2) | 200 OK [http://localhost/categories] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 12:14:40) [GET] + Parameters: {"category_id"=>"1"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1 + Photo Load (1.3ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 0 + SQL (0.2ms) SELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 )  +Rendering template within layouts/photos +Rendering photos/index +Completed in 76ms (View: 61, DB: 2) | 200 OK [http://localhost/categories/1/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 12:14:44) [GET] + Parameters: {"category_id"=>"1", "page"=>"2"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1 + Photo Load (0.6ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 11 +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 12:14:45) [GET] + Parameters: {"category_id"=>"1", "page"=>"1"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1 + Photo Load (1.3ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 0 + SQL (0.2ms) SELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 )  +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 12:14:46) [GET] + Category Load (0.8ms) SELECT * FROM "categories"  + Photo Load (0.9ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 6 +Rendering template within layouts/photos +Rendering categories/index +Completed in 16ms (View: 5, DB: 2) | 200 OK [http://localhost/categories] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 12:14:46) [GET] + Parameters: {"category_id"=>"2"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '2') LIMIT 1 + Photo Load (0.6ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 2 ) LIMIT 11 OFFSET 0 +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 12:14:48) [GET] + Category Load (0.8ms) SELECT * FROM "categories"  + Photo Load (0.8ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 6 +Rendering template within layouts/photos +Rendering categories/index +Completed in 16ms (View: 5, DB: 2) | 200 OK [http://localhost/categories] + + +Processing Admin::CategoriesController#update (for 127.0.0.1 at 2010-10-09 12:15:05) [PUT] + Parameters: {"category"=>{"name"=>"Landscapes", "sort"=>"", "base_colour"=>"#68af29", "photo_id"=>"", "description"=>""}, "commit"=>"Save Category", "action"=>"update", "_method"=>"put", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "id"=>"1", "controller"=>"admin/categories"} + TypusUser Load (0.6ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = 1)  + Category Update (12.7ms) UPDATE "categories" SET "updated_at" = '2010-10-09 16:15:05', "base_colour" = '#68af29' WHERE "id" = 1 +Redirected to http://localhost:3000/admin/categories/edit/1 +Completed in 38ms (DB: 14) | 302 Found [http://localhost/admin/categories/update/1] + + +Processing Admin::CategoriesController#edit (for 127.0.0.1 at 2010-10-09 12:15:05) [GET] + Parameters: {"action"=>"edit", "id"=>"1", "controller"=>"admin/categories"} + TypusUser Load (0.6ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Category Load (0.3ms) SELECT * FROM "categories" WHERE ("categories"."id" = 1)  +Rendering template within layouts/admin +Rendering admin/resources/edit +Rendered admin/helpers/_list (0.2ms) +Rendered admin/helpers/_search (0.8ms) +Rendered admin/templates/_string (1.8ms) +Rendered admin/templates/_text (0.7ms) +Rendered admin/templates/_string (0.9ms) +Rendered admin/templates/_string (0.8ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/resources/_form (8.6ms) + SQL (0.2ms) SELECT count(*) AS count_all FROM "photos"  + Photo Load (2.0ms) SELECT * FROM "photos"  + Photo Load (1.6ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 )  + CACHE (0.0ms) SELECT * FROM "categories" WHERE ("categories"."id" = 1)  + SQL (0.3ms) SELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 )  + CACHE (0.0ms) SELECT * FROM "categories" WHERE ("categories"."id" = 1)  + Photo Load (1.5ms) SELECT * 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 +Rendered admin/helpers/_table_header (0.1ms) +Rendered admin/helpers/_header (0.2ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/helpers/_flash_message (0.1ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 93ms (View: 64, DB: 6) | 200 OK [http://localhost/admin/categories/edit/1] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 12:15:07) [GET] + Category Load (1.0ms) SELECT * FROM "categories"  + Photo Load (0.9ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 6 +Rendering template within layouts/photos +Rendering categories/index +Completed in 17ms (View: 5, DB: 2) | 200 OK [http://localhost/categories] + + +Processing PagesController#about (for 127.0.0.1 at 2010-10-09 12:15:29) [GET] +Rendering template within layouts/photos +Rendering pages/about +Completed in 5ms (View: 4, DB: 0) | 200 OK [http://localhost/about] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 12:15:38) [GET] + Category Load (0.9ms) SELECT * FROM "categories"  + Photo Load (1.0ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 6 +Rendering template within layouts/photos +Rendering categories/index +Completed in 16ms (View: 5, DB: 2) | 200 OK [http://localhost/categories] + + +Processing PagesController#about (for 127.0.0.1 at 2010-10-09 12:15:40) [GET] +Rendering template within layouts/photos +Rendering pages/about +Completed in 4ms (View: 3, DB: 0) | 200 OK [http://localhost/about] + + +Processing PagesController#index (for 127.0.0.1 at 2010-10-09 12:15:44) [GET] + Photo Load (0.8ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 1 +Rendering template within layouts/photos +Rendering pages/index +Completed in 12ms (View: 6, DB: 1) | 200 OK [http://localhost/] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 12:15:48) [GET] + Category Load (0.8ms) SELECT * FROM "categories"  + Photo Load (0.8ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 6 +Rendering template within layouts/photos +Rendering categories/index +Completed in 17ms (View: 5, DB: 2) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 12:16:18) [GET] + Category Load (0.8ms) SELECT * FROM "categories"  + Photo Load (0.8ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 6 +Rendering template within layouts/photos +Rendering categories/index +Completed in 19ms (View: 8, DB: 2) | 200 OK [http://localhost/categories] + + +Processing PagesController#about (for 127.0.0.1 at 2010-10-09 12:16:30) [GET] +Rendering template within layouts/photos +Rendering pages/about +Completed in 5ms (View: 3, DB: 0) | 200 OK [http://localhost/about] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 12:16:52) [GET] + Category Load (0.8ms) SELECT * FROM "categories"  + Photo Load (1.0ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 6 +Rendering template within layouts/photos +Rendering categories/index +Completed in 75ms (View: 9, DB: 2) | 200 OK [http://localhost/categories] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 12:17:04) [GET] + Parameters: {"category_id"=>"1"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1 + Photo Load (1.5ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 0 + SQL (0.2ms) SELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 )  +Rendering template within layouts/photos +Rendering photos/index +Completed in 78ms (View: 62, DB: 2) | 200 OK [http://localhost/categories/1/photos] + + +Processing PagesController#about (for 127.0.0.1 at 2010-10-09 12:17:09) [GET] +Rendering template within layouts/photos +Rendering pages/about +Completed in 7ms (View: 6, DB: 0) | 200 OK [http://localhost/about] + + +Processing PagesController#index (for 127.0.0.1 at 2010-10-09 12:17:14) [GET] + Photo Load (0.8ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 1 +Rendering template within layouts/photos +Rendering pages/index +Completed in 75ms (View: 7, DB: 1) | 200 OK [http://localhost/] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 12:17:22) [GET] + Category Load (0.8ms) SELECT * FROM "categories"  + Photo Load (0.8ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 6 +Rendering template within layouts/photos +Rendering categories/index +Completed in 16ms (View: 5, DB: 2) | 200 OK [http://localhost/categories] + + +Processing PagesController#index (for 127.0.0.1 at 2010-10-09 12:17:30) [GET] + Photo Load (0.6ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 1 +Rendering template within layouts/photos +Rendering pages/index +Completed in 12ms (View: 6, DB: 1) | 200 OK [http://localhost/] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 12:17:32) [GET] + Category Load (0.8ms) SELECT * FROM "categories"  + Photo Load (0.8ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 6 +Rendering template within layouts/photos +Rendering categories/index +Completed in 16ms (View: 5, DB: 2) | 200 OK [http://localhost/categories] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 12:17:56) [GET] + Parameters: {"category_id"=>"1"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1 + Photo Load (1.3ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 0 + SQL (0.2ms) SELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 )  +Rendering template within layouts/photos +Rendering photos/index +Completed in 77ms (View: 61, DB: 2) | 200 OK [http://localhost/categories/1/photos] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 12:18:04) [GET] + Category Load (0.8ms) SELECT * FROM "categories"  + Photo Load (0.8ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 6 +Rendering template within layouts/photos +Rendering categories/index +Completed in 16ms (View: 5, DB: 2) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 12:18:26) [GET] + Category Load (0.8ms) SELECT * FROM "categories"  + Photo Load (0.8ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 6 +Rendering template within layouts/photos +Rendering categories/index +Completed in 20ms (View: 9, DB: 2) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 12:18:26) [GET] + Category Load (0.8ms) SELECT * FROM "categories"  + Photo Load (0.8ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 6 +Rendering template within layouts/photos +Rendering categories/index +Completed in 16ms (View: 5, DB: 2) | 200 OK [http://localhost/categories] + + +Processing PagesController#index (for 127.0.0.1 at 2010-10-09 12:19:05) [GET] + Photo Load (0.7ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 1 +Rendering template within layouts/photos +Rendering pages/index +Completed in 13ms (View: 6, DB: 1) | 200 OK [http://localhost/] + + +Processing PagesController#about (for 127.0.0.1 at 2010-10-09 12:19:06) [GET] +Rendering template within layouts/photos +Rendering pages/about +Completed in 4ms (View: 3, DB: 0) | 200 OK [http://localhost/about] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 12:19:08) [GET] + Category Load (0.8ms) SELECT * FROM "categories"  + Photo Load (0.8ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 6 +Rendering template within layouts/photos +Rendering categories/index +Completed in 16ms (View: 5, DB: 2) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 12:19:17) [GET] + Category Load (0.8ms) SELECT * FROM "categories"  + Photo Load (0.8ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 6 +Rendering template within layouts/photos +Rendering categories/index +Completed in 19ms (View: 8, DB: 2) | 200 OK [http://localhost/categories] + + +Processing PagesController#index (for 127.0.0.1 at 2010-10-09 12:30:09) [GET] + Photo Load (0.7ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 1 +Rendering template within layouts/photos +Rendering pages/index +Completed in 25ms (View: 19, DB: 1) | 200 OK [http://localhost/] + + +Processing PagesController#about (for 127.0.0.1 at 2010-10-09 12:30:11) [GET] +Rendering template within layouts/photos +Rendering pages/about +Completed in 4ms (View: 3, DB: 0) | 200 OK [http://localhost/about] + + +Processing PagesController#index (for 127.0.0.1 at 2010-10-09 12:30:19) [GET] + Photo Load (0.7ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 1 +Rendering template within layouts/photos +Rendering pages/index +Completed in 13ms (View: 6, DB: 1) | 200 OK [http://localhost/] + + +Processing PagesController#index (for 127.0.0.1 at 2010-10-09 12:30:22) [GET] + Photo Load (0.7ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 1 +Rendering template within layouts/photos +Rendering pages/index +Completed in 13ms (View: 6, DB: 1) | 200 OK [http://localhost/] + + +Processing PagesController#index (for 127.0.0.1 at 2010-10-09 12:30:24) [GET] + Photo Load (0.6ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 1 +Rendering template within layouts/photos +Rendering pages/index +Completed in 13ms (View: 6, DB: 1) | 200 OK [http://localhost/] + + +Processing PagesController#index (for 127.0.0.1 at 2010-10-09 12:30:25) [GET] + Photo Load (0.7ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 1 +Rendering template within layouts/photos +Rendering pages/index +Completed in 68ms (View: 6, DB: 1) | 200 OK [http://localhost/] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 12:30:38) [GET] + Category Load (0.8ms) SELECT * FROM "categories"  + Photo Load (0.9ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 6 +Rendering template within layouts/photos +Rendering categories/index +Completed in 59ms (View: 47, DB: 2) | 200 OK [http://localhost/categories] + + +Processing PagesController#about (for 127.0.0.1 at 2010-10-09 12:32:52) [GET] +Rendering template within layouts/photos +Rendering pages/about +Completed in 4ms (View: 3, DB: 0) | 200 OK [http://localhost/about] + + +Processing PagesController#index (for 127.0.0.1 at 2010-10-09 12:32:53) [GET] + Photo Load (0.6ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 1 +Rendering template within layouts/photos +Rendering pages/index +Completed in 12ms (View: 6, DB: 1) | 200 OK [http://localhost/] + + +Processing PagesController#about (for 127.0.0.1 at 2010-10-09 12:32:54) [GET] +Rendering template within layouts/photos +Rendering pages/about +Completed in 5ms (View: 3, DB: 0) | 200 OK [http://localhost/about] + + +Processing PagesController#index (for 127.0.0.1 at 2010-10-09 12:32:55) [GET] + Photo Load (0.6ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 1 +Rendering template within layouts/photos +Rendering pages/index +Completed in 13ms (View: 6, DB: 1) | 200 OK [http://localhost/] + + +Processing PagesController#about (for 127.0.0.1 at 2010-10-09 12:32:55) [GET] +Rendering template within layouts/photos +Rendering pages/about +Completed in 4ms (View: 3, DB: 0) | 200 OK [http://localhost/about] + + +Processing PagesController#index (for 127.0.0.1 at 2010-10-09 12:32:57) [GET] + Photo Load (0.6ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 1 +Rendering template within layouts/photos +Rendering pages/index +Completed in 12ms (View: 6, DB: 1) | 200 OK [http://localhost/] + + +Processing PagesController#about (for 127.0.0.1 at 2010-10-09 12:32:58) [GET] +Rendering template within layouts/photos +Rendering pages/about +Completed in 4ms (View: 2, DB: 0) | 200 OK [http://localhost/about] + + +Processing PagesController#index (for 192.168.42.102 at 2010-10-09 12:36:36) [GET] + Photo Load (0.6ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 1 +Rendering template within layouts/photos +Rendering pages/index +Completed in 14ms (View: 6, DB: 1) | 200 OK [http://junpei/] + + +Processing ApplicationController#index (for 192.168.42.102 at 2010-10-09 12:36:37) [GET] + +ActionController::RoutingError (No route matches "/images/sg_grid_sub.png" with {:method=>:get}): + + +Rendering rescues/layout (not_found) + + +Processing PagesController#index (for 192.168.42.102 at 2010-10-09 12:36:38) [GET] + Photo Load (0.6ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 1 +Rendering template within layouts/photos +Rendering pages/index +Completed in 12ms (View: 6, DB: 1) | 200 OK [http://junpei/] + + +Processing ApplicationController#index (for 192.168.42.102 at 2010-10-09 12:36:38) [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.102 at 2010-10-09 12:36:40) [GET] + Category Load (0.8ms) SELECT * FROM "categories"  + Photo Load (0.8ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 6 +Rendering template within layouts/photos +Rendering categories/index +Completed in 17ms (View: 5, DB: 2) | 200 OK [http://junpei/categories] + + +Processing ApplicationController#index (for 192.168.42.102 at 2010-10-09 12:36:42) [GET] + +ActionController::RoutingError (No route matches "/images/sg_grid_sub.png" with {:method=>:get}): + + +Rendering rescues/layout (not_found) + + +Processing PagesController#about (for 192.168.42.102 at 2010-10-09 12:37:04) [GET] +Rendering template within layouts/photos +Rendering pages/about +Completed in 4ms (View: 3, DB: 0) | 200 OK [http://junpei/about] + + +Processing ApplicationController#index (for 192.168.42.102 at 2010-10-09 12:37:04) [GET] + +ActionController::RoutingError (No route matches "/images/sg_grid_sub.png" with {:method=>:get}): + + +Rendering rescues/layout (not_found) + + +Processing PagesController#index (for 192.168.42.102 at 2010-10-09 12:37:14) [GET] + Photo Load (0.6ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 1 +Rendering template within layouts/photos +Rendering pages/index +Completed in 12ms (View: 6, DB: 1) | 200 OK [http://junpei/] + + +Processing ApplicationController#index (for 192.168.42.102 at 2010-10-09 12:37:14) [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.102 at 2010-10-09 12:37:17) [GET] + Category Load (0.8ms) SELECT * FROM "categories"  + Photo Load (0.8ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 6 +Rendering template within layouts/photos +Rendering categories/index +Completed in 16ms (View: 5, DB: 2) | 200 OK [http://junpei/categories] + + +Processing ApplicationController#index (for 192.168.42.102 at 2010-10-09 12:37:19) [GET] + +ActionController::RoutingError (No route matches "/images/sg_grid_sub.png" with {:method=>:get}): + + +Rendering rescues/layout (not_found) + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 12:38:18) [GET] + Category Load (0.8ms) SELECT * FROM "categories"  + Photo Load (0.8ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 6 +Rendering template within layouts/photos +Rendering categories/index +Completed in 20ms (View: 9, DB: 2) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 12:38:28) [GET] + Category Load (0.8ms) SELECT * FROM "categories"  + Photo Load (0.8ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 6 +Rendering template within layouts/photos +Rendering categories/index +Completed in 20ms (View: 8, DB: 2) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#index (for 192.168.42.102 at 2010-10-09 12:38:41) [GET] + Category Load (0.8ms) SELECT * FROM "categories"  + Photo Load (0.8ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 6 +Rendering template within layouts/photos +Rendering categories/index +Completed in 16ms (View: 5, DB: 2) | 200 OK [http://junpei/categories] + + +Processing ApplicationController#index (for 192.168.42.102 at 2010-10-09 12:38:42) [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-09 13:03:55) [GET] + Parameters: {"category_id"=>"1"} + Category Load (14.9ms) SELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1 + Photo Load (11.8ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 0 + SQL (0.2ms) SELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 )  +Rendering template within layouts/photos +Rendering photos/index +Completed in 109ms (View: 16, DB: 27) | 200 OK [http://junpei/categories/1/photos] + + +Processing ApplicationController#index (for 192.168.42.102 at 2010-10-09 13:03:56) [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-09 13:04:02) [GET] + Parameters: {"category_id"=>"1", "page"=>"2"} + Category Load (0.4ms) SELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1 + Photo Load (0.8ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 11 +Rendering template within layouts/photos +Rendering photos/index +Completed in 32ms (View: 13, DB: 1) | 200 OK [http://junpei/categories/1/photos?page=2] + + +Processing ApplicationController#index (for 192.168.42.102 at 2010-10-09 13:04:03) [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-09 13:04:07) [GET] + Parameters: {"category_id"=>"1", "page"=>"1"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1 + Photo Load (1.4ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 0 + SQL (0.2ms) SELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 )  +Rendering template within layouts/photos +Rendering photos/index +Completed in 30ms (View: 14, DB: 2) | 200 OK [http://junpei/categories/1/photos?page=1] + + +Processing ApplicationController#index (for 192.168.42.102 at 2010-10-09 13:04:08) [GET] + +ActionController::RoutingError (No route matches "/images/sg_grid_sub.png" with {:method=>:get}): + + +Rendering rescues/layout (not_found) + + +Processing PagesController#about (for 192.168.42.102 at 2010-10-09 13:04:10) [GET] +Rendering template within layouts/photos +Rendering pages/about +Completed in 5ms (View: 3, DB: 0) | 200 OK [http://junpei/about] + + +Processing ApplicationController#index (for 192.168.42.102 at 2010-10-09 13:04:10) [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.102 at 2010-10-09 13:04:12) [GET] + Category Load (1.3ms) SELECT * FROM "categories"  + Photo Load (1.3ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 6 +Rendering template within layouts/photos +Rendering categories/index +Completed in 24ms (View: 8, DB: 3) | 200 OK [http://junpei/categories] + + +Processing ApplicationController#index (for 192.168.42.102 at 2010-10-09 13:04:12) [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-09 13:04:14) [GET] + Parameters: {"category_id"=>"4"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '4') LIMIT 1 + Photo Load (1.2ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 4 ) LIMIT 11 OFFSET 0 +Rendering template within layouts/photos +Rendering photos/index +Completed in 88ms (View: 13, DB: 1) | 200 OK [http://junpei/categories/4/photos] + + +Processing ApplicationController#index (for 192.168.42.102 at 2010-10-09 13:04:15) [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.102 at 2010-10-09 13:05:06) [GET] + Category Load (0.9ms) SELECT * FROM "categories"  + Photo Load (1.4ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 6 +Rendering template within layouts/photos +Rendering categories/index +Completed in 22ms (View: 7, DB: 2) | 200 OK [http://junpei/categories] + + +Processing ApplicationController#index (for 192.168.42.102 at 2010-10-09 13:05: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-09 13:05:08) [GET] + Parameters: {"category_id"=>"3"} + Category Load (0.4ms) SELECT * FROM "categories" WHERE ("categories"."id" = '3') LIMIT 1 + Photo Load (0.7ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 3 ) LIMIT 11 OFFSET 0 +Rendering template within layouts/photos +Rendering photos/index +Completed in 27ms (View: 9, DB: 1) | 200 OK [http://junpei/categories/3/photos] + + +Processing ApplicationController#index (for 192.168.42.102 at 2010-10-09 13:05:09) [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.102 at 2010-10-09 13:05:12) [GET] + Category Load (0.8ms) SELECT * FROM "categories"  + Photo Load (0.8ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 6 +Rendering template within layouts/photos +Rendering categories/index +Completed in 17ms (View: 5, DB: 2) | 200 OK [http://junpei/categories] + + +Processing ApplicationController#index (for 192.168.42.102 at 2010-10-09 13:05:12) [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-09 13:05:14) [GET] + Parameters: {"category_id"=>"6"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '6') LIMIT 1 + Photo Load (0.5ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 6 ) LIMIT 11 OFFSET 0 +Rendering template within layouts/photos +Rendering photos/index +Completed in 20ms (View: 8, DB: 1) | 200 OK [http://junpei/categories/6/photos] + + +Processing ApplicationController#index (for 192.168.42.102 at 2010-10-09 13:05:14) [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.102 at 2010-10-09 13:06:15) [GET] + Category Load (0.9ms) SELECT * FROM "categories"  + Photo Load (1.5ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 6 +Rendering template within layouts/photos +Rendering categories/index +Completed in 24ms (View: 8, DB: 2) | 200 OK [http://junpei/categories] + + +Processing ApplicationController#index (for 192.168.42.102 at 2010-10-09 13:06:16) [GET] + +ActionController::RoutingError (No route matches "/images/sg_grid_sub.png" with {:method=>:get}): + + +Rendering rescues/layout (not_found) + + +Processing PagesController#about (for 192.168.42.102 at 2010-10-09 13:06:22) [GET] +Rendering template within layouts/photos +Rendering pages/about +Completed in 4ms (View: 3, DB: 0) | 200 OK [http://junpei/about] + + +Processing ApplicationController#index (for 192.168.42.102 at 2010-10-09 13:06:22) [GET] + +ActionController::RoutingError (No route matches "/images/sg_grid_sub.png" with {:method=>:get}): + + +Rendering rescues/layout (not_found) + + +Processing PagesController#index (for 192.168.42.102 at 2010-10-09 13:06:24) [GET] + Photo Load (0.7ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 1 +Rendering template within layouts/photos +Rendering pages/index +Completed in 12ms (View: 6, DB: 1) | 200 OK [http://junpei/] + + +Processing ApplicationController#index (for 192.168.42.102 at 2010-10-09 13:06:24) [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.102 at 2010-10-09 13:06:34) [GET] + Category Load (0.8ms) SELECT * FROM "categories"  + Photo Load (0.8ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 6 +Rendering template within layouts/photos +Rendering categories/index +Completed in 16ms (View: 5, DB: 2) | 200 OK [http://junpei/categories] + + +Processing ApplicationController#index (for 192.168.42.102 at 2010-10-09 13:06:34) [GET] + +ActionController::RoutingError (No route matches "/images/sg_grid_sub.png" with {:method=>:get}): + + +Rendering rescues/layout (not_found) + + +Processing PagesController#about (for 192.168.42.102 at 2010-10-09 13:07:04) [GET] +Rendering template within layouts/photos +Rendering pages/about +Completed in 4ms (View: 3, DB: 0) | 200 OK [http://junpei/about] + + +Processing ApplicationController#index (for 192.168.42.102 at 2010-10-09 13:07:05) [GET] + +ActionController::RoutingError (No route matches "/images/sg_grid_sub.png" with {:method=>:get}): + + +Rendering rescues/layout (not_found) + + +Processing PagesController#index (for 192.168.42.102 at 2010-10-09 15:16:24) [GET] + Photo Load (1.2ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 1 +Rendering template within layouts/photos +Rendering pages/index +Completed in 27ms (View: 6, DB: 1) | 200 OK [http://junpei/] + + +Processing ApplicationController#index (for 192.168.42.102 at 2010-10-09 15:16:25) [GET] + +ActionController::RoutingError (No route matches "/images/sg_grid_sub.png" with {:method=>:get}): + + +Rendering rescues/layout (not_found) + + +Processing PagesController#about (for 192.168.42.102 at 2010-10-09 15:16:29) [GET] +Rendering template within layouts/photos +Rendering pages/about +Completed in 4ms (View: 3, DB: 0) | 200 OK [http://junpei/about] + + +Processing ApplicationController#index (for 192.168.42.102 at 2010-10-09 15:16:29) [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.102 at 2010-10-09 15:16:32) [GET] + Category Load (5.9ms) SELECT * FROM "categories"  + Photo Load (0.9ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 6 +Rendering template within layouts/photos +Rendering categories/index +Completed in 33ms (View: 6, DB: 7) | 200 OK [http://junpei/categories] + + +Processing ApplicationController#index (for 192.168.42.102 at 2010-10-09 15:16:32) [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-09 15:16:36) [GET] + Parameters: {"category_id"=>"1"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1 + Photo Load (1.8ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 0 + SQL (0.2ms) SELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 )  +Rendering template within layouts/photos +Rendering photos/index +Completed in 29ms (View: 14, DB: 2) | 200 OK [http://junpei/categories/1/photos] + + +Processing ApplicationController#index (for 192.168.42.102 at 2010-10-09 15:16:37) [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-09 15:17:17) [GET] + Parameters: {"category_id"=>"1", "page"=>"2"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1 + Photo Load (0.6ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 11 +Rendering template within layouts/photos +Rendering photos/index +Completed in 23ms (View: 10, DB: 1) | 200 OK [http://junpei/categories/1/photos?page=2] + + +Processing ApplicationController#index (for 192.168.42.102 at 2010-10-09 15:17:18) [GET] + +ActionController::RoutingError (No route matches "/images/sg_grid_sub.png" with {:method=>:get}): + + +Rendering rescues/layout (not_found) + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-10 09:58:45) [GET] + Category Load (1.0ms) SELECT * FROM "categories"  + Photo Load (1.3ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 2 +Rendering template within layouts/photos +Rendering categories/index +Completed in 62ms (View: 16, DB: 2) | 200 OK [http://localhost/categories] + + +Processing PagesController#index (for 127.0.0.1 at 2010-10-10 09:58:51) [GET] + Photo Load (0.6ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 1 +Rendering template within layouts/photos +Rendering pages/index +Completed in 13ms (View: 6, DB: 1) | 200 OK [http://localhost/] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-10 09:58:52) [GET] + Category Load (0.8ms) SELECT * FROM "categories"  + Photo Load (0.6ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 2 +Rendering template within layouts/photos +Rendering categories/index +Completed in 22ms (View: 11, DB: 1) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-10 09:59:16) [GET] + +ArgumentError (:page parameter required): + /Library/Ruby/Gems/1.8/gems/will_paginate-2.3.15/lib/will_paginate/finder.rb:244:in `wp_parse_options' + /Library/Ruby/Gems/1.8/gems/will_paginate-2.3.15/lib/will_paginate/finder.rb:66:in `paginate' + app/controllers/categories_controller.rb:6:in `index' + +Rendered rescues/_trace (28.3ms) +Rendered rescues/_request_and_response (0.3ms) +Rendering rescues/layout (internal_server_error) + + +Processing ApplicationController#index (for 127.0.0.1 at 2010-10-10 09:59:26) [GET] + +SyntaxError (/Users/danbee/Sites/rails/photos/app/controllers/categories_controller.rb:6: syntax error, unexpected '=', expecting kEND +...ategory.paginate :all, :page = params[:page], :per_page => 4 + ^ +/Users/danbee/Sites/rails/photos/app/controllers/categories_controller.rb:6: syntax error, unexpected tASSOC, expecting tCOLON2 or '[' or '.' +... = params[:page], :per_page => 4 + ^): + + +Rendered rescues/_trace (26.0ms) +Rendered rescues/_request_and_response (0.3ms) +Rendering rescues/layout (internal_server_error) + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-10 09:59:31) [GET] + Category Load (0.7ms) SELECT * FROM "categories" LIMIT 4 OFFSET 0 + SQL (0.1ms) SELECT count(*) AS count_all FROM "categories"  + Photo Load (0.9ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 2 +Rendering template within layouts/photos +Rendering categories/index +Completed in 89ms (View: 11, DB: 2) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-10 09:59:48) [GET] + Category Load (0.7ms) SELECT * FROM "categories" LIMIT 4 OFFSET 0 + SQL (0.1ms) SELECT count(*) AS count_all FROM "categories"  + Photo Load (0.5ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 2 +Rendering template within layouts/photos +Rendering categories/index +Completed in 21ms (View: 8, DB: 1) | 200 OK [http://localhost/categories] + + +Processing PagesController#index (for 127.0.0.1 at 2010-10-10 09:59:56) [GET] + Photo Load (0.6ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 1 +Rendering template within layouts/photos +Rendering pages/index +Completed in 13ms (View: 6, DB: 1) | 200 OK [http://localhost/] + + +Processing PagesController#about (for 127.0.0.1 at 2010-10-10 10:00:07) [GET] +Rendering template within layouts/photos +Rendering pages/about +Completed in 4ms (View: 2, DB: 0) | 200 OK [http://localhost/about] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-10 10:00:09) [GET] + Category Load (0.8ms) SELECT * FROM "categories" LIMIT 4 OFFSET 0 + SQL (0.1ms) SELECT count(*) AS count_all FROM "categories"  + Photo Load (0.5ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 2 +Rendering template within layouts/photos +Rendering categories/index +Completed in 22ms (View: 8, DB: 1) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-10 10:00:26) [GET] + Parameters: {"page"=>"2"} + Category Load (0.7ms) SELECT * FROM "categories" LIMIT 4 OFFSET 4 + Photo Load (1.0ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 2 +Rendering template within layouts/photos +Rendering categories/index +Completed in 23ms (View: 10, DB: 2) | 200 OK [http://localhost/categories?page=2] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-10 10:02:50) [GET] + Parameters: {"page"=>"2"} + Category Load (0.7ms) SELECT * FROM "categories" LIMIT 4 OFFSET 4 + Photo Load (0.5ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 2 +Rendering template within layouts/photos +Rendering categories/index +Completed in 23ms (View: 13, DB: 1) | 200 OK [http://localhost/categories?page=2] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-10 10:02:51) [GET] + Parameters: {"page"=>"1"} + Category Load (0.7ms) SELECT * FROM "categories" LIMIT 4 OFFSET 0 + SQL (0.1ms) SELECT count(*) AS count_all FROM "categories"  + Photo Load (0.5ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 2 +Rendering template within layouts/photos +Rendering categories/index +Completed in 21ms (View: 9, DB: 1) | 200 OK [http://localhost/categories?page=1] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-10 10:02:52) [GET] + Parameters: {"page"=>"2"} + Category Load (0.6ms) SELECT * FROM "categories" LIMIT 4 OFFSET 4 + Photo Load (0.5ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 2 +Rendering template within layouts/photos +Rendering categories/index +Completed in 19ms (View: 9, DB: 1) | 200 OK [http://localhost/categories?page=2] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-10 10:02:54) [GET] + Parameters: {"page"=>"1"} + Category Load (0.8ms) SELECT * FROM "categories" LIMIT 4 OFFSET 0 + SQL (0.1ms) SELECT count(*) AS count_all FROM "categories"  + Photo Load (0.5ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 2 +Rendering template within layouts/photos +Rendering categories/index +Completed in 20ms (View: 9, DB: 1) | 200 OK [http://localhost/categories?page=1] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-10 10:03:23) [GET] + Parameters: {"page"=>"2"} + Category Load (0.6ms) SELECT * FROM "categories" LIMIT 4 OFFSET 4 + Photo Load (0.5ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 2 +Rendering template within layouts/photos +Rendering categories/index +Completed in 21ms (View: 10, DB: 1) | 200 OK [http://localhost/categories?page=2] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-10 10:03:24) [GET] + Parameters: {"page"=>"1"} + Category Load (0.7ms) SELECT * FROM "categories" LIMIT 4 OFFSET 0 + SQL (0.1ms) SELECT count(*) AS count_all FROM "categories"  + Photo Load (0.5ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 2 +Rendering template within layouts/photos +Rendering categories/index +Completed in 20ms (View: 8, DB: 1) | 200 OK [http://localhost/categories?page=1] + + +Processing PagesController#index (for 127.0.0.1 at 2010-10-10 10:03:26) [GET] + Photo Load (0.6ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 1 +Rendering template within layouts/photos +Rendering pages/index +Completed in 13ms (View: 6, DB: 1) | 200 OK [http://localhost/] + + +Processing PagesController#about (for 127.0.0.1 at 2010-10-10 10:03:27) [GET] +Rendering template within layouts/photos +Rendering pages/about +Completed in 4ms (View: 3, DB: 0) | 200 OK [http://localhost/about] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-10 10:03:29) [GET] + Category Load (0.7ms) SELECT * FROM "categories" LIMIT 4 OFFSET 0 + SQL (0.1ms) SELECT count(*) AS count_all FROM "categories"  + Photo Load (0.5ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 2 +Rendering template within layouts/photos +Rendering categories/index +Completed in 21ms (View: 8, DB: 1) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-10 10:03:33) [GET] + Parameters: {"page"=>"2"} + Category Load (0.7ms) SELECT * FROM "categories" LIMIT 4 OFFSET 4 + Photo Load (0.5ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 2 +Rendering template within layouts/photos +Rendering categories/index +Completed in 19ms (View: 9, DB: 1) | 200 OK [http://localhost/categories?page=2] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-10 10:03:34) [GET] + Parameters: {"page"=>"1"} + Category Load (0.7ms) SELECT * FROM "categories" LIMIT 4 OFFSET 0 + SQL (0.1ms) SELECT count(*) AS count_all FROM "categories"  + Photo Load (0.5ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 2 +Rendering template within layouts/photos +Rendering categories/index +Completed in 79ms (View: 66, DB: 1) | 200 OK [http://localhost/categories?page=1] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-10 10:04:07) [GET] + Parameters: {"page"=>"1"} + Category Load (0.7ms) SELECT * FROM "categories" LIMIT 4 OFFSET 0 + SQL (0.2ms) SELECT count(*) AS count_all FROM "categories"  + Photo Load (0.5ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 2 +Rendering template within layouts/photos +Rendering categories/index +Completed in 22ms (View: 9, DB: 1) | 200 OK [http://localhost/categories?page=1] + + +Processing PagesController#index (for 127.0.0.1 at 2010-10-10 10:04:11) [GET] + Photo Load (0.7ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 1 +Rendering template within layouts/photos +Rendering pages/index +Completed in 13ms (View: 6, DB: 1) | 200 OK [http://localhost/] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-10 10:04:12) [GET] + Category Load (0.7ms) SELECT * FROM "categories" LIMIT 4 OFFSET 0 + SQL (0.1ms) SELECT count(*) AS count_all FROM "categories"  + Photo Load (0.5ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 2 +Rendering template within layouts/photos +Rendering categories/index +Completed in 20ms (View: 8, DB: 1) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-10 10:04:24) [GET] + Category Load (0.7ms) SELECT * FROM "categories" LIMIT 4 OFFSET 0 + SQL (0.1ms) SELECT count(*) AS count_all FROM "categories"  + Photo Load (0.5ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 2 +Rendering template within layouts/photos +Rendering categories/index +Completed in 21ms (View: 8, DB: 1) | 200 OK [http://localhost/categories] + + +Processing PagesController#index (for 127.0.0.1 at 2010-10-10 10:04:27) [GET] + Photo Load (0.6ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 1 +Rendering template within layouts/photos +Rendering pages/index +Completed in 13ms (View: 6, DB: 1) | 200 OK [http://localhost/] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-10 10:04:38) [GET] + Category Load (0.8ms) SELECT * FROM "categories" LIMIT 4 OFFSET 0 + SQL (0.1ms) SELECT count(*) AS count_all FROM "categories"  + Photo Load (0.9ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 2 +Rendering template within layouts/photos +Rendering categories/index +Completed in 24ms (View: 9, DB: 2) | 200 OK [http://localhost/categories] + + +Processing PagesController#about (for 127.0.0.1 at 2010-10-10 10:05:07) [GET] +Rendering template within layouts/photos +Rendering pages/about +Completed in 4ms (View: 3, DB: 0) | 200 OK [http://localhost/about] + + +Processing PagesController#about (for 127.0.0.1 at 2010-10-10 10:05:09) [GET] +Rendering template within layouts/photos +Rendering pages/about +Completed in 4ms (View: 3, DB: 0) | 200 OK [http://localhost/about] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-10 10:05:11) [GET] + Category Load (0.7ms) SELECT * FROM "categories" LIMIT 4 OFFSET 0 + SQL (0.2ms) SELECT count(*) AS count_all FROM "categories"  + Photo Load (0.5ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 2 +Rendering template within layouts/photos +Rendering categories/index +Completed in 21ms (View: 8, DB: 1) | 200 OK [http://localhost/categories] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-10 10:05:14) [GET] + Parameters: {"category_id"=>"1"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1 + Photo Load (8.6ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 0 + SQL (0.2ms) SELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 )  +Rendering template within layouts/photos +Rendering photos/index +Completed in 36ms (View: 14, DB: 9) | 200 OK [http://localhost/categories/1/photos] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-10 10:05:17) [GET] + Category Load (0.7ms) SELECT * FROM "categories" LIMIT 4 OFFSET 0 + SQL (0.1ms) SELECT count(*) AS count_all FROM "categories"  + Photo Load (0.5ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 2 +Rendering template within layouts/photos +Rendering categories/index +Completed in 21ms (View: 9, DB: 1) | 200 OK [http://localhost/categories] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-10 10:05:18) [GET] + Parameters: {"category_id"=>"2"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '2') LIMIT 1 + Photo Load (0.6ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 2 ) LIMIT 11 OFFSET 0 +Rendering template within layouts/photos +Rendering photos/index +Completed in 21ms (View: 9, DB: 1) | 200 OK [http://localhost/categories/2/photos] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-10 10:05:20) [GET] + Category Load (0.8ms) SELECT * FROM "categories" LIMIT 4 OFFSET 0 + SQL (0.1ms) SELECT count(*) AS count_all FROM "categories"  + Photo Load (0.5ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 2 +Rendering template within layouts/photos +Rendering categories/index +Completed in 76ms (View: 9, DB: 1) | 200 OK [http://localhost/categories] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-10 10:05:22) [GET] + Parameters: {"category_id"=>"3"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '3') LIMIT 1 + Photo Load (0.5ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 3 ) LIMIT 11 OFFSET 0 +Rendering template within layouts/photos +Rendering photos/index +Completed in 21ms (View: 8, DB: 1) | 200 OK [http://localhost/categories/3/photos] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-10 10:05:26) [GET] + Category Load (0.7ms) SELECT * FROM "categories" LIMIT 4 OFFSET 0 + SQL (0.1ms) SELECT count(*) AS count_all FROM "categories"  + Photo Load (0.5ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 2 +Rendering template within layouts/photos +Rendering categories/index +Completed in 20ms (View: 9, DB: 1) | 200 OK [http://localhost/categories] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-10 10:05:27) [GET] + Parameters: {"category_id"=>"3"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '3') LIMIT 1 + Photo Load (0.5ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 3 ) LIMIT 11 OFFSET 0 +Rendering template within layouts/photos +Rendering photos/index +Completed in 21ms (View: 8, DB: 1) | 200 OK [http://localhost/categories/3/photos] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-10 10:05:30) [GET] + Parameters: {"page"=>"2"} + Category Load (0.7ms) SELECT * FROM "categories" LIMIT 4 OFFSET 4 + Photo Load (0.5ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 2 +Rendering template within layouts/photos +Rendering categories/index +Completed in 19ms (View: 9, DB: 1) | 200 OK [http://localhost/categories?page=2] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-10 10:05:32) [GET] + Parameters: {"category_id"=>"5"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '5') LIMIT 1 + Photo Load (0.3ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 ) LIMIT 11 OFFSET 0 +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-10 10:05:37) [GET] + Category Load (0.7ms) SELECT * FROM "categories" LIMIT 4 OFFSET 0 + SQL (0.2ms) SELECT count(*) AS count_all FROM "categories"  + Photo Load (0.5ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 2 +Rendering template within layouts/photos +Rendering categories/index +Completed in 79ms (View: 9, DB: 1) | 200 OK [http://localhost/categories] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-10 10:06:08) [GET] + Parameters: {"category_id"=>"1"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1 + Photo Load (1.4ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 0 + SQL (0.2ms) SELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 )  +Rendering template within layouts/photos +Rendering photos/index +Completed in 30ms (View: 13, DB: 2) | 200 OK [http://localhost/categories/1/photos] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-10 10:07:20) [GET] + Category Load (0.8ms) SELECT * FROM "categories" LIMIT 4 OFFSET 0 + SQL (0.1ms) SELECT count(*) AS count_all FROM "categories"  + Photo Load (0.5ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 2 +Rendering template within layouts/photos +Rendering categories/index +Completed in 21ms (View: 8, DB: 1) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-10 10:08:26) [GET] + Category Load (0.7ms) SELECT * FROM "categories" LIMIT 4 OFFSET 0 + SQL (0.3ms) SELECT count(*) AS count_all FROM "categories"  + Photo Load (0.5ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 2 +Rendering template within layouts/photos +Rendering categories/index +Completed in 21ms (View: 8, DB: 1) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-10 10:08:33) [GET] + Category Load (0.8ms) SELECT * FROM "categories" LIMIT 4 OFFSET 0 + SQL (0.1ms) SELECT count(*) AS count_all FROM "categories"  + Photo Load (0.5ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 2 +Rendering template within layouts/photos +Rendering categories/index +Completed in 77ms (View: 64, DB: 1) | 200 OK [http://localhost/categories] + + +Processing PagesController#index (for 127.0.0.1 at 2010-10-10 10:08:42) [GET] + Photo Load (0.8ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 1 +Rendering template within layouts/photos +Rendering pages/index +Completed in 14ms (View: 7, DB: 1) | 200 OK [http://localhost/] + + +Processing PagesController#index (for 127.0.0.1 at 2010-10-10 10:09:00) [GET] + Photo Load (0.6ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 1 +Rendering template within layouts/photos +Rendering pages/index +Completed in 13ms (View: 6, DB: 1) | 200 OK [http://localhost/] + + +Processing PagesController#index (for 127.0.0.1 at 2010-10-10 10:09:06) [GET] + Photo Load (0.6ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 1 +Rendering template within layouts/photos +Rendering pages/index +Completed in 12ms (View: 6, DB: 1) | 200 OK [http://localhost/] + + +Processing PagesController#index (for 127.0.0.1 at 2010-10-10 10:09:12) [GET] + Photo Load (0.7ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 1 +Rendering template within layouts/photos +Rendering pages/index +Completed in 13ms (View: 6, DB: 1) | 200 OK [http://localhost/] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-10 10:09:34) [GET] + Category Load (1.1ms) SELECT * FROM "categories" LIMIT 4 OFFSET 0 + SQL (0.1ms) SELECT count(*) AS count_all FROM "categories"  + Photo Load (0.6ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 2 +Rendering template within layouts/photos +Rendering categories/index +Completed in 24ms (View: 9, DB: 2) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-10 10:11:00) [GET] + Category Load (0.8ms) SELECT * FROM "categories" LIMIT 4 OFFSET 0 + SQL (0.1ms) SELECT count(*) AS count_all FROM "categories"  + Photo Load (0.6ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 2 +Rendering template within layouts/photos +Rendering categories/index +Completed in 25ms (View: 9, DB: 2) | 200 OK [http://localhost/categories] + + +Processing PagesController#index (for 127.0.0.1 at 2010-10-10 10:13:20) [GET] + Photo Load (0.6ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 1 +Rendering template within layouts/photos +Rendering pages/index +Completed in 13ms (View: 6, DB: 1) | 200 OK [http://localhost/] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-10 10:13:24) [GET] + Category Load (0.7ms) SELECT * FROM "categories" LIMIT 4 OFFSET 0 + SQL (0.2ms) SELECT count(*) AS count_all FROM "categories"  + Photo Load (0.5ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 2 +Rendering template within layouts/photos +Rendering categories/index +Completed in 23ms (View: 10, DB: 1) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-10 10:13:40) [GET] + Category Load (0.7ms) SELECT * FROM "categories" LIMIT 4 OFFSET 0 + SQL (0.1ms) SELECT count(*) AS count_all FROM "categories"  + Photo Load (0.6ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 2 +Rendering template within layouts/photos +Rendering categories/index +Completed in 21ms (View: 9, DB: 1) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-10 10:13:53) [GET] + Category Load (0.7ms) SELECT * FROM "categories" LIMIT 4 OFFSET 0 + SQL (0.1ms) SELECT count(*) AS count_all FROM "categories"  + Photo Load (0.5ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 2 +Rendering template within layouts/photos +Rendering categories/index +Completed in 81ms (View: 11, DB: 1) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-10 10:14:01) [GET] + Category Load (0.7ms) SELECT * FROM "categories" LIMIT 4 OFFSET 0 + SQL (0.1ms) SELECT count(*) AS count_all FROM "categories"  + Photo Load (0.5ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 2 +Rendering template within layouts/photos +Rendering categories/index +Completed in 21ms (View: 9, DB: 1) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-10 10:14:07) [GET] + Category Load (0.7ms) SELECT * FROM "categories" LIMIT 4 OFFSET 0 + SQL (0.1ms) SELECT count(*) AS count_all FROM "categories"  + Photo Load (0.5ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 2 +Rendering template within layouts/photos +Rendering categories/index +Completed in 21ms (View: 9, DB: 1) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-10 10:14:14) [GET] + Category Load (0.7ms) SELECT * FROM "categories" LIMIT 4 OFFSET 0 + SQL (0.1ms) SELECT count(*) AS count_all FROM "categories"  + Photo Load (0.5ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 2 +Rendering template within layouts/photos +Rendering categories/index +Completed in 22ms (View: 9, DB: 1) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-10 10:14:18) [GET] + Category Load (0.8ms) SELECT * FROM "categories" LIMIT 4 OFFSET 0 + SQL (0.1ms) SELECT count(*) AS count_all FROM "categories"  + Photo Load (0.5ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 2 +Rendering template within layouts/photos +Rendering categories/index +Completed in 21ms (View: 9, DB: 1) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-10 10:14:21) [GET] + Category Load (0.7ms) SELECT * FROM "categories" LIMIT 4 OFFSET 0 + SQL (0.1ms) SELECT count(*) AS count_all FROM "categories"  + Photo Load (0.5ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 2 +Rendering template within layouts/photos +Rendering categories/index +Completed in 20ms (View: 8, DB: 1) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-10 10:14:39) [GET] + Category Load (0.7ms) SELECT * FROM "categories" LIMIT 4 OFFSET 0 + SQL (0.1ms) SELECT count(*) AS count_all FROM "categories"  + Photo Load (0.5ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 2 +Rendering template within layouts/photos +Rendering categories/index +Completed in 25ms (View: 13, DB: 1) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-10 10:14:55) [GET] + Category Load (0.8ms) SELECT * FROM "categories" LIMIT 4 OFFSET 0 + SQL (0.1ms) SELECT count(*) AS count_all FROM "categories"  + Photo Load (0.5ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 2 +Rendering template within layouts/photos +Rendering categories/index +Completed in 21ms (View: 8, DB: 1) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-10 10:15:10) [GET] + Category Load (0.8ms) SELECT * FROM "categories" LIMIT 4 OFFSET 0 + SQL (0.1ms) SELECT count(*) AS count_all FROM "categories"  + Photo Load (0.5ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 2 +Rendering template within layouts/photos +Rendering categories/index +Completed in 21ms (View: 9, DB: 1) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-10 10:15:13) [GET] + Parameters: {"page"=>"2"} + Category Load (0.7ms) SELECT * FROM "categories" LIMIT 4 OFFSET 4 + Photo Load (0.7ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 2 +Rendering template within layouts/photos +Rendering categories/index +Completed in 20ms (View: 10, DB: 1) | 200 OK [http://localhost/categories?page=2] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-10 10:15:14) [GET] + Parameters: {"page"=>"1"} + Category Load (0.7ms) SELECT * FROM "categories" LIMIT 4 OFFSET 0 + SQL (0.1ms) SELECT count(*) AS count_all FROM "categories"  + Photo Load (0.5ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 2 +Rendering template within layouts/photos +Rendering categories/index +Completed in 20ms (View: 8, DB: 1) | 200 OK [http://localhost/categories?page=1] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-10 10:15:16) [GET] + Parameters: {"page"=>"2"} + Category Load (0.6ms) SELECT * FROM "categories" LIMIT 4 OFFSET 4 + Photo Load (0.5ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 2 +Rendering template within layouts/photos +Rendering categories/index +Completed in 19ms (View: 9, DB: 1) | 200 OK [http://localhost/categories?page=2] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-10 10:15:17) [GET] + Parameters: {"page"=>"1"} + Category Load (0.7ms) SELECT * FROM "categories" LIMIT 4 OFFSET 0 + SQL (0.2ms) SELECT count(*) AS count_all FROM "categories"  + Photo Load (0.5ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 2 +Rendering template within layouts/photos +Rendering categories/index +Completed in 20ms (View: 8, DB: 1) | 200 OK [http://localhost/categories?page=1] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-10 10:15:18) [GET] + Parameters: {"page"=>"2"} + Category Load (0.6ms) SELECT * FROM "categories" LIMIT 4 OFFSET 4 + Photo Load (0.5ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 2 +Rendering template within layouts/photos +Rendering categories/index +Completed in 20ms (View: 9, DB: 1) | 200 OK [http://localhost/categories?page=2] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-10 10:15:19) [GET] + Parameters: {"page"=>"1"} + Category Load (0.7ms) SELECT * FROM "categories" LIMIT 4 OFFSET 0 + SQL (0.1ms) SELECT count(*) AS count_all FROM "categories"  + Photo Load (0.5ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 2 +Rendering template within layouts/photos +Rendering categories/index +Completed in 20ms (View: 8, DB: 1) | 200 OK [http://localhost/categories?page=1] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-10 10:15:20) [GET] + Parameters: {"category_id"=>"1"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1 + Photo Load (1.8ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 0 + SQL (0.2ms) SELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 )  +Rendering template within layouts/photos +Rendering photos/index +Completed in 32ms (View: 15, DB: 2) | 200 OK [http://localhost/categories/1/photos] + + +Processing PagesController#index (for 127.0.0.1 at 2010-10-10 10:15:25) [GET] + Photo Load (0.7ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 1 +Rendering template within layouts/photos +Rendering pages/index +Completed in 12ms (View: 6, DB: 1) | 200 OK [http://localhost/] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-10 10:15:26) [GET] + Category Load (0.7ms) SELECT * FROM "categories" LIMIT 4 OFFSET 0 + SQL (0.1ms) SELECT count(*) AS count_all FROM "categories"  + Photo Load (0.5ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 2 +Rendering template within layouts/photos +Rendering categories/index +Completed in 75ms (View: 64, DB: 1) | 200 OK [http://localhost/categories] + + +Processing PagesController#index (for 127.0.0.1 at 2010-10-10 10:15:30) [GET] + Photo Load (0.6ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 1 +Rendering template within layouts/photos +Rendering pages/index +Completed in 13ms (View: 6, DB: 1) | 200 OK [http://localhost/] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-10 10:15:31) [GET] + Category Load (0.7ms) SELECT * FROM "categories" LIMIT 4 OFFSET 0 + SQL (0.1ms) SELECT count(*) AS count_all FROM "categories"  + Photo Load (0.5ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 2 +Rendering template within layouts/photos +Rendering categories/index +Completed in 20ms (View: 9, DB: 1) | 200 OK [http://localhost/categories] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-10 10:15:34) [GET] + Parameters: {"category_id"=>"1"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1 + Photo Load (1.3ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 0 + SQL (0.2ms) SELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 )  +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-10 10:15:36) [GET] + Category Load (0.7ms) SELECT * FROM "categories" LIMIT 4 OFFSET 0 + SQL (0.1ms) SELECT count(*) AS count_all FROM "categories"  + Photo Load (0.6ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 2 +Rendering template within layouts/photos +Rendering categories/index +Completed in 22ms (View: 9, DB: 1) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-10 10:15:42) [GET] + Category Load (0.7ms) SELECT * FROM "categories" LIMIT 4 OFFSET 0 + SQL (0.1ms) SELECT count(*) AS count_all FROM "categories"  + Photo Load (0.6ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 2 +Rendering template within layouts/photos +Rendering categories/index +Completed in 21ms (View: 8, DB: 1) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-10 10:15:54) [GET] + Category Load (0.7ms) SELECT * FROM "categories" LIMIT 4 OFFSET 0 + SQL (0.1ms) SELECT count(*) AS count_all FROM "categories"  + Photo Load (0.5ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 2 +Rendering template within layouts/photos +Rendering categories/index +Completed in 19ms (View: 8, DB: 1) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-10 10:16:09) [GET] + Parameters: {"page"=>"2"} + Category Load (0.6ms) SELECT * FROM "categories" LIMIT 4 OFFSET 4 + Photo Load (0.5ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 2 +Rendering template within layouts/photos +Rendering categories/index +Completed in 20ms (View: 9, DB: 1) | 200 OK [http://localhost/categories?page=2] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-10 10:16:10) [GET] + Parameters: {"page"=>"1"} + Category Load (0.7ms) SELECT * FROM "categories" LIMIT 4 OFFSET 0 + SQL (0.1ms) SELECT count(*) AS count_all FROM "categories"  + Photo Load (0.5ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 2 +Rendering template within layouts/photos +Rendering categories/index +Completed in 20ms (View: 8, DB: 1) | 200 OK [http://localhost/categories?page=1] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-10 10:16:11) [GET] + Parameters: {"page"=>"2"} + Category Load (0.6ms) SELECT * FROM "categories" LIMIT 4 OFFSET 4 + Photo Load (0.5ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 2 +Rendering template within layouts/photos +Rendering categories/index +Completed in 20ms (View: 9, DB: 1) | 200 OK [http://localhost/categories?page=2] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-10 10:16:11) [GET] + Parameters: {"page"=>"1"} + Category Load (0.7ms) SELECT * FROM "categories" LIMIT 4 OFFSET 0 + SQL (0.1ms) SELECT count(*) AS count_all FROM "categories"  + Photo Load (0.5ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 2 +Rendering template within layouts/photos +Rendering categories/index +Completed in 21ms (View: 9, DB: 1) | 200 OK [http://localhost/categories?page=1] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-10 10:16:23) [GET] + Parameters: {"page"=>"1"} + Category Load (0.7ms) SELECT * FROM "categories" LIMIT 4 OFFSET 0 + SQL (0.1ms) SELECT count(*) AS count_all FROM "categories"  + Photo Load (0.5ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 2 +Rendering template within layouts/photos +Rendering categories/index +Completed in 21ms (View: 9, DB: 1) | 200 OK [http://localhost/categories?page=1] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-10 10:16:23) [GET] + Parameters: {"category_id"=>"1"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1 + Photo Load (1.3ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 0 + SQL (0.2ms) SELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 )  +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-10 10:16:24) [GET] + Parameters: {"category_id"=>"1", "page"=>"2"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1 + Photo Load (0.5ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 11 +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-10 10:16:26) [GET] + Parameters: {"category_id"=>"1", "page"=>"1"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1 + Photo Load (1.5ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 0 + SQL (0.2ms) SELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 )  +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-10 10:16:26) [GET] + Parameters: {"category_id"=>"1", "page"=>"2"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1 + Photo Load (0.6ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 11 +Rendering template within layouts/photos +Rendering photos/index +Completed in 79ms (View: 67, DB: 1) | 200 OK [http://localhost/categories/1/photos?page=2] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-10 10:16:27) [GET] + Parameters: {"category_id"=>"1", "page"=>"1"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1 + Photo Load (1.3ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 0 + SQL (0.2ms) SELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 )  +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 CategoriesController#index (for 127.0.0.1 at 2010-10-10 10:16:27) [GET] + Category Load (0.7ms) SELECT * FROM "categories" LIMIT 4 OFFSET 0 + SQL (0.2ms) SELECT count(*) AS count_all FROM "categories"  + Photo Load (0.5ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 2 +Rendering template within layouts/photos +Rendering categories/index +Completed in 20ms (View: 8, DB: 1) | 200 OK [http://localhost/categories] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-10 10:16:30) [GET] + Parameters: {"category_id"=>"1"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1 + Photo Load (1.3ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 0 + SQL (0.2ms) SELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 )  +Rendering template within layouts/photos +Rendering photos/index +Completed in 88ms (View: 73, DB: 2) | 200 OK [http://localhost/categories/1/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-10 10:16:46) [GET] + Parameters: {"category_id"=>"1"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1 + Photo Load (1.3ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 0 + SQL (0.2ms) SELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 )  +Rendering template within layouts/photos +Rendering photos/index +Completed in 40ms (View: 23, DB: 2) | 200 OK [http://localhost/categories/1/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-10 10:16:53) [GET] + Parameters: {"category_id"=>"1"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1 + Photo Load (1.3ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 0 + SQL (0.2ms) SELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 )  +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-10 10:17:00) [GET] + Category Load (0.7ms) SELECT * FROM "categories" LIMIT 4 OFFSET 0 + SQL (0.1ms) SELECT count(*) AS count_all FROM "categories"  + Photo Load (0.5ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 2 +Rendering template within layouts/photos +Rendering categories/index +Completed in 21ms (View: 9, DB: 1) | 200 OK [http://localhost/categories] + + +Processing PagesController#index (for 127.0.0.1 at 2010-10-10 10:17:01) [GET] + Photo Load (0.6ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 1 +Rendering template within layouts/photos +Rendering pages/index +Completed in 13ms (View: 6, DB: 1) | 200 OK [http://localhost/] + + +Processing PagesController#about (for 127.0.0.1 at 2010-10-10 10:17:02) [GET] +Rendering template within layouts/photos +Rendering pages/about +Completed in 4ms (View: 3, DB: 0) | 200 OK [http://localhost/about] + + +Processing PagesController#index (for 127.0.0.1 at 2010-10-10 10:17:04) [GET] + Photo Load (0.7ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 1 +Rendering template within layouts/photos +Rendering pages/index +Completed in 68ms (View: 61, DB: 1) | 200 OK [http://localhost/] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-10 10:17:04) [GET] + Category Load (0.7ms) SELECT * FROM "categories" LIMIT 4 OFFSET 0 + SQL (0.1ms) SELECT count(*) AS count_all FROM "categories"  + Photo Load (0.5ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 2 +Rendering template within layouts/photos +Rendering categories/index +Completed in 20ms (View: 8, DB: 1) | 200 OK [http://localhost/categories] + + +Processing PagesController#index (for 127.0.0.1 at 2010-10-10 10:17:08) [GET] + Photo Load (0.7ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 1 +Rendering template within layouts/photos +Rendering pages/index +Completed in 13ms (View: 6, DB: 1) | 200 OK [http://localhost/] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-10 10:26:08) [GET] + Category Load (1.1ms) SELECT * FROM "categories" LIMIT 4 OFFSET 0 + SQL (0.1ms) SELECT count(*) AS count_all FROM "categories"  + Photo Load (1.2ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 2 +Rendering template within layouts/photos +Rendering categories/index +Completed in 35ms (View: 10, DB: 2) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-10 10:26:12) [GET] + Parameters: {"page"=>"2"} + Category Load (0.6ms) SELECT * FROM "categories" LIMIT 4 OFFSET 4 + Photo Load (0.5ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 2 +Rendering template within layouts/photos +Rendering categories/index +Completed in 20ms (View: 9, DB: 1) | 200 OK [http://localhost/categories?page=2] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-10 10:26:14) [GET] + Parameters: {"page"=>"1"} + Category Load (0.7ms) SELECT * FROM "categories" LIMIT 4 OFFSET 0 + SQL (0.1ms) SELECT count(*) AS count_all FROM "categories"  + Photo Load (0.6ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 2 +Rendering template within layouts/photos +Rendering categories/index +Completed in 20ms (View: 8, DB: 1) | 200 OK [http://localhost/categories?page=1] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-10 10:26:16) [GET] + Parameters: {"category_id"=>"1"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1 + Photo Load (8.9ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 0 + SQL (0.2ms) SELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 )  +Rendering template within layouts/photos +Rendering photos/index +Completed in 94ms (View: 70, DB: 9) | 200 OK [http://localhost/categories/1/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-10 10:26:17) [GET] + Parameters: {"category_id"=>"1", "page"=>"2"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1 + Photo Load (0.6ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 11 +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-10 10:26:18) [GET] + Parameters: {"category_id"=>"1", "page"=>"1"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1 + Photo Load (1.3ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 0 + SQL (0.2ms) SELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 )  +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-10 10:26:19) [GET] + Category Load (0.7ms) SELECT * FROM "categories" LIMIT 4 OFFSET 0 + SQL (0.1ms) SELECT count(*) AS count_all FROM "categories"  + Photo Load (0.5ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 2 +Rendering template within layouts/photos +Rendering categories/index +Completed in 20ms (View: 8, DB: 1) | 200 OK [http://localhost/categories] + + +Processing PagesController#index (for 127.0.0.1 at 2010-10-10 10:26:27) [GET] + Photo Load (0.6ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 1 +Rendering template within layouts/photos +Rendering pages/index +Completed in 12ms (View: 6, DB: 1) | 200 OK [http://localhost/] + + +Processing PagesController#about (for 127.0.0.1 at 2010-10-10 10:30:57) [GET] +Rendering template within layouts/photos +Rendering pages/about +Completed in 4ms (View: 3, DB: 0) | 200 OK [http://localhost/about] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-10 10:31:03) [GET] + Category Load (0.7ms) SELECT * FROM "categories" LIMIT 4 OFFSET 0 + SQL (0.1ms) SELECT count(*) AS count_all FROM "categories"  + Photo Load (0.6ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 2 +Rendering template within layouts/photos +Rendering categories/index +Completed in 20ms (View: 8, DB: 1) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-10 10:31:05) [GET] + Parameters: {"page"=>"2"} + Category Load (0.6ms) SELECT * FROM "categories" LIMIT 4 OFFSET 4 + Photo Load (0.5ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 2 +Rendering template within layouts/photos +Rendering categories/index +Completed in 20ms (View: 9, DB: 1) | 200 OK [http://localhost/categories?page=2] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-10 10:31:06) [GET] + Parameters: {"page"=>"1"} + Category Load (0.8ms) SELECT * FROM "categories" LIMIT 4 OFFSET 0 + SQL (0.1ms) SELECT count(*) AS count_all FROM "categories"  + Photo Load (0.6ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 2 +Rendering template within layouts/photos +Rendering categories/index +Completed in 23ms (View: 8, DB: 2) | 200 OK [http://localhost/categories?page=1] + + +Processing PagesController#index (for 127.0.0.1 at 2010-10-10 10:31:08) [GET] + Photo Load (0.6ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 1 +Rendering template within layouts/photos +Rendering pages/index +Completed in 13ms (View: 6, DB: 1) | 200 OK [http://localhost/] + + +Processing PagesController#contact (for 127.0.0.1 at 2010-10-10 10:43:43) [GET] + +ActionController::UnknownAction (No action responded to contact. Actions: index): + + +Rendering rescues/layout (not_found) + + +Processing PagesController#index (for 192.168.42.200 at 2010-10-10 11:04:09) [GET] + Photo Load (67.5ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 1 +Rendering template within layouts/photos +Rendering pages/index +Completed in 510ms (View: 288, DB: 67) | 200 OK [http://192.168.42.240/] + + +Processing CategoriesController#index (for 192.168.42.200 at 2010-10-10 11:04:19) [GET] + Category Load (16.7ms) SELECT * FROM "categories" LIMIT 4 OFFSET 0 + SQL (0.3ms) SELECT count(*) AS count_all FROM "categories"  + Photo Load (0.7ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 2 +Rendering template within layouts/photos +Rendering categories/index +Completed in 289ms (View: 95, DB: 18) | 200 OK [http://192.168.42.240/categories] + + +Processing CategoriesController#index (for 192.168.42.200 at 2010-10-10 11:04:20) [GET] + Parameters: {"page"=>"2"} + Category Load (0.7ms) SELECT * FROM "categories" LIMIT 4 OFFSET 4 + Photo Load (19.0ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 2 +Rendering template within layouts/photos +Rendering categories/index +Completed in 3814ms (View: 11, DB: 20) | 200 OK [http://192.168.42.240/categories?page=2] + + +Processing CategoriesController#index (for 192.168.42.200 at 2010-10-10 11:04:26) [GET] + Parameters: {"page"=>"1"} + Category Load (16.8ms) SELECT * FROM "categories" LIMIT 4 OFFSET 0 + SQL (0.1ms) SELECT count(*) AS count_all FROM "categories"  + Photo Load (0.5ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 2 +Rendering template within layouts/photos +Rendering categories/index +Completed in 39ms (View: 10, DB: 17) | 200 OK [http://192.168.42.240/categories?page=1] + + +Processing PhotosController#index (for 192.168.42.200 at 2010-10-10 11:04:27) [GET] + Parameters: {"category_id"=>"1"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1 + Photo Load (7.4ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 0 + SQL (18.7ms) SELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 )  +Rendering template within layouts/photos +Rendering photos/index +Completed in 80ms (View: 39, DB: 26) | 200 OK [http://192.168.42.240/categories/1/photos] + + +Processing CategoriesController#index (for 192.168.42.200 at 2010-10-10 11:04:46) [GET] + Category Load (42.0ms) SELECT * FROM "categories" LIMIT 4 OFFSET 0 + SQL (0.2ms) SELECT count(*) AS count_all FROM "categories"  + Photo Load (0.8ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 2 +Rendering template within layouts/photos +Rendering categories/index +Completed in 68ms (View: 11, DB: 43) | 200 OK [http://192.168.42.240/categories] + + +Processing CategoriesController#index (for 192.168.42.200 at 2010-10-10 11:06:46) [GET] + Parameters: {"page"=>"2"} + Category Load (32.7ms) SELECT * FROM "categories" LIMIT 4 OFFSET 4 + Photo Load (18.6ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 2 +Rendering template within layouts/photos +Rendering categories/index +Completed in 114ms (View: 51, DB: 51) | 200 OK [http://192.168.42.240/categories?page=2] + + +Processing CategoriesController#index (for 192.168.42.200 at 2010-10-10 11:06:49) [GET] + Parameters: {"page"=>"1"} + Category Load (0.7ms) SELECT * FROM "categories" LIMIT 4 OFFSET 0 + SQL (0.2ms) SELECT count(*) AS count_all FROM "categories"  + Photo Load (0.6ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 2 +Rendering template within layouts/photos +Rendering categories/index +Completed in 26ms (View: 9, DB: 1) | 200 OK [http://192.168.42.240/categories?page=1] + + +Processing PhotosController#index (for 192.168.42.200 at 2010-10-10 11:06:52) [GET] + Parameters: {"category_id"=>"1"} + Category Load (0.5ms) SELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1 + Photo Load (48.8ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 0 + SQL (0.2ms) SELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 )  +Rendering template within layouts/photos +Rendering photos/index +Completed in 279ms (View: 144, DB: 50) | 200 OK [http://192.168.42.240/categories/1/photos] + + +Processing PhotosController#index (for 192.168.42.200 at 2010-10-10 11:06:54) [GET] + Parameters: {"category_id"=>"1", "page"=>"2"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1 + Photo Load (0.9ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 11 +Rendering template within layouts/photos +Rendering photos/index +Completed in 29ms (View: 13, DB: 1) | 200 OK [http://192.168.42.240/categories/1/photos?page=2] + + +Processing CategoriesController#index (for 192.168.42.200 at 2010-10-10 11:07:31) [GET] + Category Load (54.1ms) SELECT * FROM "categories" LIMIT 4 OFFSET 0 + SQL (0.2ms) SELECT count(*) AS count_all FROM "categories"  + Photo Load (22.7ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 2 +Rendering template within layouts/photos +Rendering categories/index +Completed in 146ms (View: 42, DB: 77) | 200 OK [http://192.168.42.240/categories] + + +Processing PhotosController#index (for 192.168.42.200 at 2010-10-10 11:07:33) [GET] + Parameters: {"category_id"=>"2"} + Category Load (0.3ms) SELECT * FROM "categories" WHERE ("categories"."id" = '2') LIMIT 1 + Photo Load (1.0ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 2 ) LIMIT 11 OFFSET 0 +Rendering template within layouts/photos +Rendering photos/index +Completed in 52ms (View: 35, DB: 1) | 200 OK [http://192.168.42.240/categories/2/photos] + + +Processing CategoriesController#index (for 192.168.42.200 at 2010-10-10 11:07:40) [GET] + Category Load (31.0ms) SELECT * FROM "categories" LIMIT 4 OFFSET 0 + SQL (0.2ms) SELECT count(*) AS count_all FROM "categories"  + Photo Load (6.7ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 2 +Rendering template within layouts/photos +Rendering categories/index +Completed in 62ms (View: 12, DB: 38) | 200 OK [http://192.168.42.240/categories] + + +Processing PhotosController#index (for 192.168.42.200 at 2010-10-10 11:07:40) [GET] + Parameters: {"category_id"=>"1"} + Category Load (0.3ms) SELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1 + Photo Load (1.4ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 0 + SQL (0.2ms) SELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 )  +Rendering template within layouts/photos +Rendering photos/index +Completed in 38ms (View: 20, DB: 2) | 200 OK [http://192.168.42.240/categories/1/photos] + + +Processing PhotosController#index (for 192.168.42.200 at 2010-10-10 11:07:42) [GET] + Parameters: {"category_id"=>"1", "page"=>"2"} + Category Load (0.4ms) SELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1 + Photo Load (0.6ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 11 OFFSET 11 +Rendering template within layouts/photos +Rendering photos/index +Completed in 27ms (View: 10, DB: 1) | 200 OK [http://192.168.42.240/categories/1/photos?page=2] + + +Processing CategoriesController#index (for 192.168.42.200 at 2010-10-10 11:07:51) [GET] + Category Load (35.5ms) SELECT * FROM "categories" LIMIT 4 OFFSET 0 + SQL (0.3ms) SELECT count(*) AS count_all FROM "categories"  + Photo Load (11.7ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 2 +Rendering template within layouts/photos +Rendering categories/index +Completed in 142ms (View: 10, DB: 48) | 200 OK [http://192.168.42.240/categories] + + +Processing PagesController#index (for 192.168.42.200 at 2010-10-10 11:15:14) [GET] + Photo Load (16.9ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 1 +Rendering template within layouts/photos +Rendering pages/index +Completed in 57ms (View: 31, DB: 17) | 200 OK [http://192.168.42.240/] + + +Processing PagesController#about (for 127.0.0.1 at 2010-10-10 11:16:19) [GET] +Rendering template within layouts/photos +Rendering pages/about +Completed in 43ms (View: 42, DB: 0) | 200 OK [http://localhost/about] + + +Processing Admin::CategoriesController#index (for 127.0.0.1 at 2010-10-10 11:35:13) [GET] + Parameters: {"action"=>"index", "controller"=>"admin/categories"} + TypusUser Load (17.4ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + SQL (0.6ms) SELECT count(*) AS count_all FROM "categories"  +Rendering template within layouts/admin +Rendering admin/resources/index +Rendered admin/helpers/_list (0.1ms) +Rendered admin/helpers/_search (0.6ms) + Category Load (0.6ms) SELECT "categories".* FROM "categories" ORDER BY categories.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_table_header (0.1ms) +Rendered admin/helpers/_header (0.3ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 402ms (View: 127, DB: 19) | 200 OK [http://localhost/admin/categories] + + +Processing PagesController#index (for 127.0.0.1 at 2010-10-10 11:35:15) [GET] + Photo Load (31.8ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 1 +Rendering template within layouts/photos +Rendering pages/index +Completed in 78ms (View: 39, DB: 32) | 200 OK [http://localhost/] + + +Processing TypusController#dashboard (for 127.0.0.1 at 2010-10-10 11:35:20) [GET] + Parameters: {"action"=>"dashboard", "controller"=>"typus"} + TypusUser Load (0.6ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  +Rendering template within layouts/admin +Rendering typus/dashboard +Rendered admin/dashboard/_sidebar (1.0ms) +Rendered admin/helpers/_applications (4.6ms) +Rendered admin/helpers/_header (0.2ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 105ms (View: 98, DB: 1) | 200 OK [http://localhost/admin] + + +Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-10 11:35:23) [GET] + Parameters: {"action"=>"index", "controller"=>"admin/photos"} + TypusUser Load (0.5ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + SQL (0.2ms) SELECT count(*) AS count_all FROM "photos"  +Rendering template within layouts/admin +Rendering admin/resources/index +Rendered admin/helpers/_list (0.1ms) +Rendered admin/helpers/_search (0.6ms) + Photo Load (1.6ms) SELECT "photos".* FROM "photos" ORDER BY photos.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_table_header (0.1ms) + Category Load (0.4ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 1 )  + Category Load (0.4ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 2 )  + Category Load (0.3ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 3 )  + Category Load (0.2ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 4 )  + Category Load (0.3ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 5 )  + Category Load (0.3ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 6 )  + Category Load (0.4ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 7 )  + Category Load (0.3ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 8 )  + Category Load (0.2ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 10 )  + Category Load (0.2ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 11 )  + Category Load (0.3ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 12 )  + Category Load (0.3ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 13 )  + Category Load (0.3ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 14 )  + Category Load (0.3ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 15 )  + Category Load (0.2ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 17 )  +Rendered admin/helpers/_pagination (17.6ms) +Rendered admin/helpers/_header (0.2ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 110ms (View: 80, DB: 7) | 200 OK [http://localhost/admin/photos] + + +Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-10 11:35:26) [GET] + Parameters: {"action"=>"edit", "id"=>"3", "controller"=>"admin/photos"} + TypusUser Load (0.6ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."id" = 3)  +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 (1.3ms) +Rendered admin/templates/_file (52.1ms) +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 (61.5ms) + SQL (0.2ms) SELECT count(*) AS count_all FROM "categories"  + Category Load (0.6ms) SELECT * FROM "categories"  + Category Load (0.4ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 3 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 3)  + SQL (0.2ms) SELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 3 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 3)  + Category Load (0.4ms) SELECT * 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 +Rendered admin/helpers/_table_header (0.1ms) +Rendered admin/helpers/_header (0.2ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 119ms (View: 94, DB: 3) | 200 OK [http://localhost/admin/photos/edit/3] + + +Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-10 11:35:30) [GET] + Parameters: {"action"=>"edit", "id"=>"6", "controller"=>"admin/photos"} + TypusUser Load (0.5ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."id" = 6)  +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.6ms) +Rendered admin/resources/_form (11.1ms) + SQL (0.2ms) SELECT count(*) AS count_all FROM "categories"  + Category Load (0.5ms) SELECT * FROM "categories"  + Category Load (0.3ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 6 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 6)  + SQL (0.2ms) SELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 6 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 6)  + Category Load (0.4ms) SELECT * 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 +Rendered admin/helpers/_table_header (0.1ms) +Rendered admin/helpers/_header (0.2ms) +Rendered admin/helpers/_login_info (0.5ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 63ms (View: 37, DB: 2) | 200 OK [http://localhost/admin/photos/edit/6] + + +Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-10 11:35:33) [GET] + Parameters: {"action"=>"edit", "id"=>"14", "controller"=>"admin/photos"} + TypusUser Load (0.6ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."id" = 14)  +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.7ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/templates/_text (0.5ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/resources/_form (11.6ms) + SQL (0.2ms) SELECT count(*) AS count_all FROM "categories"  + Category Load (0.5ms) SELECT * FROM "categories"  + Category Load (0.3ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 14 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 14)  + SQL (0.3ms) SELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 14 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 14)  + Category Load (0.3ms) SELECT * 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 +Rendered admin/helpers/_table_header (0.1ms) +Rendered admin/helpers/_header (0.2ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 120ms (View: 97, DB: 2) | 200 OK [http://localhost/admin/photos/edit/14] + + +Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-10 11:39:06) [GET] + Parameters: {"action"=>"index", "sort_order"=>"desc", "page"=>"2", "controller"=>"admin/photos"} + TypusUser Load (0.6ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + SQL (0.2ms) SELECT count(*) AS count_all FROM "photos"  +Rendering template within layouts/admin +Rendering admin/resources/index +Rendered admin/helpers/_list (0.1ms) +Rendered admin/helpers/_search (0.8ms) +Rendered admin/helpers/_remove_filter_link (14.8ms) + Photo Load (1.0ms) SELECT "photos".* FROM "photos" ORDER BY photos.id ASC LIMIT 15 OFFSET 15 +Rendered admin/helpers/_table_header (0.1ms) + Category Load (0.4ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 18 )  + Category Load (0.4ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 19 )  + Category Load (0.3ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 20 )  + Category Load (0.4ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 21 )  + Category Load (0.6ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 22 )  + Category Load (0.3ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 23 )  + Category Load (0.3ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 24 )  +Rendered admin/helpers/_pagination (0.6ms) +Rendered admin/helpers/_header (0.2ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/shared/_footer (0.3ms) +Completed in 150ms (View: 123, DB: 4) | 200 OK [http://localhost/admin/photos?page=2&sort_order=desc] + + +Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-10 11:39:11) [GET] + Parameters: {"action"=>"index", "sort_order"=>"desc", "page"=>"1", "controller"=>"admin/photos"} + TypusUser Load (0.6ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + SQL (0.2ms) SELECT count(*) AS count_all FROM "photos"  +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) + Photo Load (1.4ms) SELECT "photos".* FROM "photos" ORDER BY photos.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_table_header (0.1ms) + Category Load (0.4ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 1 )  + Category Load (0.3ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 2 )  + Category Load (0.3ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 3 )  + Category Load (0.3ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 4 )  + Category Load (0.5ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 5 )  + Category Load (0.3ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 6 )  + Category Load (0.3ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 7 )  + Category Load (0.3ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 8 )  + Category Load (0.3ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 10 )  + Category Load (0.2ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 11 )  + Category Load (0.2ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 12 )  + Category Load (0.3ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 13 )  + Category Load (0.2ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 14 )  + Category Load (0.3ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 15 )  + Category Load (0.2ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 17 )  +Rendered admin/helpers/_pagination (0.5ms) +Rendered admin/helpers/_header (60.8ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 148ms (View: 119, DB: 7) | 200 OK [http://localhost/admin/photos?page=1&sort_order=desc] + + +Processing Admin::PhotosController#new (for 127.0.0.1 at 2010-10-10 11:42:28) [GET] + Parameters: {"action"=>"new", "controller"=>"admin/photos"} + TypusUser Load (0.6ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + +MissingSourceFile (no such file to load -- mini_exiftool): + app/models/photo.rb:1 + vendor/plugins/typus/app/controllers/admin/master_controller.rb:277:in `set_resource' + +Rendered rescues/_trace (36.1ms) +Rendered rescues/_request_and_response (0.3ms) +Rendering rescues/layout (internal_server_error) + + +Processing Admin::PhotosController#new (for 127.0.0.1 at 2010-10-10 11:42:38) [GET] + Parameters: {"action"=>"new", "controller"=>"admin/photos"} + TypusUser Load (0.3ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  +Rendering template within layouts/admin +Rendering admin/resources/new +Rendered admin/helpers/_list (1.1ms) +Rendered admin/templates/_file (2.7ms) +Rendered admin/templates/_string (1.8ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/templates/_text (1.5ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/resources/_form (23.1ms) +Rendered admin/helpers/_header (1.4ms) +Rendered admin/helpers/_login_info (1.3ms) +Rendered admin/shared/_footer (0.9ms) +Completed in 131ms (View: 66, DB: 0) | 200 OK [http://localhost/admin/photos/new] + + +Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-10 11:42:54) [GET] + Parameters: {"action"=>"index", "controller"=>"admin/photos"} + TypusUser Load (0.6ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + SQL (0.2ms) SELECT count(*) AS count_all FROM "photos"  +Rendering template within layouts/admin +Rendering admin/resources/index +Rendered admin/helpers/_list (0.1ms) +Rendered admin/helpers/_search (1.9ms) + Photo Load (1.5ms) SELECT "photos".* FROM "photos" ORDER BY photos.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_table_header (1.0ms) + Category Load (0.4ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 1 )  + Category Load (0.4ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 2 )  + Category Load (0.3ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 3 )  + Category Load (0.3ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 4 )  + Category Load (0.3ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 5 )  + Category Load (0.3ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 6 )  + Category Load (0.5ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 7 )  + Category Load (0.3ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 8 )  + Category Load (0.3ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 10 )  + Category Load (0.3ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 11 )  + Category Load (0.3ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 12 )  + Category Load (0.3ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 13 )  + Category Load (0.4ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 14 )  + Category Load (0.3ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 15 )  + Category Load (0.2ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 17 )  +Rendered admin/helpers/_pagination (1.6ms) +Rendered admin/helpers/_header (0.2ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 131ms (View: 103, DB: 7) | 200 OK [http://localhost/admin/photos] + + +Processing Admin::PhotosController#destroy (for 127.0.0.1 at 2010-10-10 11:43:01) [GET] + Parameters: {"action"=>"destroy", "id"=>"15", "controller"=>"admin/photos"} + TypusUser Load (0.6ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."id" = 15)  +[paperclip] Deleting attachments. +[paperclip] deleting /Users/danbee/Sites/rails/photos/public/system/photos/15/original/Croagh Patrick Sunset.jpg +[paperclip] deleting /Users/danbee/Sites/rails/photos/public/system/photos/15/size11/Croagh Patrick Sunset.jpg +[paperclip] deleting /Users/danbee/Sites/rails/photos/public/system/photos/15/size8/Croagh Patrick Sunset.jpg +[paperclip] deleting /Users/danbee/Sites/rails/photos/public/system/photos/15/size5/Croagh Patrick Sunset.jpg +[paperclip] deleting /Users/danbee/Sites/rails/photos/public/system/photos/15/size3/Croagh Patrick Sunset.jpg +[paperclip] deleting /Users/danbee/Sites/rails/photos/public/system/photos/15/size2/Croagh Patrick Sunset.jpg +[paperclip] deleting /Users/danbee/Sites/rails/photos/public/system/photos/15/size17/Croagh Patrick Sunset.jpg + Category Load (0.3ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 15 )  + SQL (0.3ms) DELETE FROM "categories_photos" WHERE photo_id = 15 AND category_id IN (1) + Photo Destroy (0.1ms) DELETE FROM "photos" WHERE "id" = 15 +Redirected to http://localhost:3000/admin/photos +Completed in 101ms (DB: 2) | 302 Found [http://localhost/admin/photos/destroy/15] + + +Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-10 11:43:01) [GET] + Parameters: {"action"=>"index", "controller"=>"admin/photos"} + TypusUser Load (0.6ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + SQL (0.2ms) SELECT count(*) AS count_all FROM "photos"  +Rendering template within layouts/admin +Rendering admin/resources/index +Rendered admin/helpers/_list (0.1ms) +Rendered admin/helpers/_search (0.5ms) + Photo Load (1.5ms) SELECT "photos".* FROM "photos" ORDER BY photos.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_table_header (0.2ms) + Category Load (0.4ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 1 )  + Category Load (0.3ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 2 )  + Category Load (0.3ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 3 )  + Category Load (0.3ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 4 )  + Category Load (0.3ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 5 )  + Category Load (0.4ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 6 )  + Category Load (0.3ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 7 )  + Category Load (0.3ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 8 )  + Category Load (0.2ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 10 )  + Category Load (0.3ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 11 )  + Category Load (0.3ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 12 )  + Category Load (0.3ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 13 )  + Category Load (0.4ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 14 )  + Category Load (0.3ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 17 )  + Category Load (0.2ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 18 )  +Rendered admin/helpers/_pagination (0.5ms) +Rendered admin/helpers/_header (0.2ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/helpers/_flash_message (11.1ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 158ms (View: 130, DB: 7) | 200 OK [http://localhost/admin/photos] + + +Processing Admin::PhotosController#new (for 127.0.0.1 at 2010-10-10 11:43:03) [GET] + Parameters: {"action"=>"new", "controller"=>"admin/photos"} + TypusUser Load (0.5ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  +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.6ms) +Rendered admin/templates/_text (0.6ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/resources/_form (8.1ms) +Rendered admin/helpers/_header (0.3ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 98ms (View: 78, DB: 1) | 200 OK [http://localhost/admin/photos/new] + + +Processing Admin::PhotosController#create (for 127.0.0.1 at 2010-10-10 11:43:10) [POST] + Parameters: {"photo"=>{"photo"=>#, "title"=>"", "flickr_url"=>"", "sort"=>"", "description"=>""}, "commit"=>"Create Photo", "action"=>"create", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "controller"=>"admin/photos"} + TypusUser Load (0.6ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101010-6110-1knzjx0-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101010-6110-1knzjx0-0.jpg[0]' -resize "x308" -crop "308x308+147+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101010-6110-1knzjx0-020101010-6110-1gqzy8g-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101010-6110-1knzjx0-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101010-6110-1knzjx0-0.jpg[0]' -resize "1024x1024>" '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101010-6110-1knzjx0-020101010-6110-43ntfm-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101010-6110-1knzjx0-020101010-6110-43ntfm-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101010-6110-1knzjx0-020101010-6110-43ntfm-0[0]' -resize "x224" -crop "224x224+107+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101010-6110-1knzjx0-020101010-6110-43ntfm-020101010-6110-16bju8w-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101010-6110-1knzjx0-020101010-6110-43ntfm-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101010-6110-1knzjx0-020101010-6110-43ntfm-0[0]' -resize "x140" -crop "140x140+67+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101010-6110-1knzjx0-020101010-6110-43ntfm-020101010-6110-v146xo-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101010-6110-1knzjx0-020101010-6110-43ntfm-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101010-6110-1knzjx0-020101010-6110-43ntfm-0[0]' -resize "x84" -crop "84x84+40+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101010-6110-1knzjx0-020101010-6110-43ntfm-020101010-6110-gsgypc-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101010-6110-1knzjx0-020101010-6110-43ntfm-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101010-6110-1knzjx0-020101010-6110-43ntfm-0[0]' -resize "x56" -crop "56x56+26+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101010-6110-1knzjx0-020101010-6110-43ntfm-020101010-6110-bs36b1-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101010-6110-1knzjx0-020101010-6110-43ntfm-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101010-6110-1knzjx0-020101010-6110-43ntfm-0[0]' -resize "x476" -crop "476x476+227+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101010-6110-1knzjx0-020101010-6110-43ntfm-020101010-6110-8krcq-0' 2>/dev/null + Photo Create (0.5ms) INSERT 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-10 15:43:13', '', '', 'Croagh Patrick Sunset.jpg', '2010-10-10 15:43:13', 'image/jpeg', '2010-10-10 15:43:10', '', NULL) + Photo Update (0.3ms) UPDATE "photos" SET "updated_at" = '2010-10-10 15:43:23', "created_at" = '2010-10-10 15:43:13', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-10 15:43:10', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 25 +[paperclip] Saving attachments. +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/25/size11/Croagh Patrick Sunset.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/25/original/Croagh Patrick Sunset.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/25/size8/Croagh Patrick Sunset.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/25/size5/Croagh Patrick Sunset.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/25/size3/Croagh Patrick Sunset.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/25/size2/Croagh Patrick Sunset.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/25/size17/Croagh Patrick Sunset.jpg +[paperclip] Saving attachments. +Redirected to http://localhost:3000/admin/photos/edit/25 +Completed in 14877ms (DB: 1) | 302 Found [http://localhost/admin/photos/create] + + +Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-10 11:43:25) [GET] + Parameters: {"action"=>"edit", "id"=>"25", "controller"=>"admin/photos"} + TypusUser Load (0.6ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."id" = 25)  +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 (1.0ms) +Rendered admin/templates/_file (9.3ms) +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 (16.1ms) + SQL (0.2ms) SELECT count(*) AS count_all FROM "categories"  + Category Load (0.5ms) SELECT * FROM "categories"  + Category Load (0.1ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 25 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 25)  + SQL (0.2ms) SELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 25 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 25)  + Category Load (0.1ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 25 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_header (0.2ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/helpers/_flash_message (0.1ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 82ms (View: 56, DB: 2) | 200 OK [http://localhost/admin/photos/edit/25] + + +Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-10 11:43:35) [GET] + Parameters: {"action"=>"index", "controller"=>"admin/photos"} + TypusUser Load (0.5ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + SQL (0.2ms) SELECT count(*) AS count_all FROM "photos"  +Rendering template within layouts/admin +Rendering admin/resources/index +Rendered admin/helpers/_list (0.1ms) +Rendered admin/helpers/_search (0.5ms) + Photo Load (1.5ms) SELECT "photos".* FROM "photos" ORDER BY photos.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_table_header (0.1ms) + Category Load (0.5ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 1 )  + Category Load (0.4ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 2 )  + Category Load (0.3ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 3 )  + Category Load (0.4ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 4 )  + Category Load (0.3ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 5 )  + Category Load (0.3ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 6 )  + Category Load (0.3ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 7 )  + Category Load (0.3ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 8 )  + Category Load (0.3ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 10 )  + Category Load (0.3ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 11 )  + Category Load (0.3ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 12 )  + Category Load (0.3ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 13 )  + Category Load (0.3ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 14 )  + Category Load (0.3ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 17 )  + Category Load (0.3ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 18 )  +Rendered admin/helpers/_pagination (0.6ms) +Rendered admin/helpers/_header (0.2ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 89ms (View: 61, DB: 7) | 200 OK [http://localhost/admin/photos] + + +Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-10 11:43:43) [GET] + Parameters: {"action"=>"index", "sort_order"=>"desc", "page"=>"2", "controller"=>"admin/photos"} + TypusUser Load (1.0ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + SQL (0.2ms) SELECT count(*) AS count_all FROM "photos"  +Rendering template within layouts/admin +Rendering admin/resources/index +Rendered admin/helpers/_list (0.1ms) +Rendered admin/helpers/_search (0.7ms) +Rendered admin/helpers/_remove_filter_link (0.8ms) + Photo Load (0.8ms) SELECT "photos".* FROM "photos" ORDER BY photos.id ASC LIMIT 15 OFFSET 15 +Rendered admin/helpers/_table_header (0.1ms) + Category Load (0.4ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 19 )  + Category Load (0.7ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 20 )  + Category Load (0.7ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 21 )  + Category Load (0.5ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 22 )  + Category Load (0.3ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 23 )  + Category Load (0.4ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 24 )  + Category Load (0.3ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 25 )  +Rendered admin/helpers/_pagination (0.6ms) +Rendered admin/helpers/_header (0.2ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 76ms (View: 48, DB: 5) | 200 OK [http://localhost/admin/photos?page=2&sort_order=desc] + + +Processing Admin::PhotosController#destroy (for 127.0.0.1 at 2010-10-10 11:43:46) [GET] + Parameters: {"action"=>"destroy", "id"=>"25", "controller"=>"admin/photos"} + TypusUser Load (0.5ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.4ms) SELECT * FROM "photos" WHERE ("photos"."id" = 25)  +[paperclip] Deleting attachments. +[paperclip] deleting /Users/danbee/Sites/rails/photos/public/system/photos/25/original/Croagh Patrick Sunset.jpg +[paperclip] deleting /Users/danbee/Sites/rails/photos/public/system/photos/25/size11/Croagh Patrick Sunset.jpg +[paperclip] deleting /Users/danbee/Sites/rails/photos/public/system/photos/25/size8/Croagh Patrick Sunset.jpg +[paperclip] deleting /Users/danbee/Sites/rails/photos/public/system/photos/25/size5/Croagh Patrick Sunset.jpg +[paperclip] deleting /Users/danbee/Sites/rails/photos/public/system/photos/25/size3/Croagh Patrick Sunset.jpg +[paperclip] deleting /Users/danbee/Sites/rails/photos/public/system/photos/25/size2/Croagh Patrick Sunset.jpg +[paperclip] deleting /Users/danbee/Sites/rails/photos/public/system/photos/25/size17/Croagh Patrick Sunset.jpg + Category Load (0.2ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 25 )  + Photo Destroy (0.2ms) DELETE FROM "photos" WHERE "id" = 25 +Redirected to http://localhost:3000/admin/photos?page=2&sort_order=desc +Completed in 102ms (DB: 1) | 302 Found [http://localhost/admin/photos/destroy/25] + + +Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-10 11:43:46) [GET] + Parameters: {"action"=>"index", "sort_order"=>"desc", "page"=>"2", "controller"=>"admin/photos"} + TypusUser Load (0.9ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + SQL (0.2ms) SELECT count(*) AS count_all FROM "photos"  +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.4ms) + Photo Load (0.7ms) SELECT "photos".* FROM "photos" ORDER BY photos.id ASC LIMIT 15 OFFSET 15 +Rendered admin/helpers/_table_header (0.1ms) + Category Load (0.4ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 19 )  + Category Load (0.4ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 20 )  + Category Load (0.4ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 21 )  + Category Load (0.4ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 22 )  + Category Load (0.3ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 23 )  + Category Load (0.3ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 24 )  +Rendered admin/helpers/_pagination (0.6ms) +Rendered admin/helpers/_header (0.2ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/helpers/_flash_message (0.1ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 73ms (View: 40, DB: 4) | 200 OK [http://localhost/admin/photos?page=2&sort_order=desc] + + +Processing Admin::PhotosController#new (for 127.0.0.1 at 2010-10-10 11:43:48) [GET] + Parameters: {"action"=>"new", "controller"=>"admin/photos"} + TypusUser Load (0.6ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  +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.6ms) +Rendered admin/templates/_text (0.6ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/resources/_form (8.2ms) +Rendered admin/helpers/_header (0.2ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 40ms (View: 19, DB: 1) | 200 OK [http://localhost/admin/photos/new] + + +Processing Admin::PhotosController#create (for 127.0.0.1 at 2010-10-10 11:43:53) [POST] + Parameters: {"photo"=>{"photo"=>#, "title"=>"", "flickr_url"=>"", "sort"=>"", "description"=>""}, "commit"=>"Create Photo", "action"=>"create", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "controller"=>"admin/photos"} + TypusUser Load (0.6ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101010-6110-ulq4o4-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101010-6110-ulq4o4-0.jpg[0]' -resize "x308" -crop "308x308+147+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101010-6110-ulq4o4-020101010-6110-1irc9od-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101010-6110-ulq4o4-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101010-6110-ulq4o4-0.jpg[0]' -resize "1024x1024>" '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101010-6110-ulq4o4-020101010-6110-feor4n-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101010-6110-ulq4o4-020101010-6110-feor4n-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101010-6110-ulq4o4-020101010-6110-feor4n-0[0]' -resize "x224" -crop "224x224+107+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101010-6110-ulq4o4-020101010-6110-feor4n-020101010-6110-pmdsrb-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101010-6110-ulq4o4-020101010-6110-feor4n-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101010-6110-ulq4o4-020101010-6110-feor4n-0[0]' -resize "x140" -crop "140x140+67+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101010-6110-ulq4o4-020101010-6110-feor4n-020101010-6110-fsm27w-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101010-6110-ulq4o4-020101010-6110-feor4n-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101010-6110-ulq4o4-020101010-6110-feor4n-0[0]' -resize "x84" -crop "84x84+40+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101010-6110-ulq4o4-020101010-6110-feor4n-020101010-6110-zzh8oq-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101010-6110-ulq4o4-020101010-6110-feor4n-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101010-6110-ulq4o4-020101010-6110-feor4n-0[0]' -resize "x56" -crop "56x56+26+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101010-6110-ulq4o4-020101010-6110-feor4n-020101010-6110-1yy5ent-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101010-6110-ulq4o4-020101010-6110-feor4n-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101010-6110-ulq4o4-020101010-6110-feor4n-0[0]' -resize "x476" -crop "476x476+227+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101010-6110-ulq4o4-020101010-6110-feor4n-020101010-6110-194xhw8-0' 2>/dev/null + Photo Create (0.4ms) INSERT 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-10 15:43:55', '', '', 'Croagh Patrick Sunset.jpg', '2010-10-10 15:43:55', 'image/jpeg', '2010-10-10 15:43:53', '', NULL) +[paperclip] Saving attachments. +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/26/size11/Croagh Patrick Sunset.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/26/original/Croagh Patrick Sunset.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/26/size8/Croagh Patrick Sunset.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/26/size5/Croagh Patrick Sunset.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/26/size3/Croagh Patrick Sunset.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/26/size2/Croagh Patrick Sunset.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/26/size17/Croagh Patrick Sunset.jpg +Redirected to http://localhost:3000/admin/photos/edit/26 +Completed in 3320ms (DB: 1) | 302 Found [http://localhost/admin/photos/create] + + +Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-10 11:43:56) [GET] + Parameters: {"action"=>"edit", "id"=>"26", "controller"=>"admin/photos"} + TypusUser Load (0.6ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."id" = 26)  +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.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 (96.9ms) + SQL (0.2ms) SELECT count(*) AS count_all FROM "categories"  + Category Load (0.5ms) SELECT * FROM "categories"  + Category Load (0.1ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 26 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 26)  + SQL (0.2ms) SELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 26 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 26)  + Category Load (0.1ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 26 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_header (0.2ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/helpers/_flash_message (0.1ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 146ms (View: 120, DB: 2) | 200 OK [http://localhost/admin/photos/edit/26] + + +Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-10 11:44:01) [GET] + Parameters: {"action"=>"index", "controller"=>"admin/photos"} + TypusUser Load (0.6ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + SQL (0.2ms) SELECT count(*) AS count_all FROM "photos"  +Rendering template within layouts/admin +Rendering admin/resources/index +Rendered admin/helpers/_list (0.1ms) +Rendered admin/helpers/_search (0.7ms) + Photo Load (1.5ms) SELECT "photos".* FROM "photos" ORDER BY photos.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_table_header (0.1ms) + Category Load (0.4ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 1 )  + Category Load (0.3ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 2 )  + Category Load (0.3ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 3 )  + Category Load (0.3ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 4 )  + Category Load (0.3ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 5 )  + Category Load (0.3ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 6 )  + Category Load (0.3ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 7 )  + Category Load (0.4ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 8 )  + Category Load (0.3ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 10 )  + Category Load (0.3ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 11 )  + Category Load (0.2ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 12 )  + Category Load (0.4ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 13 )  + Category Load (0.2ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 14 )  + Category Load (0.3ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 17 )  + Category Load (0.4ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 18 )  +Rendered admin/helpers/_pagination (0.8ms) +Rendered admin/helpers/_header (0.2ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 150ms (View: 121, DB: 7) | 200 OK [http://localhost/admin/photos] + + +Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-10 11:44:03) [GET] + Parameters: {"action"=>"index", "sort_order"=>"desc", "page"=>"2", "controller"=>"admin/photos"} + TypusUser Load (0.6ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + SQL (0.2ms) SELECT count(*) AS count_all FROM "photos"  +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) + Photo Load (0.8ms) SELECT "photos".* FROM "photos" ORDER BY photos.id ASC LIMIT 15 OFFSET 15 +Rendered admin/helpers/_table_header (0.1ms) + Category Load (0.4ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 19 )  + Category Load (0.9ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 20 )  + Category Load (0.3ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 21 )  + Category Load (0.4ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 22 )  + Category Load (0.3ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 23 )  + Category Load (0.3ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 24 )  + Category Load (0.1ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 26 )  +Rendered admin/helpers/_pagination (0.7ms) +Rendered admin/helpers/_header (0.2ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 68ms (View: 43, DB: 4) | 200 OK [http://localhost/admin/photos?page=2&sort_order=desc] + + +Processing Admin::PhotosController#destroy (for 127.0.0.1 at 2010-10-10 11:44:07) [GET] + Parameters: {"action"=>"destroy", "id"=>"26", "controller"=>"admin/photos"} + TypusUser Load (0.5ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."id" = 26)  +[paperclip] Deleting attachments. +[paperclip] deleting /Users/danbee/Sites/rails/photos/public/system/photos/26/original/Croagh Patrick Sunset.jpg +[paperclip] deleting /Users/danbee/Sites/rails/photos/public/system/photos/26/size11/Croagh Patrick Sunset.jpg +[paperclip] deleting /Users/danbee/Sites/rails/photos/public/system/photos/26/size8/Croagh Patrick Sunset.jpg +[paperclip] deleting /Users/danbee/Sites/rails/photos/public/system/photos/26/size5/Croagh Patrick Sunset.jpg +[paperclip] deleting /Users/danbee/Sites/rails/photos/public/system/photos/26/size3/Croagh Patrick Sunset.jpg +[paperclip] deleting /Users/danbee/Sites/rails/photos/public/system/photos/26/size2/Croagh Patrick Sunset.jpg +[paperclip] deleting /Users/danbee/Sites/rails/photos/public/system/photos/26/size17/Croagh Patrick Sunset.jpg + Category Load (0.2ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 26 )  + Photo Destroy (0.2ms) DELETE FROM "photos" WHERE "id" = 26 +Redirected to http://localhost:3000/admin/photos?page=2&sort_order=desc +Completed in 39ms (DB: 1) | 302 Found [http://localhost/admin/photos/destroy/26] + + +Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-10 11:44:07) [GET] + Parameters: {"action"=>"index", "sort_order"=>"desc", "page"=>"2", "controller"=>"admin/photos"} + TypusUser Load (0.8ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + SQL (0.2ms) SELECT count(*) AS count_all FROM "photos"  +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) + Photo Load (0.8ms) SELECT "photos".* FROM "photos" ORDER BY photos.id ASC LIMIT 15 OFFSET 15 +Rendered admin/helpers/_table_header (0.1ms) + Category Load (0.4ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 19 )  + Category Load (0.5ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 20 )  + Category Load (0.5ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 21 )  + Category Load (0.5ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 22 )  + Category Load (0.3ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 23 )  + Category Load (0.3ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 24 )  +Rendered admin/helpers/_pagination (0.8ms) +Rendered admin/helpers/_header (0.2ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/helpers/_flash_message (0.1ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 129ms (View: 100, DB: 4) | 200 OK [http://localhost/admin/photos?page=2&sort_order=desc] + + +Processing Admin::PhotosController#new (for 127.0.0.1 at 2010-10-10 11:44:25) [GET] + Parameters: {"action"=>"new", "controller"=>"admin/photos"} + TypusUser Load (0.5ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  +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.6ms) +Rendered admin/templates/_text (0.5ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/resources/_form (8.0ms) +Rendered admin/helpers/_header (0.2ms) +Rendered admin/helpers/_login_info (0.4ms) +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-10 11:44:29) [POST] + Parameters: {"photo"=>{"photo"=>#, "title"=>"", "flickr_url"=>"", "sort"=>"", "description"=>""}, "commit"=>"Create Photo", "action"=>"create", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "controller"=>"admin/photos"} + TypusUser Load (0.6ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101010-6110-4hhab7-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101010-6110-4hhab7-0.jpg[0]' -resize "x308" -crop "308x308+147+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101010-6110-4hhab7-020101010-6110-w3qmu1-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101010-6110-4hhab7-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101010-6110-4hhab7-0.jpg[0]' -resize "1024x1024>" '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101010-6110-4hhab7-020101010-6110-alx72q-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101010-6110-4hhab7-020101010-6110-alx72q-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101010-6110-4hhab7-020101010-6110-alx72q-0[0]' -resize "x224" -crop "224x224+107+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101010-6110-4hhab7-020101010-6110-alx72q-020101010-6110-4vzp15-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101010-6110-4hhab7-020101010-6110-alx72q-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101010-6110-4hhab7-020101010-6110-alx72q-0[0]' -resize "x140" -crop "140x140+67+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101010-6110-4hhab7-020101010-6110-alx72q-020101010-6110-1rl749k-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101010-6110-4hhab7-020101010-6110-alx72q-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101010-6110-4hhab7-020101010-6110-alx72q-0[0]' -resize "x84" -crop "84x84+40+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101010-6110-4hhab7-020101010-6110-alx72q-020101010-6110-t3n77n-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101010-6110-4hhab7-020101010-6110-alx72q-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101010-6110-4hhab7-020101010-6110-alx72q-0[0]' -resize "x56" -crop "56x56+26+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101010-6110-4hhab7-020101010-6110-alx72q-020101010-6110-1rcu0ei-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101010-6110-4hhab7-020101010-6110-alx72q-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101010-6110-4hhab7-020101010-6110-alx72q-0[0]' -resize "x476" -crop "476x476+227+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101010-6110-4hhab7-020101010-6110-alx72q-020101010-6110-1vr8goa-0' 2>/dev/null + Photo Create (0.4ms) INSERT 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-10 15:44:30', '', '', 'Croagh Patrick Sunset.jpg', '2010-10-10 15:44:30', 'image/jpeg', '2010-10-10 15:44:29', '', NULL) + Photo Update (0.2ms) UPDATE "photos" SET "updated_at" = '2010-10-10 15:44:30', "created_at" = '2010-10-10 15:44:30', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-10 15:44:29', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 27 +[paperclip] Saving attachments. +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/27/size11/Croagh Patrick Sunset.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/27/original/Croagh Patrick Sunset.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/27/size8/Croagh Patrick Sunset.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/27/size5/Croagh Patrick Sunset.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/27/size3/Croagh Patrick Sunset.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/27/size2/Croagh Patrick Sunset.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/27/size17/Croagh Patrick Sunset.jpg +[paperclip] Saving attachments. +Redirected to http://localhost:3000/admin/photos/edit/27 +Completed in 1651ms (DB: 1) | 302 Found [http://localhost/admin/photos/create] + + +Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-10 11:44:30) [GET] + Parameters: {"action"=>"edit", "id"=>"27", "controller"=>"admin/photos"} + TypusUser Load (0.7ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."id" = 27)  +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 (6.4ms) +Rendered admin/templates/_string (0.9ms) +Rendered admin/templates/_string (0.8ms) +Rendered admin/templates/_text (0.6ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/resources/_form (13.6ms) + SQL (0.2ms) SELECT count(*) AS count_all FROM "categories"  + Category Load (0.8ms) SELECT * FROM "categories"  + Category Load (0.2ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 27 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 27)  + SQL (0.2ms) SELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 27 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 27)  + Category Load (0.2ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 27 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_header (0.3ms) +Rendered admin/helpers/_login_info (0.5ms) +Rendered admin/helpers/_flash_message (0.1ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 149ms (View: 40, DB: 3) | 200 OK [http://localhost/admin/photos/edit/27] + + +Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-10 11:44:33) [GET] + Parameters: {"action"=>"index", "controller"=>"admin/photos"} + TypusUser Load (0.7ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + SQL (0.2ms) SELECT count(*) AS count_all FROM "photos"  +Rendering template within layouts/admin +Rendering admin/resources/index +Rendered admin/helpers/_list (0.1ms) +Rendered admin/helpers/_search (0.6ms) + Photo Load (1.5ms) SELECT "photos".* FROM "photos" ORDER BY photos.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_table_header (0.1ms) + Category Load (0.5ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 1 )  + Category Load (0.4ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 2 )  + Category Load (0.4ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 3 )  + Category Load (0.5ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 4 )  + Category Load (0.4ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 5 )  + Category Load (0.3ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 6 )  + Category Load (0.4ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 7 )  + Category Load (0.3ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 8 )  + Category Load (0.3ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 10 )  + Category Load (0.3ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 11 )  + Category Load (0.3ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 12 )  + Category Load (0.3ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 13 )  + Category Load (0.3ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 14 )  + Category Load (0.3ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 17 )  + Category Load (0.3ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 18 )  +Rendered admin/helpers/_pagination (0.5ms) +Rendered admin/helpers/_header (0.2ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 148ms (View: 120, DB: 7) | 200 OK [http://localhost/admin/photos] + + +Processing PagesController#index (for 127.0.0.1 at 2010-10-10 11:44:49) [GET] + Photo Load (0.7ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 1 +Rendering template within layouts/photos +Rendering pages/index +Completed in 41ms (View: 34, DB: 1) | 200 OK [http://localhost/] + + +Processing PagesController#index (for 127.0.0.1 at 2010-10-10 11:44:50) [GET] + Photo Load (0.7ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 1 +Rendering template within layouts/photos +Rendering pages/index +Completed in 14ms (View: 6, DB: 1) | 200 OK [http://localhost/] + + +Processing PagesController#index (for 127.0.0.1 at 2010-10-10 11:44:52) [GET] + Photo Load (0.6ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 1 +Rendering template within layouts/photos +Rendering pages/index +Completed in 12ms (View: 6, DB: 1) | 200 OK [http://localhost/] + + +Processing PagesController#index (for 127.0.0.1 at 2010-10-10 11:44:53) [GET] + Photo Load (0.7ms) SELECT * FROM "photos" ORDER BY RANDOM() LIMIT 1 +Rendering template within layouts/photos +Rendering pages/index +Completed in 15ms (View: 7, DB: 1) | 200 OK [http://localhost/] diff --git a/public/images/me.jpg b/public/images/me.jpg new file mode 100644 index 0000000..11249be Binary files /dev/null and b/public/images/me.jpg differ diff --git a/public/index.html_ b/public/index.html_ new file mode 100644 index 0000000..0dd5189 --- /dev/null +++ b/public/index.html_ @@ -0,0 +1,275 @@ + + + + + Ruby on Rails: Welcome aboard + + + + + + +
+ + +
+ + + + +
+

Getting started

+

Here’s how to get rolling:

+ +
    +
  1. +

    Use script/generate to create your models and controllers

    +

    To see all available options, run it without parameters.

    +
  2. + +
  3. +

    Set up a default route and remove or rename this file

    +

    Routes are set up in config/routes.rb.

    +
  4. + +
  5. +

    Create your database

    +

    Run rake db:migrate to create your database. If you're not using SQLite (the default), edit config/database.yml with your username and password.

    +
  6. +
+
+
+ + +
+ + \ No newline at end of file diff --git a/public/stylesheets/photos.css b/public/stylesheets/photos.css index 6ca7ea0..efb972b 100644 --- a/public/stylesheets/photos.css +++ b/public/stylesheets/photos.css @@ -1,23 +1,38 @@ body { - background: black; + background: #101010; color: white; font-family: "Helvetica Neue", "Arial", "Helvatica", sans-serif; font-size: 14px; + overflow: hidden; } a { text-decoration: none; } +#page { + position: absolute; + top: 40%; + margin-top: -230px; + width: 100%; +} #container { padding-top: 20px; } #wrapper { - background: black; + background: #101010; } #header { position: relative; background: #0082bf; height: 308px; } +#header a { + display: block; + height: 308px; + width: 308px; +} +#header a:hover { + background: rgba(255,255,255,0.1); +} #header h1 { padding: 0; margin: 0; @@ -25,10 +40,27 @@ a { bottom: 15px; right: 20px; } +#footer { + background: #333; + color: black; + text-align: right; + height: 28px; +} +#footer p { + margin: 0 10px; +} +.sg-5, .sg-7, .sg-11, .sg-17, .sg-35 { + -moz-border-radius: 2px; + -webkit-border-radius: 2px; + border-radius: 2px; +} .sg-5 { height: 140px; } .sg-5 a { + position: relative; + display: block; + color: white; height: 140px; width: 140px; } @@ -36,9 +68,38 @@ a { height: 196px; } .sg-7 a { + position: relative; + display: block; + color: white; height: 196px; width: 196px; } +.sg-11 { + height: 308px; +} +.sg-17 { + height: 476px; +} +.about { + background-color: #99BF00; +} +.portfolio { + background-color: #C03232; +} +.contact { + background-color: #777; +} +.about a:focus, .portfolio a:focus, .contact a:focus { + background: rgba(255,255,255,0.1); +} +.about a:hover, .portfolio a:hover, .contact a:hover { + background: rgba(255,255,255,0.2); +} +.about a div, .portfolio a div, .contact a div { + position: absolute; + top: 10px; + right: 20px; +} .category { position: relative; } @@ -49,7 +110,8 @@ a { } .category a .arrow { position: absolute; - bottom: 10px; + font-size: 2em; + bottom: 20px; left: 20px; } .category a:focus, .photo a:focus { @@ -75,23 +137,17 @@ a { img { } .page-links { - background: #c03232; + background: #666; } .prev-link, .next-link { color: white; + font-size: 2em; position: relative; display: block; - width: 70px !important; -} -.prev-link { - float: left; -} -.next-link { - float: right; } .prev-link div, .next-link div { position: absolute; - bottom: 10px; + bottom: 15px; } .prev-link div { left: 20px; diff --git a/test/functional/pages_controller_test.rb b/test/functional/pages_controller_test.rb new file mode 100644 index 0000000..5ad8c34 --- /dev/null +++ b/test/functional/pages_controller_test.rb @@ -0,0 +1,8 @@ +require 'test_helper' + +class PagesControllerTest < ActionController::TestCase + # Replace this with your real tests. + test "the truth" do + assert true + end +end diff --git a/test/unit/helpers/pages_helper_test.rb b/test/unit/helpers/pages_helper_test.rb new file mode 100644 index 0000000..535dfe1 --- /dev/null +++ b/test/unit/helpers/pages_helper_test.rb @@ -0,0 +1,4 @@ +require 'test_helper' + +class PagesHelperTest < ActionView::TestCase +end