From 023a119160ecdb9bab5cb3e14eb2239b2ae54a71 Mon Sep 17 00:00:00 2001 From: Dan Barber Date: Sat, 9 Oct 2010 08:28:42 -0400 Subject: [PATCH] Photos are now paginated. Admin is handled by Typus, including file uploads. Exif reading isn't working when uploading via Typus though. --- .gitignore | 1 + .../admin/categories_controller.rb | 4 + app/controllers/admin/photos_controller.rb | 4 + .../admin/typus_users_controller.rb | 4 + app/controllers/photos_controller.rb | 6 +- app/models/category.rb | 2 +- app/models/photo.rb | 8 +- app/views/categories/index.html.erb | 13 +- app/views/layouts/photos.html.erb | 6 +- app/views/photos/index.html.erb | 33 +- app/views/photos/new.html.erb | 4 - config/environment.rb | 2 + config/initializers/typus.rb | 26 + config/routes.rb | 1 + config/typus/README | 71 + config/typus/application.yml | 26 + config/typus/application_roles.yml | 7 + config/typus/typus.yml | 17 + config/typus/typus_roles.yml | 6 + db/development.sqlite3 | Bin 12288 -> 20480 bytes .../20101008172319_move_to_many_to_many.rb | 14 + .../20101008175640_create_typus_users.rb | 22 + db/schema.rb | 22 +- log/development.log | 10746 ++++++++++++++++ public/images/admin/fancybox/blank.gif | Bin 0 -> 43 bytes public/images/admin/fancybox/fancy_close.png | Bin 0 -> 1517 bytes .../images/admin/fancybox/fancy_loading.png | Bin 0 -> 10195 bytes .../images/admin/fancybox/fancy_nav_left.png | Bin 0 -> 1446 bytes .../images/admin/fancybox/fancy_nav_right.png | Bin 0 -> 1454 bytes .../images/admin/fancybox/fancy_shadow_e.png | Bin 0 -> 107 bytes .../images/admin/fancybox/fancy_shadow_n.png | Bin 0 -> 106 bytes .../images/admin/fancybox/fancy_shadow_ne.png | Bin 0 -> 347 bytes .../images/admin/fancybox/fancy_shadow_nw.png | Bin 0 -> 324 bytes .../images/admin/fancybox/fancy_shadow_s.png | Bin 0 -> 111 bytes .../images/admin/fancybox/fancy_shadow_se.png | Bin 0 -> 352 bytes .../images/admin/fancybox/fancy_shadow_sw.png | Bin 0 -> 340 bytes .../images/admin/fancybox/fancy_shadow_w.png | Bin 0 -> 103 bytes .../admin/fancybox/fancy_title_left.png | Bin 0 -> 503 bytes .../admin/fancybox/fancy_title_main.png | Bin 0 -> 96 bytes .../admin/fancybox/fancy_title_over.png | Bin 0 -> 70 bytes .../admin/fancybox/fancy_title_right.png | Bin 0 -> 506 bytes public/images/admin/ui-icons.png | Bin 0 -> 5355 bytes public/javascripts/admin/application.js | 2 + public/javascripts/admin/jquery-1.4.1.min.js | 152 + .../admin/jquery.fancybox-1.3.0.pack.js | 43 + .../admin/jquery.fancybox-1.3.0.css | 333 + public/stylesheets/admin/reset.css | 68 + public/stylesheets/admin/screen.css | 369 + public/stylesheets/photos.css | 46 +- .../admin/categories_controller_test.rb | 11 + .../admin/photos_controller_test.rb | 11 + .../admin/typus_users_controller_test.rb | 11 + vendor/plugins/typus/CHANGES | 68 + vendor/plugins/typus/MIT-LICENSE | 20 + vendor/plugins/typus/README.rdoc | 49 + vendor/plugins/typus/Rakefile | 57 + .../controllers/admin/master_controller.rb | 401 + .../typus/app/controllers/typus_controller.rb | 146 + .../typus/app/helpers/admin/form_helper.rb | 464 + .../typus/app/helpers/admin/master_helper.rb | 63 + .../typus/app/helpers/admin/public_helper.rb | 19 + .../typus/app/helpers/admin/sidebar_helper.rb | 238 + .../typus/app/helpers/admin/table_helper.rb | 261 + .../plugins/typus/app/helpers/typus_helper.rb | 101 + .../plugins/typus/app/models/typus_mailer.rb | 12 + vendor/plugins/typus/app/models/typus_user.rb | 8 + .../views/admin/dashboard/_sidebar.html.erb | 5 + .../admin/helpers/_applications.html.erb | 39 + .../app/views/admin/helpers/_date.html.erb | 26 + .../_display_link_to_previous.html.erb | 3 + .../admin/helpers/_flash_message.html.erb | 3 + .../app/views/admin/helpers/_header.html.erb | 13 + .../app/views/admin/helpers/_list.html.erb | 11 + .../views/admin/helpers/_login_info.html.erb | 4 + .../views/admin/helpers/_pagination.html.erb | 15 + .../app/views/admin/helpers/_preview.html.erb | 13 + .../views/admin/helpers/_quick_edit.html.erb | 3 + .../helpers/_remove_filter_link.html.erb | 1 + .../views/admin/helpers/_resources.html.erb | 14 + .../app/views/admin/helpers/_search.html.erb | 8 + .../admin/helpers/_table_header.html.erb | 5 + .../app/views/admin/resources/_form.html.erb | 12 + .../app/views/admin/resources/edit.html.erb | 25 + .../app/views/admin/resources/index.html.erb | 21 + .../app/views/admin/resources/new.html.erb | 22 + .../app/views/admin/resources/show.html.erb | 45 + .../app/views/admin/shared/_footer.html.erb | 1 + .../views/admin/templates/_boolean.html.erb | 4 + .../app/views/admin/templates/_date.html.erb | 9 + .../views/admin/templates/_datetime.html.erb | 9 + .../app/views/admin/templates/_file.html.erb | 19 + .../views/admin/templates/_password.html.erb | 4 + .../views/admin/templates/_selector.html.erb | 9 + .../views/admin/templates/_string.html.erb | 22 + .../app/views/admin/templates/_text.html.erb | 9 + .../app/views/admin/templates/_time.html.erb | 9 + .../typus/app/views/layouts/admin.html.erb | 69 + .../typus/app/views/layouts/typus.html.erb | 33 + .../typus/app/views/typus/dashboard.html.erb | 9 + .../app/views/typus/recover_password.html.erb | 16 + .../app/views/typus/reset_password.html.erb | 25 + .../typus/app/views/typus/sign_in.html.erb | 21 + .../typus/app/views/typus/sign_up.html.erb | 16 + .../typus_mailer/reset_password_link.erb | 6 + vendor/plugins/typus/config/locales/ca.yml | 118 + vendor/plugins/typus/config/locales/de.yml | 118 + vendor/plugins/typus/config/locales/es.yml | 118 + vendor/plugins/typus/config/locales/fr.yml | 118 + vendor/plugins/typus/config/locales/hu.yml | 128 + .../config/locales/language.yml.template | 118 + .../typus/config/locales/models/README.md | 8 + .../typus/config/locales/models/ca_models.yml | 16 + .../typus/config/locales/models/de_models.yml | 13 + .../typus/config/locales/models/es_models.yml | 13 + .../typus/config/locales/models/fr_models.yml | 13 + .../typus/config/locales/models/hu_models.yml | 13 + .../config/locales/models/pt-BR_models.yml | 13 + .../typus/config/locales/models/ru_models.yml | 17 + vendor/plugins/typus/config/locales/pt-BR.yml | 118 + vendor/plugins/typus/config/locales/ru.yml | 118 + vendor/plugins/typus/generators/typus/USAGE | 13 + .../generators/typus/lib/insert_commands.rb | 41 + .../typus/generators/typus/lib/string.rb | 5 + .../typus/generators/typus/templates/README | 44 + .../typus/templates/config/typus/README | 71 + .../templates/config/typus/application.yml | 5 + .../config/typus/application_roles.yml | 6 + .../typus/templates/config/typus/typus.yml | 17 + .../templates/config/typus/typus_roles.yml | 6 + .../generators/typus/templates/controller.rb | 4 + .../typus/templates/functional_test.rb | 11 + .../generators/typus/templates/initializer.rb | 26 + .../generators/typus/templates/migration.rb | 22 + .../typus/generators/typus/templates/model.rb | 8 + .../public/images/admin/fancybox/blank.gif | Bin 0 -> 43 bytes .../images/admin/fancybox/fancy_close.png | Bin 0 -> 1517 bytes .../images/admin/fancybox/fancy_loading.png | Bin 0 -> 10195 bytes .../images/admin/fancybox/fancy_nav_left.png | Bin 0 -> 1446 bytes .../images/admin/fancybox/fancy_nav_right.png | Bin 0 -> 1454 bytes .../images/admin/fancybox/fancy_shadow_e.png | Bin 0 -> 107 bytes .../images/admin/fancybox/fancy_shadow_n.png | Bin 0 -> 106 bytes .../images/admin/fancybox/fancy_shadow_ne.png | Bin 0 -> 347 bytes .../images/admin/fancybox/fancy_shadow_nw.png | Bin 0 -> 324 bytes .../images/admin/fancybox/fancy_shadow_s.png | Bin 0 -> 111 bytes .../images/admin/fancybox/fancy_shadow_se.png | Bin 0 -> 352 bytes .../images/admin/fancybox/fancy_shadow_sw.png | Bin 0 -> 340 bytes .../images/admin/fancybox/fancy_shadow_w.png | Bin 0 -> 103 bytes .../admin/fancybox/fancy_title_left.png | Bin 0 -> 503 bytes .../admin/fancybox/fancy_title_main.png | Bin 0 -> 96 bytes .../admin/fancybox/fancy_title_over.png | Bin 0 -> 70 bytes .../admin/fancybox/fancy_title_right.png | Bin 0 -> 506 bytes .../public/images/admin/ui-icons.png | Bin 0 -> 5355 bytes .../public/javascripts/admin/application.js | 2 + .../javascripts/admin/jquery-1.4.1.min.js | 152 + .../admin/jquery.fancybox-1.3.0.pack.js | 43 + .../admin/jquery.fancybox-1.3.0.css | 333 + .../public/stylesheets/admin/reset.css | 68 + .../public/stylesheets/admin/screen.css | 369 + .../generators/typus/templates/view.html.erb | 11 + .../typus/generators/typus/typus_generator.rb | 269 + .../templates/config/typus.yml | 12 + .../templates/migration.rb | 11 + .../typus_update_schema_to_01_generator.rb | 19 + .../templates/migration.rb | 11 + .../typus_update_schema_to_02_generator.rb | 11 + vendor/plugins/typus/init.rb | 3 + .../typus/lib/extensions/active_record.rb | 63 + vendor/plugins/typus/lib/extensions/array.rb | 13 + vendor/plugins/typus/lib/extensions/hash.rb | 8 + vendor/plugins/typus/lib/extensions/object.rb | 21 + vendor/plugins/typus/lib/extensions/string.rb | 27 + vendor/plugins/typus/lib/tasks/defaults.rake | 25 + vendor/plugins/typus/lib/typus.rb | 116 + .../plugins/typus/lib/typus/active_record.rb | 315 + .../plugins/typus/lib/typus/authentication.rb | 135 + .../plugins/typus/lib/typus/configuration.rb | 83 + vendor/plugins/typus/lib/typus/format.rb | 81 + vendor/plugins/typus/lib/typus/preferences.rb | 11 + vendor/plugins/typus/lib/typus/quick_edit.rb | 40 + vendor/plugins/typus/lib/typus/reloader.rb | 14 + vendor/plugins/typus/lib/typus/routes.rb | 37 + vendor/plugins/typus/lib/typus/user.rb | 162 + vendor/plugins/typus/lib/typus/version.rb | 3 + .../plugins/typus/lib/vendor/inherit_views.rb | 202 + vendor/plugins/typus/lib/vendor/paginator.rb | 143 + .../typus/test/config/broken/application.yml | 68 + .../test/config/broken/application_roles.yml | 20 + .../typus/test/config/broken/empty.yml | 0 .../typus/test/config/broken/empty_roles.yml | 0 .../typus/test/config/broken/undefined.yml | 3 + .../test/config/broken/undefined_roles.yml | 6 + .../typus/test/config/default/typus.yml | 12 + .../typus/test/config/default/typus_roles.yml | 2 + .../typus/test/config/empty/empty_01.yml | 0 .../test/config/empty/empty_01_roles.yml | 0 .../typus/test/config/empty/empty_02.yml | 0 .../test/config/empty/empty_02_roles.yml | 0 .../plugins/typus/test/config/locales/es.yml | 10 + .../typus/test/config/ordered/001_roles.yml | 2 + .../typus/test/config/ordered/002_roles.yml | 2 + .../test/config/unordered/app_one_roles.yml | 2 + .../test/config/unordered/app_two_roles.yml | 2 + .../typus/test/config/working/application.yml | 92 + .../test/config/working/application_roles.yml | 25 + .../typus/test/config/working/typus.yml | 12 + .../typus/test/config/working/typus_roles.yml | 2 + .../test/extensions/active_record_test.rb | 34 + .../typus/test/extensions/hash_test.rb | 11 + .../typus/test/extensions/string_test.rb | 55 + .../controllers/admin/assets_controller.rb | 2 + .../admin/categories_controller.rb | 2 + .../controllers/admin/comments_controller.rb | 2 + .../app/controllers/admin/pages_controller.rb | 2 + .../controllers/admin/pictures_controller.rb | 2 + .../app/controllers/admin/posts_controller.rb | 2 + .../controllers/admin/status_controller.rb | 6 + .../admin/typus_users_controller.rb | 2 + .../controllers/admin/watch_dog_controller.rb | 6 + .../typus/test/fixtures/app/models/asset.rb | 5 + .../test/fixtures/app/models/category.rb | 11 + .../typus/test/fixtures/app/models/comment.rb | 6 + .../test/fixtures/app/models/custom_user.rb | 2 + .../test/fixtures/app/models/delayed/task.rb | 5 + .../typus/test/fixtures/app/models/page.rb | 5 + .../typus/test/fixtures/app/models/picture.rb | 2 + .../typus/test/fixtures/app/models/post.rb | 19 + .../typus/test/fixtures/app/models/view.rb | 5 + .../app/views/admin/categories/_form.html.erb | 1 + .../views/admin/dashboard/_content.html.erb | 1 + .../views/admin/dashboard/_sidebar.html.erb | 1 + .../app/views/admin/pictures/_edit.html.erb | 1 + .../app/views/admin/pictures/_index.html.erb | 1 + .../app/views/admin/pictures/_new.html.erb | 1 + .../app/views/admin/pictures/_show.html.erb | 1 + .../views/admin/pictures/_sidebar.html.erb | 1 + .../app/views/admin/posts/_edit.html.erb | 1 + .../app/views/admin/posts/_index.html.erb | 1 + .../app/views/admin/posts/_new.html.erb | 1 + .../app/views/admin/posts/_show.html.erb | 1 + .../app/views/admin/posts/_sidebar.html.erb | 1 + .../views/admin/resources/_sidebar.html.erb | 1 + .../app/views/admin/shared/_footer.html.erb | 1 + .../app/views/admin/status/index.html.erb | 1 + .../admin/templates/_datepicker.html.erb | 1 + vendor/plugins/typus/test/fixtures/assets.yml | 11 + .../typus/test/fixtures/categories.yml | 14 + .../plugins/typus/test/fixtures/comments.yml | 27 + vendor/plugins/typus/test/fixtures/pages.yml | 41 + .../plugins/typus/test/fixtures/pictures.yml | 15 + vendor/plugins/typus/test/fixtures/posts.yml | 37 + .../typus/test/fixtures/typus_users.yml | 59 + .../master_controller_assets_relationships.rb | 66 + ...master_controller_categories_lists_test.rb | 64 + .../master_controller_posts_before_test.rb | 10 + .../master_controller_posts_crud_test.rb | 97 + .../master_controller_posts_formats_test.rb | 60 + .../master_controller_posts_forms_test.rb | 40 + ...aster_controller_posts_permissions_test.rb | 127 + ...ter_controller_posts_relationships_test.rb | 86 + .../admin/master_controller_posts_roles.rb | 50 + .../master_controller_posts_toggle_test.rb | 19 + .../master_controller_posts_views_test.rb | 209 + ...ster_controller_tableless_resource_test.rb | 36 + .../master_controller_typus_users_test.rb | 211 + .../test/functional/typus_controller_test.rb | 341 + vendor/plugins/typus/test/helper.rb | 51 + .../test/helpers/admin/form_helper_test.rb | 137 + .../test/helpers/admin/master_helper_test.rb | 73 + .../test/helpers/admin/public_helper_test.rb | 34 + .../test/helpers/admin/sidebar_helper_test.rb | 320 + .../test/helpers/admin/table_helper_test.rb | 266 + .../typus/test/helpers/typus_helper_test.rb | 144 + .../typus/test/lib/active_record_test.rb | 356 + .../typus/test/lib/configuration_test.rb | 92 + vendor/plugins/typus/test/lib/routes_test.rb | 71 + vendor/plugins/typus/test/lib/typus_test.rb | 69 + vendor/plugins/typus/test/schema.rb | 86 + .../typus/test/unit/typus_mailer_test.rb | 29 + vendor/plugins/typus/test/unit/typus_test.rb | 17 + .../typus/test/unit/typus_user_roles_test.rb | 97 + .../typus/test/unit/typus_user_test.rb | 179 + .../typus/test/vendor/paginator_test.rb | 138 + vendor/plugins/typus/typus.gemspec | 24 + 283 files changed, 22964 insertions(+), 30 deletions(-) create mode 100644 .gitignore create mode 100644 app/controllers/admin/categories_controller.rb create mode 100644 app/controllers/admin/photos_controller.rb create mode 100644 app/controllers/admin/typus_users_controller.rb create mode 100644 config/initializers/typus.rb create mode 100644 config/typus/README create mode 100644 config/typus/application.yml create mode 100644 config/typus/application_roles.yml create mode 100644 config/typus/typus.yml create mode 100644 config/typus/typus_roles.yml create mode 100644 db/migrate/20101008172319_move_to_many_to_many.rb create mode 100644 db/migrate/20101008175640_create_typus_users.rb create mode 100644 public/images/admin/fancybox/blank.gif create mode 100644 public/images/admin/fancybox/fancy_close.png create mode 100644 public/images/admin/fancybox/fancy_loading.png create mode 100644 public/images/admin/fancybox/fancy_nav_left.png create mode 100644 public/images/admin/fancybox/fancy_nav_right.png create mode 100644 public/images/admin/fancybox/fancy_shadow_e.png create mode 100644 public/images/admin/fancybox/fancy_shadow_n.png create mode 100644 public/images/admin/fancybox/fancy_shadow_ne.png create mode 100644 public/images/admin/fancybox/fancy_shadow_nw.png create mode 100644 public/images/admin/fancybox/fancy_shadow_s.png create mode 100644 public/images/admin/fancybox/fancy_shadow_se.png create mode 100644 public/images/admin/fancybox/fancy_shadow_sw.png create mode 100644 public/images/admin/fancybox/fancy_shadow_w.png create mode 100644 public/images/admin/fancybox/fancy_title_left.png create mode 100644 public/images/admin/fancybox/fancy_title_main.png create mode 100644 public/images/admin/fancybox/fancy_title_over.png create mode 100644 public/images/admin/fancybox/fancy_title_right.png create mode 100644 public/images/admin/ui-icons.png create mode 100644 public/javascripts/admin/application.js create mode 100644 public/javascripts/admin/jquery-1.4.1.min.js create mode 100644 public/javascripts/admin/jquery.fancybox-1.3.0.pack.js create mode 100644 public/stylesheets/admin/jquery.fancybox-1.3.0.css create mode 100644 public/stylesheets/admin/reset.css create mode 100644 public/stylesheets/admin/screen.css create mode 100644 test/functional/admin/categories_controller_test.rb create mode 100644 test/functional/admin/photos_controller_test.rb create mode 100644 test/functional/admin/typus_users_controller_test.rb create mode 100644 vendor/plugins/typus/CHANGES create mode 100644 vendor/plugins/typus/MIT-LICENSE create mode 100644 vendor/plugins/typus/README.rdoc create mode 100644 vendor/plugins/typus/Rakefile create mode 100644 vendor/plugins/typus/app/controllers/admin/master_controller.rb create mode 100644 vendor/plugins/typus/app/controllers/typus_controller.rb create mode 100644 vendor/plugins/typus/app/helpers/admin/form_helper.rb create mode 100644 vendor/plugins/typus/app/helpers/admin/master_helper.rb create mode 100644 vendor/plugins/typus/app/helpers/admin/public_helper.rb create mode 100644 vendor/plugins/typus/app/helpers/admin/sidebar_helper.rb create mode 100644 vendor/plugins/typus/app/helpers/admin/table_helper.rb create mode 100644 vendor/plugins/typus/app/helpers/typus_helper.rb create mode 100644 vendor/plugins/typus/app/models/typus_mailer.rb create mode 100644 vendor/plugins/typus/app/models/typus_user.rb create mode 100644 vendor/plugins/typus/app/views/admin/dashboard/_sidebar.html.erb create mode 100644 vendor/plugins/typus/app/views/admin/helpers/_applications.html.erb create mode 100644 vendor/plugins/typus/app/views/admin/helpers/_date.html.erb create mode 100644 vendor/plugins/typus/app/views/admin/helpers/_display_link_to_previous.html.erb create mode 100644 vendor/plugins/typus/app/views/admin/helpers/_flash_message.html.erb create mode 100644 vendor/plugins/typus/app/views/admin/helpers/_header.html.erb create mode 100644 vendor/plugins/typus/app/views/admin/helpers/_list.html.erb create mode 100644 vendor/plugins/typus/app/views/admin/helpers/_login_info.html.erb create mode 100644 vendor/plugins/typus/app/views/admin/helpers/_pagination.html.erb create mode 100644 vendor/plugins/typus/app/views/admin/helpers/_preview.html.erb create mode 100644 vendor/plugins/typus/app/views/admin/helpers/_quick_edit.html.erb create mode 100644 vendor/plugins/typus/app/views/admin/helpers/_remove_filter_link.html.erb create mode 100644 vendor/plugins/typus/app/views/admin/helpers/_resources.html.erb create mode 100644 vendor/plugins/typus/app/views/admin/helpers/_search.html.erb create mode 100644 vendor/plugins/typus/app/views/admin/helpers/_table_header.html.erb create mode 100644 vendor/plugins/typus/app/views/admin/resources/_form.html.erb create mode 100644 vendor/plugins/typus/app/views/admin/resources/edit.html.erb create mode 100644 vendor/plugins/typus/app/views/admin/resources/index.html.erb create mode 100644 vendor/plugins/typus/app/views/admin/resources/new.html.erb create mode 100644 vendor/plugins/typus/app/views/admin/resources/show.html.erb create mode 100644 vendor/plugins/typus/app/views/admin/shared/_footer.html.erb create mode 100644 vendor/plugins/typus/app/views/admin/templates/_boolean.html.erb create mode 100644 vendor/plugins/typus/app/views/admin/templates/_date.html.erb create mode 100644 vendor/plugins/typus/app/views/admin/templates/_datetime.html.erb create mode 100644 vendor/plugins/typus/app/views/admin/templates/_file.html.erb create mode 100644 vendor/plugins/typus/app/views/admin/templates/_password.html.erb create mode 100644 vendor/plugins/typus/app/views/admin/templates/_selector.html.erb create mode 100644 vendor/plugins/typus/app/views/admin/templates/_string.html.erb create mode 100644 vendor/plugins/typus/app/views/admin/templates/_text.html.erb create mode 100644 vendor/plugins/typus/app/views/admin/templates/_time.html.erb create mode 100644 vendor/plugins/typus/app/views/layouts/admin.html.erb create mode 100644 vendor/plugins/typus/app/views/layouts/typus.html.erb create mode 100644 vendor/plugins/typus/app/views/typus/dashboard.html.erb create mode 100644 vendor/plugins/typus/app/views/typus/recover_password.html.erb create mode 100644 vendor/plugins/typus/app/views/typus/reset_password.html.erb create mode 100644 vendor/plugins/typus/app/views/typus/sign_in.html.erb create mode 100644 vendor/plugins/typus/app/views/typus/sign_up.html.erb create mode 100644 vendor/plugins/typus/app/views/typus_mailer/reset_password_link.erb create mode 100644 vendor/plugins/typus/config/locales/ca.yml create mode 100644 vendor/plugins/typus/config/locales/de.yml create mode 100644 vendor/plugins/typus/config/locales/es.yml create mode 100644 vendor/plugins/typus/config/locales/fr.yml create mode 100644 vendor/plugins/typus/config/locales/hu.yml create mode 100644 vendor/plugins/typus/config/locales/language.yml.template create mode 100644 vendor/plugins/typus/config/locales/models/README.md create mode 100644 vendor/plugins/typus/config/locales/models/ca_models.yml create mode 100644 vendor/plugins/typus/config/locales/models/de_models.yml create mode 100644 vendor/plugins/typus/config/locales/models/es_models.yml create mode 100644 vendor/plugins/typus/config/locales/models/fr_models.yml create mode 100644 vendor/plugins/typus/config/locales/models/hu_models.yml create mode 100644 vendor/plugins/typus/config/locales/models/pt-BR_models.yml create mode 100644 vendor/plugins/typus/config/locales/models/ru_models.yml create mode 100644 vendor/plugins/typus/config/locales/pt-BR.yml create mode 100644 vendor/plugins/typus/config/locales/ru.yml create mode 100644 vendor/plugins/typus/generators/typus/USAGE create mode 100644 vendor/plugins/typus/generators/typus/lib/insert_commands.rb create mode 100644 vendor/plugins/typus/generators/typus/lib/string.rb create mode 100644 vendor/plugins/typus/generators/typus/templates/README create mode 100644 vendor/plugins/typus/generators/typus/templates/config/typus/README create mode 100644 vendor/plugins/typus/generators/typus/templates/config/typus/application.yml create mode 100644 vendor/plugins/typus/generators/typus/templates/config/typus/application_roles.yml create mode 100644 vendor/plugins/typus/generators/typus/templates/config/typus/typus.yml create mode 100644 vendor/plugins/typus/generators/typus/templates/config/typus/typus_roles.yml create mode 100644 vendor/plugins/typus/generators/typus/templates/controller.rb create mode 100644 vendor/plugins/typus/generators/typus/templates/functional_test.rb create mode 100644 vendor/plugins/typus/generators/typus/templates/initializer.rb create mode 100644 vendor/plugins/typus/generators/typus/templates/migration.rb create mode 100644 vendor/plugins/typus/generators/typus/templates/model.rb create mode 100755 vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/blank.gif create mode 100755 vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_close.png create mode 100755 vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_loading.png create mode 100755 vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_nav_left.png create mode 100755 vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_nav_right.png create mode 100755 vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_shadow_e.png create mode 100755 vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_shadow_n.png create mode 100755 vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_shadow_ne.png create mode 100755 vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_shadow_nw.png create mode 100755 vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_shadow_s.png create mode 100755 vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_shadow_se.png create mode 100755 vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_shadow_sw.png create mode 100755 vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_shadow_w.png create mode 100755 vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_title_left.png create mode 100755 vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_title_main.png create mode 100755 vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_title_over.png create mode 100755 vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_title_right.png create mode 100755 vendor/plugins/typus/generators/typus/templates/public/images/admin/ui-icons.png create mode 100644 vendor/plugins/typus/generators/typus/templates/public/javascripts/admin/application.js create mode 100644 vendor/plugins/typus/generators/typus/templates/public/javascripts/admin/jquery-1.4.1.min.js create mode 100755 vendor/plugins/typus/generators/typus/templates/public/javascripts/admin/jquery.fancybox-1.3.0.pack.js create mode 100755 vendor/plugins/typus/generators/typus/templates/public/stylesheets/admin/jquery.fancybox-1.3.0.css create mode 100644 vendor/plugins/typus/generators/typus/templates/public/stylesheets/admin/reset.css create mode 100644 vendor/plugins/typus/generators/typus/templates/public/stylesheets/admin/screen.css create mode 100644 vendor/plugins/typus/generators/typus/templates/view.html.erb create mode 100644 vendor/plugins/typus/generators/typus/typus_generator.rb create mode 100644 vendor/plugins/typus/generators/typus_update_schema_to_01/templates/config/typus.yml create mode 100644 vendor/plugins/typus/generators/typus_update_schema_to_01/templates/migration.rb create mode 100644 vendor/plugins/typus/generators/typus_update_schema_to_01/typus_update_schema_to_01_generator.rb create mode 100644 vendor/plugins/typus/generators/typus_update_schema_to_02/templates/migration.rb create mode 100644 vendor/plugins/typus/generators/typus_update_schema_to_02/typus_update_schema_to_02_generator.rb create mode 100644 vendor/plugins/typus/init.rb create mode 100644 vendor/plugins/typus/lib/extensions/active_record.rb create mode 100644 vendor/plugins/typus/lib/extensions/array.rb create mode 100644 vendor/plugins/typus/lib/extensions/hash.rb create mode 100644 vendor/plugins/typus/lib/extensions/object.rb create mode 100644 vendor/plugins/typus/lib/extensions/string.rb create mode 100644 vendor/plugins/typus/lib/tasks/defaults.rake create mode 100644 vendor/plugins/typus/lib/typus.rb create mode 100644 vendor/plugins/typus/lib/typus/active_record.rb create mode 100644 vendor/plugins/typus/lib/typus/authentication.rb create mode 100644 vendor/plugins/typus/lib/typus/configuration.rb create mode 100644 vendor/plugins/typus/lib/typus/format.rb create mode 100644 vendor/plugins/typus/lib/typus/preferences.rb create mode 100644 vendor/plugins/typus/lib/typus/quick_edit.rb create mode 100644 vendor/plugins/typus/lib/typus/reloader.rb create mode 100644 vendor/plugins/typus/lib/typus/routes.rb create mode 100644 vendor/plugins/typus/lib/typus/user.rb create mode 100644 vendor/plugins/typus/lib/typus/version.rb create mode 100644 vendor/plugins/typus/lib/vendor/inherit_views.rb create mode 100644 vendor/plugins/typus/lib/vendor/paginator.rb create mode 100644 vendor/plugins/typus/test/config/broken/application.yml create mode 100644 vendor/plugins/typus/test/config/broken/application_roles.yml create mode 100644 vendor/plugins/typus/test/config/broken/empty.yml create mode 100644 vendor/plugins/typus/test/config/broken/empty_roles.yml create mode 100644 vendor/plugins/typus/test/config/broken/undefined.yml create mode 100644 vendor/plugins/typus/test/config/broken/undefined_roles.yml create mode 100644 vendor/plugins/typus/test/config/default/typus.yml create mode 100644 vendor/plugins/typus/test/config/default/typus_roles.yml create mode 100644 vendor/plugins/typus/test/config/empty/empty_01.yml create mode 100644 vendor/plugins/typus/test/config/empty/empty_01_roles.yml create mode 100644 vendor/plugins/typus/test/config/empty/empty_02.yml create mode 100644 vendor/plugins/typus/test/config/empty/empty_02_roles.yml create mode 100644 vendor/plugins/typus/test/config/locales/es.yml create mode 100644 vendor/plugins/typus/test/config/ordered/001_roles.yml create mode 100644 vendor/plugins/typus/test/config/ordered/002_roles.yml create mode 100644 vendor/plugins/typus/test/config/unordered/app_one_roles.yml create mode 100644 vendor/plugins/typus/test/config/unordered/app_two_roles.yml create mode 100644 vendor/plugins/typus/test/config/working/application.yml create mode 100644 vendor/plugins/typus/test/config/working/application_roles.yml create mode 100644 vendor/plugins/typus/test/config/working/typus.yml create mode 100644 vendor/plugins/typus/test/config/working/typus_roles.yml create mode 100644 vendor/plugins/typus/test/extensions/active_record_test.rb create mode 100644 vendor/plugins/typus/test/extensions/hash_test.rb create mode 100644 vendor/plugins/typus/test/extensions/string_test.rb create mode 100644 vendor/plugins/typus/test/fixtures/app/controllers/admin/assets_controller.rb create mode 100644 vendor/plugins/typus/test/fixtures/app/controllers/admin/categories_controller.rb create mode 100644 vendor/plugins/typus/test/fixtures/app/controllers/admin/comments_controller.rb create mode 100644 vendor/plugins/typus/test/fixtures/app/controllers/admin/pages_controller.rb create mode 100644 vendor/plugins/typus/test/fixtures/app/controllers/admin/pictures_controller.rb create mode 100644 vendor/plugins/typus/test/fixtures/app/controllers/admin/posts_controller.rb create mode 100644 vendor/plugins/typus/test/fixtures/app/controllers/admin/status_controller.rb create mode 100644 vendor/plugins/typus/test/fixtures/app/controllers/admin/typus_users_controller.rb create mode 100644 vendor/plugins/typus/test/fixtures/app/controllers/admin/watch_dog_controller.rb create mode 100644 vendor/plugins/typus/test/fixtures/app/models/asset.rb create mode 100644 vendor/plugins/typus/test/fixtures/app/models/category.rb create mode 100644 vendor/plugins/typus/test/fixtures/app/models/comment.rb create mode 100644 vendor/plugins/typus/test/fixtures/app/models/custom_user.rb create mode 100644 vendor/plugins/typus/test/fixtures/app/models/delayed/task.rb create mode 100644 vendor/plugins/typus/test/fixtures/app/models/page.rb create mode 100644 vendor/plugins/typus/test/fixtures/app/models/picture.rb create mode 100644 vendor/plugins/typus/test/fixtures/app/models/post.rb create mode 100644 vendor/plugins/typus/test/fixtures/app/models/view.rb create mode 100644 vendor/plugins/typus/test/fixtures/app/views/admin/categories/_form.html.erb create mode 100644 vendor/plugins/typus/test/fixtures/app/views/admin/dashboard/_content.html.erb create mode 100644 vendor/plugins/typus/test/fixtures/app/views/admin/dashboard/_sidebar.html.erb create mode 100644 vendor/plugins/typus/test/fixtures/app/views/admin/pictures/_edit.html.erb create mode 100644 vendor/plugins/typus/test/fixtures/app/views/admin/pictures/_index.html.erb create mode 100644 vendor/plugins/typus/test/fixtures/app/views/admin/pictures/_new.html.erb create mode 100644 vendor/plugins/typus/test/fixtures/app/views/admin/pictures/_show.html.erb create mode 100644 vendor/plugins/typus/test/fixtures/app/views/admin/pictures/_sidebar.html.erb create mode 100644 vendor/plugins/typus/test/fixtures/app/views/admin/posts/_edit.html.erb create mode 100644 vendor/plugins/typus/test/fixtures/app/views/admin/posts/_index.html.erb create mode 100644 vendor/plugins/typus/test/fixtures/app/views/admin/posts/_new.html.erb create mode 100644 vendor/plugins/typus/test/fixtures/app/views/admin/posts/_show.html.erb create mode 100644 vendor/plugins/typus/test/fixtures/app/views/admin/posts/_sidebar.html.erb create mode 100644 vendor/plugins/typus/test/fixtures/app/views/admin/resources/_sidebar.html.erb create mode 100644 vendor/plugins/typus/test/fixtures/app/views/admin/shared/_footer.html.erb create mode 100644 vendor/plugins/typus/test/fixtures/app/views/admin/status/index.html.erb create mode 100644 vendor/plugins/typus/test/fixtures/app/views/admin/templates/_datepicker.html.erb create mode 100644 vendor/plugins/typus/test/fixtures/assets.yml create mode 100644 vendor/plugins/typus/test/fixtures/categories.yml create mode 100644 vendor/plugins/typus/test/fixtures/comments.yml create mode 100644 vendor/plugins/typus/test/fixtures/pages.yml create mode 100644 vendor/plugins/typus/test/fixtures/pictures.yml create mode 100644 vendor/plugins/typus/test/fixtures/posts.yml create mode 100644 vendor/plugins/typus/test/fixtures/typus_users.yml create mode 100644 vendor/plugins/typus/test/functional/admin/master_controller_assets_relationships.rb create mode 100644 vendor/plugins/typus/test/functional/admin/master_controller_categories_lists_test.rb create mode 100644 vendor/plugins/typus/test/functional/admin/master_controller_posts_before_test.rb create mode 100644 vendor/plugins/typus/test/functional/admin/master_controller_posts_crud_test.rb create mode 100644 vendor/plugins/typus/test/functional/admin/master_controller_posts_formats_test.rb create mode 100644 vendor/plugins/typus/test/functional/admin/master_controller_posts_forms_test.rb create mode 100644 vendor/plugins/typus/test/functional/admin/master_controller_posts_permissions_test.rb create mode 100644 vendor/plugins/typus/test/functional/admin/master_controller_posts_relationships_test.rb create mode 100644 vendor/plugins/typus/test/functional/admin/master_controller_posts_roles.rb create mode 100644 vendor/plugins/typus/test/functional/admin/master_controller_posts_toggle_test.rb create mode 100644 vendor/plugins/typus/test/functional/admin/master_controller_posts_views_test.rb create mode 100644 vendor/plugins/typus/test/functional/admin/master_controller_tableless_resource_test.rb create mode 100644 vendor/plugins/typus/test/functional/admin/master_controller_typus_users_test.rb create mode 100644 vendor/plugins/typus/test/functional/typus_controller_test.rb create mode 100644 vendor/plugins/typus/test/helper.rb create mode 100644 vendor/plugins/typus/test/helpers/admin/form_helper_test.rb create mode 100644 vendor/plugins/typus/test/helpers/admin/master_helper_test.rb create mode 100644 vendor/plugins/typus/test/helpers/admin/public_helper_test.rb create mode 100644 vendor/plugins/typus/test/helpers/admin/sidebar_helper_test.rb create mode 100644 vendor/plugins/typus/test/helpers/admin/table_helper_test.rb create mode 100644 vendor/plugins/typus/test/helpers/typus_helper_test.rb create mode 100644 vendor/plugins/typus/test/lib/active_record_test.rb create mode 100644 vendor/plugins/typus/test/lib/configuration_test.rb create mode 100644 vendor/plugins/typus/test/lib/routes_test.rb create mode 100644 vendor/plugins/typus/test/lib/typus_test.rb create mode 100644 vendor/plugins/typus/test/schema.rb create mode 100644 vendor/plugins/typus/test/unit/typus_mailer_test.rb create mode 100644 vendor/plugins/typus/test/unit/typus_test.rb create mode 100644 vendor/plugins/typus/test/unit/typus_user_roles_test.rb create mode 100644 vendor/plugins/typus/test/unit/typus_user_test.rb create mode 100644 vendor/plugins/typus/test/vendor/paginator_test.rb create mode 100644 vendor/plugins/typus/typus.gemspec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c52204d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +public/system diff --git a/app/controllers/admin/categories_controller.rb b/app/controllers/admin/categories_controller.rb new file mode 100644 index 0000000..4c2af1e --- /dev/null +++ b/app/controllers/admin/categories_controller.rb @@ -0,0 +1,4 @@ +# Controller generated by Typus, use it to extend admin functionality. +class Admin::CategoriesController < Admin::MasterController + +end diff --git a/app/controllers/admin/photos_controller.rb b/app/controllers/admin/photos_controller.rb new file mode 100644 index 0000000..c54d227 --- /dev/null +++ b/app/controllers/admin/photos_controller.rb @@ -0,0 +1,4 @@ +# Controller generated by Typus, use it to extend admin functionality. +class Admin::PhotosController < Admin::MasterController + +end diff --git a/app/controllers/admin/typus_users_controller.rb b/app/controllers/admin/typus_users_controller.rb new file mode 100644 index 0000000..be79387 --- /dev/null +++ b/app/controllers/admin/typus_users_controller.rb @@ -0,0 +1,4 @@ +# Controller generated by Typus, use it to extend admin functionality. +class Admin::TypusUsersController < Admin::MasterController + +end diff --git a/app/controllers/photos_controller.rb b/app/controllers/photos_controller.rb index 97975e0..fec4440 100644 --- a/app/controllers/photos_controller.rb +++ b/app/controllers/photos_controller.rb @@ -7,9 +7,11 @@ class PhotosController < ApplicationController def index if params[:category_id] @category = Category.find_by_id(params[:category_id]) - @photos = Photo.find(:all, :conditions => { :category_id => params[:category_id] }) + @photos = @category.photos.paginate :page => params[:page], :per_page => 11 + @num_photos = @photos.count else - @photos = Photo.find(:all) + @photos = Photo.paginate :all, :page => params[:page], :per_page => 11 + @num_photos = @photos.count end end diff --git a/app/models/category.rb b/app/models/category.rb index d82bca1..12ce4f1 100644 --- a/app/models/category.rb +++ b/app/models/category.rb @@ -1,3 +1,3 @@ class Category < ActiveRecord::Base - has_many :photos + has_and_belongs_to_many :photos end diff --git a/app/models/photo.rb b/app/models/photo.rb index 698a23d..e10f915 100644 --- a/app/models/photo.rb +++ b/app/models/photo.rb @@ -1,7 +1,7 @@ require 'exifr' class Photo < ActiveRecord::Base - belongs_to :category + has_and_belongs_to_many :categories has_attached_file :photo, :styles => { :original => "1024x1024>", :size11 => "308x308#", @@ -10,9 +10,9 @@ class Photo < ActiveRecord::Base :size3 => "84x84#", :size2 => "56x56#" } - validates_presence_of :category - - before_post_process :get_exif + after_create :get_exif + + @@per_page = 11 private def get_exif diff --git a/app/views/categories/index.html.erb b/app/views/categories/index.html.erb index 28add6b..969db18 100644 --- a/app/views/categories/index.html.erb +++ b/app/views/categories/index.html.erb @@ -1,14 +1,11 @@ + +
<% @categories.each do |category| %> -
-
- <%= link_to '

'+h(category.name.downcase)+'

', category_photos_path(category) %> -
-
+
+ <%= link_to '

'+h(category.name.downcase)+'

', category_photos_path(category) %> +
<% end %> -
-
-
diff --git a/app/views/layouts/photos.html.erb b/app/views/layouts/photos.html.erb index 12b5341..56109a2 100644 --- a/app/views/layouts/photos.html.erb +++ b/app/views/layouts/photos.html.erb @@ -13,10 +13,12 @@
+ +
- + - <%= yield %> + <%= yield %>
diff --git a/app/views/photos/index.html.erb b/app/views/photos/index.html.erb index 607e77e..77c2878 100644 --- a/app/views/photos/index.html.erb +++ b/app/views/photos/index.html.erb @@ -1,11 +1,40 @@ +
+
+ +
+ +
+ <% if @category %>
-

<%=h @category.name.downcase %>

+ <%= link_to '

'+h(@category.name.downcase)+'

', categories_url %> +
+<% else %> +
+

all photos

<% end %> +<% @num_blank = 11 - @num_photos -%> + <% @photos.each do |photo| %> -
<%= link_to ' ', photo.photo.url, :rel => 'photo', :class => 'fancy' %>
+
+ <%= link_to ' ', photo.photo.url, :rel => 'photo', :class => 'fancy' %> +
<% end %> + +<% @num_blank.times do %> +
+
+<% end %> + +
diff --git a/app/views/photos/new.html.erb b/app/views/photos/new.html.erb index 64a130a..757fff7 100644 --- a/app/views/photos/new.html.erb +++ b/app/views/photos/new.html.erb @@ -6,10 +6,6 @@ <%= f.label :image_file %>:
<%= f.file_field :photo %>

-

- <%= f.label :category %> - <%= f.select :category_id, @categories %> -

<%= submit_tag 'Upload' %>

diff --git a/config/environment.rb b/config/environment.rb index 2d8f930..42318dd 100644 --- a/config/environment.rb +++ b/config/environment.rb @@ -19,6 +19,8 @@ Rails::Initializer.run do |config| # config.gem "hpricot", :version => '0.6', :source => "http://code.whytheluckystiff.net" # config.gem "sqlite3-ruby", :lib => "sqlite3" # config.gem "aws-s3", :lib => "aws/s3" + config.gem "exifr" + config.gem "will_paginate" # Only load the plugins named here, in the order given (default is alphabetical). # :all can be used as a placeholder for all plugins not explicitly named diff --git a/config/initializers/typus.rb b/config/initializers/typus.rb new file mode 100644 index 0000000..24e8cb7 --- /dev/null +++ b/config/initializers/typus.rb @@ -0,0 +1,26 @@ +# Be sure to restart your server when you modify this file. + +# System wide options + +Typus::Configuration.options[:app_name] = 'photos' +# Typus::Configuration.options[:email] = 'admin@example.com' +# Typus::Configuration.options[:file_preview] = :typus_preview +# Typus::Configuration.options[:file_thumbnail] = :typus_thumbnail +# Typus::Configuration.options[:relationship] = 'typus_users' +# Typus::Configuration.options[:root] = 'admin' +Typus::Configuration.options[:user_class_name] = 'TypusUser' +Typus::Configuration.options[:user_fk] = 'typus_user_id' + +# Model options which can also be defined by model on the yaml files. + +# Typus::Configuration.options[:default_action_on_item] = 'edit' +# Typus::Configuration.options[:end_year] = Time.now.year + 1 +# Typus::Configuration.options[:form_rows] = 15 +# Typus::Configuration.options[:index_after_save] = true +# Typus::Configuration.options[:minute_step] = 5 +# Typus::Configuration.options[:nil] = 'nil' +# Typus::Configuration.options[:on_header] = false +# Typus::Configuration.options[:only_user_items] = false +# Typus::Configuration.options[:per_page] = 15 +# Typus::Configuration.options[:sidebar_selector] = 5 +# Typus::Configuration.options[:start_year] = Time.now.year - 10 diff --git a/config/routes.rb b/config/routes.rb index 5b8ff67..700386f 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,4 +1,5 @@ ActionController::Routing::Routes.draw do |map| + Typus::Routes.draw(map) # The priority is based upon order of creation: first created -> highest priority. # Sample of regular route: diff --git a/config/typus/README b/config/typus/README new file mode 100644 index 0000000..558295c --- /dev/null +++ b/config/typus/README @@ -0,0 +1,71 @@ +# Models + +This is an example of a **Typus** enabled model with all available +options. You can use this example to customize your YAML files which +only have set the most common settings. + + Post: + fields: + list: id, title, category_id, created_at, is_published? + form: title, body, is_published?, created_at + show: title, category, is_published? + relationship: title, status + options: + auto_generated: + booleans: + is_published: ["Yes, it is", "No, it isn't"] + date_formats: + created_at: post_long + selectors: + read_only: + filter_by_date_range: valid_until + templates: + body: rich_text + actions: + index: cleanup + edit: send_as_newsletter + show: rebuild + export: csv, xml, pdf + order_by: created_at + relationships: + filters: is_published?, created_at, category_id + search: title, body + application: Application + description: Some text to describe the model + options: + default_action_on_item: show + end_year: 2015 + form_rows: 25 + index_after_save: false + minute_step: 15 + nil: 'nil' + on_header: true + only_user_items: true + per_page: 5 + sidebar_selector: 5 + start_year: 1990 + +Note: To define namespace models use :: as a separator. (i.e. Delayed::Job) + +# Roles + +In this file you can configure the actions available for each of +your models on the application. You can also use the 'all' shortcut +to allow the user the access to all actions. + + admin: + Post: create, read, update, delete + Category: create, read, update, delete + TypusUser: all + + editor: + Post: create, read, update + Category: read, update + +You can also define `resources` which are not related to a model, +for example to control MemCached or see the Starling queue +statistics. + + admin: + Starling: index + MemCached: index, cleanup diff --git a/config/typus/application.yml b/config/typus/application.yml new file mode 100644 index 0000000..be62e57 --- /dev/null +++ b/config/typus/application.yml @@ -0,0 +1,26 @@ +# Typus Models Configuration File +# +# Use the README file as a reference to customize settings. + +Category: + fields: + default: name, photo_id, base_colour, sort + list: name, photo_id, base_colour, sort + form: name, description, photo_id, base_colour, sort + order_by: + relationships: photos + filters: + search: name + application: photos + +Photo: + fields: + default: photo_file_name, photo_content_type, photo_file_size, photo_updated_at, title, sort + list: photo_file_name, categories, photo_content_type, photo_file_size, photo_updated_at, title, sort + form: photo, flickr_url, title, description, sort + order_by: + relationships: categories + filters: + search: title + application: photos + diff --git a/config/typus/application_roles.yml b/config/typus/application_roles.yml new file mode 100644 index 0000000..473d606 --- /dev/null +++ b/config/typus/application_roles.yml @@ -0,0 +1,7 @@ +# Typus Roles Configuration File +# +# Use the README file as a reference to customize settings. + +admin: + Category: create, read, update, delete + Photo: create, read, update, delete diff --git a/config/typus/typus.yml b/config/typus/typus.yml new file mode 100644 index 0000000..c15e30f --- /dev/null +++ b/config/typus/typus.yml @@ -0,0 +1,17 @@ +# Typus Models Configuration File +# +# Use the README file as a reference to customize settings. + +TypusUser: + fields: + default: first_name, last_name, email, role, status + list: email, role, status + form: first_name, last_name, role, email, password, password_confirmation, language + options: + selectors: role, language + booleans: + status: Active, Inactive + filters: status, role + search: first_name, last_name, email, role + application: Admin Panel + description: Admin Panel Users Administration diff --git a/config/typus/typus_roles.yml b/config/typus/typus_roles.yml new file mode 100644 index 0000000..05edc75 --- /dev/null +++ b/config/typus/typus_roles.yml @@ -0,0 +1,6 @@ +# Typus Roles Configuration File +# +# Use the README file as a reference to customize settings. + +admin: + TypusUser: all diff --git a/db/development.sqlite3 b/db/development.sqlite3 index 42c02bdc13fc7558bdd281da7839ca43d507b94e..8a6e9e7361ed91dd53286f43ac2eff67433fe60f 100644 GIT binary patch literal 20480 zcmeI3Yi!%r6@W=e)KwfSQJ!|zcD=TjCPw3!5=FhXHntPD_G+h2YNIZO&Y>jAQX`8h zNhS8WN1S3^HeiE+4Qqf6TZTOlYy%dc{gLfg`lkzu0u3-=2!<8NkNyZyYz>ADOV{pk zE_p0Il%$VsKLSvW^NELt=bU@)y}ah-y-ysOs+lUSX!??3Qi+RkJkO0#%5mJc;n)4S z7Y;%$0q^>L$FK45mpHuc=b(ecsQaXLFXHZ@NBU1$2~-u_y-pH3d09e;HED4jVvIX!yxDf-y>Q*?B0 z_VLNXaOw2;;aPh4arm8^n%YPED>bmb&`_4tetJUDOI1bRo08>0dT9KS(YdKvx@V7D zy{>!|ZC$JT&AMExOG>To^XfWnn2Oml`e{)ED@wx&sImv*Hnrnw;|>=qb@TRTOZrOF zRLcuZ#V}54I^@h#bXO2fU9G6P+9;_IiCYOmDCw%gtSI2A4ByP!k_zHhlO1@)gQvp+ z>FMj^pFd(%Z3#3MHNB=9&bO$yVx1Eot6n>66hbS5KfTs8YZ|1^RF}<WfyLRzk9k;Sz88htvBi_>6!jDyQ zOx%hu%1XUfI<7CYbZl}EOXN91dWMJj)!n{IS+LzZRe%EG4YK1ri}yC}EsO4u22X!J zN~~n`{2!CyFZFu&ZdYZcR#$J){oChD8q{;cT!8zGuPe7zEE7iU3vk|P6n1%U)feEp zkI-{K+pL-X+XzT+)t0@jZ6*@!dGJC0DJ#9kvvs)dFBs~xEvq+s4+T%f`gHfQzO)an z9E3agtE?BFzMFgT;3^4`o`;~>57!!Hb-C53K~5HoQWb8<3rn>{U12u}qeBqJB+VV3 zJTf;9!_1-adAQx(=JI~}_+i@LVT5&&6ELE&ThQRMyxsq{*j4m_5rjO|bZ6t9yLEdA z8;nC8#z>PReiUbuZRu)VV4L;|Bz1v!#^)T$$0V}D_<9RPk2pO62g(Qkxzwx7~UQF zd1#n_neXO)!WB9bP~FywAD&`BaTu95EqUsol{RhR2z zu8l^^&Q?_@i|HsWTzL}jzHv32NQYi)(H3(`5Kt; z#wMRX(c8dSVnO8edOHLrLYo7rY7|_xZ)9VdVpcVH%jhjx=vVJ}J;A+9a=MIVmWkZ0 z8=PCBw#m;4;Hk$d)Q&i};PtTa`8RzYAa=hw)=oOL@<&^Sc_ISFWy|#s>VxclWcZuKfiL@Piydu1 zgu8>Um5OO7tz~XPJ4s9M&T~m^(2A{%ZLQB8-7>UFSDRBMez+a(`jWz+h2u2*VQCjrm5wcDArj+}0arj3KXW zwT~|%*N|1@2=c}jTkkUR9C8^sgXEA`6Sn>Z<;1yNFyvR*@sfUgYI&TmKw#899UGkXJX_dKZvqkjIcYWCD4;%htby zY$7L+6nS%lt#<`^9(f8mj}(#DVz&N8#FY-pn z)<1__M$RDjB01z$-qyc>JcB%j%pnuV>zu8B33(RTL{1u`zldBzR*@sfUgV8`+WMD~=a9?D8RT9hhrIf}ecc7*8RRi!4w*n+f6vyxglr-w zkQ90IAGY2VJGI9pF7s(;7{@uRr z0`d&98}6BR`|rci4cvWkN#gF|MvI22D<#wS2$_L-+_orBVTwhDDV5|vDy=9*bu=8~ zc3anv!bBM?Gc1|#fZo=Jxe^f`RAIWwEn<)Vg>-VDSdmpxJiy1eKFh=uOo76x;HGN0 zwc%=*OZFIm7~pYS9LVR36;UK>+|Up+@CZEj!}>b<0G)x^RMTfgP8L$x)VL7iEaiJX zjQ09`Hk1Q`P8OupKq)Jg^6FS5#_h3!9;+)bWBdSpl9k>YcRJ^rX|W0}=LYg3`+??@ zv~qv2t{EzwYkIGSv?V>y^WsCH7*^JYyuylEP7h=<>0()7&;Na77f0SDe<5$fEWn%O z_v8(7nY==NLtY}kBtIoTATN?N@^x4h_#83G5~+{{GEa_>&ys`WGejo)$sR(%MDPhR z5M&_8K#+kT19yK0guXD(M|uSc;CqDo8FmVvWWt@oeSq*z;a+yML%4^X+aY{{VY{%4 z3AeMy6+W^}fWH#?=r&;|AhcE30pPa?+Zi?s+ZZ;%>wG|5*aC>eg#;kfC2VHGn6QZn zV?vxAZ4|m0x`mAZffu>}AtG!5M2Qe%=b{1uM502J2?ar5!iW%I2n%6$E-Zuq;gG-s zLOdJ)dGas^|AJ4Dfgl4x27(L(83;1)p)#;~00z))yLyH;?|%B}VM#iqG{zLY2um-@ zOR$+xX%tm;WRdOb-e1y|%v3gC&MW1tQjv;m13*^FDQZd0U4^<sXf5G}cSmJIsgS%w?pS7frjsH=Ba>O8f^lQTV!WlRSK0yY836BVo(n{Cb`5Z6mm4d2On|>b(8pzl-`=znJ=||ECdhx z?)$y-?KiV*ZB3|6uEfLdqSjyZn}KXtevW+NBEnx|$+sgeN>}Ph|8t>R85X~c#A3qd zuUD-4qNoV+)ddB+OVYCYpZs^1GK~I-B$L9ml)EJE)c^7w5km@IMfeHc!hhff{sphr z!)gt?tHCn8a~-5g2*v&@*?)MS98lYWac?;oHOq4$rTM>QV%3Jb| z+%MgeF34YrPsA?->LI-m$)g{*eUM)_fO+5uFbdo~zhn0L#EJpbGpq$o=;js|ei$p$0q;^aHnhctHcW0?Y%Wz}*1%Z2;GR zmw@BIJ|OZ)*GHS(yl@>j3CsXPz(=og-!0$`U>P_DRDt)qxc?@w20RZWlvTE;AZ)+F z3mU)`U>-OEi~@K4+`j=_16~4-1N(poxQTh)I*wG?p;~6bbhwL7Bb$_TT_2rutXy6l zw<>dmiyx~cM;|PfbA?$eXAc$2b}pE0Xe32W(m%`I%BnCVlUQf43NqktFI&%)kXn3|fg z=^V7yW{-aOSx2R@*I7TG4WZ-dv}snix4;nZHh3;xO?>i0t4+_EWG{_{c~aY;nRFrO zg`HqwXXdP&Q<|Q++}dnt^jd4Ykup=K_oM{dNUE`EES-+`AOXF@64BBjB)eD78P$xM zGR$<^G}3#8FQx20(iyvA6=qatTCL=5bv|DxtFumNVb(5HRI9?oDQn*L46TQ5Kpk}k z)%UH-&R{VXpq;Rj>C@>`3htfQzzFR`Gxbwux_P!BHJ`hek`?t*_=ISP=#E8S`#(hM z4ADA6G-EpAg{1gU5S@v3^o?QG25A`xmzs|iZ-Zp4!)&6NA4BF91PRU%LPR diff --git a/db/migrate/20101008172319_move_to_many_to_many.rb b/db/migrate/20101008172319_move_to_many_to_many.rb new file mode 100644 index 0000000..c255951 --- /dev/null +++ b/db/migrate/20101008172319_move_to_many_to_many.rb @@ -0,0 +1,14 @@ +class MoveToManyToMany < ActiveRecord::Migration + def self.up + remove_column :photos, :category_id + create_table :categories_photos, :id => false do |t| + t.integer :category_id + t.integer :photo_id + end + end + + def self.down + add_column :photos, :category_id, :integer + drop_table :categories_photos + end +end diff --git a/db/migrate/20101008175640_create_typus_users.rb b/db/migrate/20101008175640_create_typus_users.rb new file mode 100644 index 0000000..2aaccb7 --- /dev/null +++ b/db/migrate/20101008175640_create_typus_users.rb @@ -0,0 +1,22 @@ +class CreateTypusUsers < ActiveRecord::Migration + + def self.up + create_table :typus_users do |t| + t.string :first_name, :default => "", :null => false + t.string :last_name, :default => "", :null => false + t.string :role, :null => false + t.string :email, :null => false + t.boolean :status, :default => false + t.string :token, :null => false + t.string :salt, :null => false + t.string :crypted_password, :null => false + t.string :preferences + t.timestamps + end + end + + def self.down + drop_table :typus_users + end + +end diff --git a/db/schema.rb b/db/schema.rb index 53abffa..1ac47a9 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -9,7 +9,7 @@ # # It's strongly recommended to check this file into your version control system. -ActiveRecord::Schema.define(:version => 20101008122736) do +ActiveRecord::Schema.define(:version => 20101008175640) do create_table "categories", :force => true do |t| t.string "name" @@ -21,8 +21,12 @@ ActiveRecord::Schema.define(:version => 20101008122736) do t.integer "sort" end + create_table "categories_photos", :id => false, :force => true do |t| + t.integer "category_id" + t.integer "photo_id" + end + create_table "photos", :force => true do |t| - t.integer "category_id" t.string "flickr_url" t.string "photo_file_name" t.string "photo_content_type" @@ -35,4 +39,18 @@ ActiveRecord::Schema.define(:version => 20101008122736) do t.integer "sort" end + create_table "typus_users", :force => true do |t| + t.string "first_name", :default => "", :null => false + t.string "last_name", :default => "", :null => false + t.string "role", :null => false + t.string "email", :null => false + t.boolean "status", :default => false + t.string "token", :null => false + t.string "salt", :null => false + t.string "crypted_password", :null => false + t.string "preferences" + t.datetime "created_at" + t.datetime "updated_at" + end + end diff --git a/log/development.log b/log/development.log index ae59182..92ab5e8 100644 --- a/log/development.log +++ b/log/development.log @@ -5928,3 +5928,10749 @@ Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 13:13:08) [GET] Rendering template within layouts/photos Rendering photos/index Completed in 15ms (View: 7, DB: 1) | 200 OK [http://localhost/categories/1/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 13:19:37) [GET] + Parameters: {"category_id"=>"1"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1 + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."category_id" = '1')  +Rendering template within layouts/photos +Rendering photos/index +Completed in 16ms (View: 6, DB: 0) | 200 OK [http://localhost/categories/1/photos] + + +Processing ApplicationController#index (for 127.0.0.1 at 2010-10-08 13:19:37) [GET] + Parameters: {"1286541306"=>nil} + +ActionController::RoutingError (No route matches "/system/photos/20/size5/Croagh%20Patrick%20no1.jpg" with {:method=>:get}): + + +Rendering rescues/layout (not_found) + + +Processing ApplicationController#index (for 127.0.0.1 at 2010-10-08 13:19:37) [GET] + Parameters: {"1286541412"=>nil} + +ActionController::RoutingError (No route matches "/system/photos/25/size5/Croagh%20Patrick%20no3.jpg" with {:method=>:get}): + + +Rendering rescues/layout (not_found) + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 13:19:54) [GET] + Parameters: {"category_id"=>"1"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1 + Photo Load (0.4ms) SELECT * FROM "photos" WHERE ("photos"."category_id" = '1')  +Rendering template within layouts/photos +Rendering photos/index +Completed in 15ms (View: 6, DB: 1) | 200 OK [http://localhost/categories/1/photos] + + +Processing ApplicationController#index (for 127.0.0.1 at 2010-10-08 13:19:54) [GET] + Parameters: {"1286541306"=>nil} + +ActionController::RoutingError (No route matches "/system/photos/20/size5/Croagh%20Patrick%20no1.jpg" with {:method=>:get}): + + +Rendering rescues/layout (not_found) + + +Processing ApplicationController#index (for 127.0.0.1 at 2010-10-08 13:19:54) [GET] + Parameters: {"1286541412"=>nil} + +ActionController::RoutingError (No route matches "/system/photos/25/size5/Croagh%20Patrick%20no3.jpg" with {:method=>:get}): + + +Rendering rescues/layout (not_found) + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 13:20:18) [GET] + Parameters: {"category_id"=>"1"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1 + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."category_id" = '1')  +Rendering template within layouts/photos +Rendering photos/index +Completed in 15ms (View: 6, DB: 0) | 200 OK [http://localhost/categories/1/photos] + + +Processing ApplicationController#index (for 127.0.0.1 at 2010-10-08 13:20:18) [GET] + Parameters: {"1286541306"=>nil} + +ActionController::RoutingError (No route matches "/system/photos/20/size5/Croagh%20Patrick%20no1.jpg" with {:method=>:get}): + + +Rendering rescues/layout (not_found) + + +Processing ApplicationController#index (for 127.0.0.1 at 2010-10-08 13:20:18) [GET] + Parameters: {"1286541412"=>nil} + +ActionController::RoutingError (No route matches "/system/photos/25/size5/Croagh%20Patrick%20no3.jpg" with {:method=>:get}): + + +Rendering rescues/layout (not_found) + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 13:22:22) [GET] + Parameters: {"category_id"=>"1"} + Category Load (0.3ms) SELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1 + Photo Load (0.2ms) SELECT * FROM "photos" WHERE ("photos"."category_id" = '1')  +Rendering template within layouts/photos +Rendering photos/index +Completed in 12ms (View: 3, DB: 0) | 200 OK [http://localhost/categories/1/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 13:22:23) [GET] + Parameters: {"category_id"=>"4"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '4') LIMIT 1 + Photo Load (0.1ms) SELECT * FROM "photos" WHERE ("photos"."category_id" = '4')  +Rendering template within layouts/photos +Rendering photos/index +Completed in 11ms (View: 3, DB: 0) | 200 OK [http://localhost/categories/4/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 13:22:25) [GET] + Parameters: {"category_id"=>"5"} + Category Load (0.3ms) SELECT * FROM "categories" WHERE ("categories"."id" = '5') LIMIT 1 + Photo Load (0.2ms) SELECT * FROM "photos" WHERE ("photos"."category_id" = '5')  +Rendering template within layouts/photos +Rendering photos/index +Completed in 65ms (View: 3, DB: 0) | 200 OK [http://localhost/categories/5/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 13:22:26) [GET] + Parameters: {"category_id"=>"2"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '2') LIMIT 1 + Photo Load (0.1ms) SELECT * FROM "photos" WHERE ("photos"."category_id" = '2')  +Rendering template within layouts/photos +Rendering photos/index +Completed in 11ms (View: 3, DB: 0) | 200 OK [http://localhost/categories/2/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 13:22:30) [GET] + Parameters: {"category_id"=>"3"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '3') LIMIT 1 + Photo Load (0.1ms) SELECT * FROM "photos" WHERE ("photos"."category_id" = '3')  +Rendering template within layouts/photos +Rendering photos/index +Completed in 11ms (View: 3, DB: 0) | 200 OK [http://localhost/categories/3/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 13:22:33) [GET] + Parameters: {"category_id"=>"5"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '5') LIMIT 1 + Photo Load (0.1ms) SELECT * FROM "photos" WHERE ("photos"."category_id" = '5')  +Rendering template within layouts/photos +Rendering photos/index +Completed in 11ms (View: 3, DB: 0) | 200 OK [http://localhost/categories/5/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 13:22:34) [GET] + Parameters: {"category_id"=>"2"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '2') LIMIT 1 + Photo Load (0.1ms) SELECT * FROM "photos" WHERE ("photos"."category_id" = '2')  +Rendering template within layouts/photos +Rendering photos/index +Completed in 11ms (View: 3, DB: 0) | 200 OK [http://localhost/categories/2/photos] + SQL (0.4ms)  SELECT name + FROM sqlite_master + WHERE type = 'table' AND NOT name = 'sqlite_sequence' + + SQL (0.2ms) SELECT version FROM schema_migrations +Migrating to CreateCategories (20101006095323) +Migrating to CreatePhotos (20101006095457) +Migrating to AddPhotoToCategory (20101008101157) +Migrating to AddDetailsToPhoto (20101008103053) +Migrating to AddColourToCategory (20101008105348) +Migrating to AddSortOrders (20101008122736) +Migrating to MoveToManyToMany (20101008172319) + SQL (0.1ms) select sqlite_version(*) + SQL (0.8ms) CREATE TEMPORARY TABLE "altered_photos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "category_id" integer, "flickr_url" varchar(255), "photo_file_name" varchar(255), "photo_content_type" varchar(255), "photo_file_size" integer, "photo_updated_at" datetime, "created_at" datetime, "updated_at" datetime, "title" varchar(255), "description" text, "sort" integer)  + SQL (0.1ms) PRAGMA index_list("photos") + SQL (0.4ms) DROP TABLE "photos" + SQL (0.2ms) CREATE TABLE "photos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "flickr_url" varchar(255), "photo_file_name" varchar(255), "photo_content_type" varchar(255), "photo_file_size" integer, "photo_updated_at" datetime, "created_at" datetime, "updated_at" datetime, "title" varchar(255), "description" text, "sort" integer)  + SQL (0.0ms) PRAGMA index_list("altered_photos") + SQL (0.5ms) DROP TABLE "altered_photos" + SQL (0.2ms) CREATE TABLE "categories_photos" ("category_id" integer, "photo_id" integer)  + SQL (0.2ms) INSERT INTO schema_migrations (version) VALUES ('20101008172319') + SQL (0.4ms)  SELECT name + FROM sqlite_master + WHERE type = 'table' AND NOT name = 'sqlite_sequence' + + SQL (0.4ms) SELECT version FROM schema_migrations + SQL (0.2ms)  SELECT name + FROM sqlite_master + WHERE type = 'table' AND NOT name = 'sqlite_sequence' + + SQL (0.0ms) PRAGMA index_list("categories") + SQL (0.0ms) PRAGMA index_list("categories_photos") + SQL (0.0ms) PRAGMA index_list("photos") + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 13:30:06) [GET] + Category Load (1.0ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 30ms (View: 4, DB: 1) | 200 OK [http://localhost/categories] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 13:30:07) [GET] + Parameters: {"category_id"=>"1"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1 + Photo Load (0.0ms) SQLite3::SQLException: no such column: photos.category_id: SELECT * FROM "photos" WHERE ("photos"."category_id" = '1')  + +ActiveRecord::StatementInvalid (SQLite3::SQLException: no such column: photos.category_id: SELECT * FROM "photos" WHERE ("photos"."category_id" = '1') ): + app/controllers/photos_controller.rb:10:in `index' + +Rendered rescues/_trace (25.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-08 13:30:39) [GET] + Category Load (0.6ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index + +ActionView::TemplateError (undefined method `category_photos_path' for #) on line #6 of app/views/categories/index.html.erb: +3: <% @categories.each do |category| %> +4:
+5:
+6: <%= link_to '

'+h(category.name.downcase)+'

', category_photos_path(category) %> +7:
+8:
+9: <% end %> + + app/views/categories/index.html.erb:6 + app/views/categories/index.html.erb:3:in `each' + app/views/categories/index.html.erb:3 + app/controllers/categories_controller.rb:8:in `index' + +Rendered rescues/_trace (27.0ms) +Rendered rescues/_request_and_response (0.2ms) +Rendering rescues/layout (internal_server_error) + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 13:30:55) [GET] + Category Load (0.9ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 12ms (View: 5, DB: 1) | 200 OK [http://localhost/categories] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 13:37:05) [GET] + Parameters: {"category_id"=>"1"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1 + Photo Load (0.0ms) SQLite3::SQLException: no such column: photos.category_id: SELECT * FROM "photos" WHERE ("photos"."category_id" = '1')  + +ActiveRecord::StatementInvalid (SQLite3::SQLException: no such column: photos.category_id: SELECT * FROM "photos" WHERE ("photos"."category_id" = '1') ): + app/controllers/photos_controller.rb:10:in `index' + +Rendered rescues/_trace (23.7ms) +Rendered rescues/_request_and_response (0.3ms) +Rendering rescues/layout (internal_server_error) + + +Processing CategoriesController#new (for 127.0.0.1 at 2010-10-08 13:37:28) [GET] +Rendering template within layouts/photos +Rendering categories/new +Completed in 59ms (View: 52, DB: 0) | 200 OK [http://localhost/categories/new] + + +Processing PhotosController#new (for 127.0.0.1 at 2010-10-08 13:37:37) [GET] + Parameters: {"category_id"=>"1"} + Category Load (0.4ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering photos/new + +ActionView::TemplateError (undefined method `category_id' for #) on line #11 of app/views/photos/new.html.erb: +8:

+9:

+10: <%= f.label :category %> +11: <%= f.select :category_id, @categories %> +12:

+13:

+14: <%= submit_tag 'Upload' %> + + app/views/photos/new.html.erb:11 + app/views/photos/new.html.erb:3 + +Rendered rescues/_trace (27.3ms) +Rendered rescues/_request_and_response (0.3ms) +Rendering rescues/layout (internal_server_error) + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 13:43:44) [GET] + Parameters: {"category_id"=>"1"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1 + Photo Load (0.0ms) SQLite3::SQLException: no such column: photos.category_id: SELECT * FROM "photos" WHERE ("photos"."category_id" = '1')  + +ActiveRecord::StatementInvalid (SQLite3::SQLException: no such column: photos.category_id: SELECT * FROM "photos" WHERE ("photos"."category_id" = '1') ): + app/controllers/photos_controller.rb:10:in `index' + +Rendered rescues/_trace (26.3ms) +Rendered rescues/_request_and_response (0.3ms) +Rendering rescues/layout (internal_server_error) + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 13:44:17) [GET] + Parameters: {"category_id"=>"1"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1 + SQL (0.2ms)  SELECT name + FROM sqlite_master + WHERE type = 'table' AND NOT name = 'sqlite_sequence' + + +NoMethodError (undefined method `photos' for #): + app/controllers/photos_controller.rb:10:in `index' + +Rendered rescues/_trace (22.1ms) +Rendered rescues/_request_and_response (0.3ms) +Rendering rescues/layout (internal_server_error) + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 13:44:23) [GET] + Parameters: {"category_id"=>"1"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1 + SQL (0.3ms)  SELECT name + FROM sqlite_master + WHERE type = 'table' AND NOT name = 'sqlite_sequence' + + +NoMethodError (undefined method `Photos' for #): + app/controllers/photos_controller.rb:10:in `index' + +Rendered rescues/_trace (21.4ms) +Rendered rescues/_request_and_response (0.5ms) +Rendering rescues/layout (internal_server_error) + + +Processing PhotosController#new (for 127.0.0.1 at 2010-10-08 13:45:07) [GET] + Category Load (0.5ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering photos/new + +ActionView::TemplateError (undefined method `category_id' for #) on line #11 of app/views/photos/new.html.erb: +8:

+9:

+10: <%= f.label :category %> +11: <%= f.select :category_id, @categories %> +12:

+13:

+14: <%= submit_tag 'Upload' %> + + app/views/photos/new.html.erb:11 + app/views/photos/new.html.erb:3 + +Rendered rescues/_trace (28.8ms) +Rendered rescues/_request_and_response (0.3ms) +Rendering rescues/layout (internal_server_error) + + +Processing PhotosController#new (for 127.0.0.1 at 2010-10-08 13:45:21) [GET] + Category Load (0.3ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering photos/new +Completed in 17ms (View: 7, DB: 0) | 200 OK [http://localhost/photos/new] + + +Processing PhotosController#create (for 127.0.0.1 at 2010-10-08 13:45:30) [POST] + Parameters: {"photo"=>{"photo"=>#}, "commit"=>"Upload", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw="} +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-75171-h4ufqz-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-75171-h4ufqz-0.jpg[0]' -resize "x224" -crop "224x224+64+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-75171-h4ufqz-020101008-75171-4yfw10-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-75171-h4ufqz-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-75171-h4ufqz-0.jpg[0]' -resize "x140" -crop "140x140+40+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-75171-h4ufqz-020101008-75171-l494ib-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-75171-h4ufqz-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-75171-h4ufqz-0.jpg[0]' -resize "x84" -crop "84x84+24+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-75171-h4ufqz-020101008-75171-12wfkj4-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-75171-h4ufqz-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-75171-h4ufqz-0.jpg[0]' -resize "x56" -crop "56x56+16+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-75171-h4ufqz-020101008-75171-znukmm-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-75171-h4ufqz-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-75171-h4ufqz-0.jpg[0]' -resize "1024x1024>" '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-75171-h4ufqz-020101008-75171-voxm2b-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-75171-h4ufqz-020101008-75171-voxm2b-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-75171-h4ufqz-020101008-75171-voxm2b-0[0]' -resize "x308" -crop "308x308+88+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-75171-h4ufqz-020101008-75171-voxm2b-020101008-75171-1tusyfy-0' 2>/dev/null + Photo Create (0.7ms) 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(113067, '2010-10-08 17:45:34', NULL, NULL, 'Buttercup.jpg', '2010-10-08 17:45:34', 'image/jpeg', '2010-10-08 17:45:30', NULL, NULL) +[paperclip] Saving attachments. +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/1/size8/Buttercup.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/1/size5/Buttercup.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/1/size3/Buttercup.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/1/size2/Buttercup.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/1/original/Buttercup.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/1/size11/Buttercup.jpg +Redirected to http://localhost:3000/photos/1 +Completed in 4110ms (DB: 1) | 302 Found [http://localhost/photos] + + +Processing PhotosController#show (for 127.0.0.1 at 2010-10-08 13:45:34) [GET] + Parameters: {"id"=>"1"} + Photo Load (0.4ms) SELECT * FROM "photos" WHERE ("photos"."id" = 1)  +Rendering template within layouts/photos +Rendering photos/show +Completed in 25ms (View: 13, DB: 0) | 200 OK [http://localhost/photos/1] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 13:45:36) [GET] + Photo Load (0.5ms) SELECT * FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 15ms (View: 7, DB: 1) | 200 OK [http://localhost/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 13:46:57) [GET] + Photo Load (0.6ms) SELECT * FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 12ms (View: 5, DB: 1) | 200 OK [http://localhost/photos] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 13:47:00) [GET] + Category Load (0.8ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 11ms (View: 5, DB: 1) | 200 OK [http://localhost/categories] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 13:47:00) [GET] + Parameters: {"category_id"=>"1"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1 +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.2ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 )  +Completed in 12ms (View: 4, DB: 0) | 200 OK [http://localhost/categories/1/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 13:47:03) [GET] + Parameters: {"category_id"=>"2"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '2') LIMIT 1 +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.2ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 2 )  +Completed in 13ms (View: 4, DB: 0) | 200 OK [http://localhost/categories/2/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 13:47:28) [GET] + Parameters: {"category_id"=>"2"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '2') LIMIT 1 +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.2ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 2 )  +Completed in 13ms (View: 4, DB: 0) | 200 OK [http://localhost/categories/2/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 13:48:03) [GET] + Parameters: {"category_id"=>"2"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '2') LIMIT 1 +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.3ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 2 )  +Completed in 16ms (View: 7, DB: 1) | 200 OK [http://localhost/categories/2/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 13:48:16) [GET] + Parameters: {"category_id"=>"1"} + Category Load (0.3ms) SELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1 +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.2ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 )  +Completed in 12ms (View: 4, DB: 0) | 200 OK [http://localhost/categories/1/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 13:48:16) [GET] + Parameters: {"category_id"=>"2"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '2') LIMIT 1 +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.3ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 2 )  +Completed in 16ms (View: 7, DB: 1) | 200 OK [http://localhost/categories/2/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 13:48:18) [GET] + Parameters: {"category_id"=>"4"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '4') LIMIT 1 +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.2ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 4 )  +Completed in 14ms (View: 4, DB: 0) | 200 OK [http://localhost/categories/4/photos] + + +Processing ApplicationController#index (for 127.0.0.1 at 2010-10-08 13:49:03) [GET] + +ActionController::RoutingError (No route matches "/admin" with {:method=>:get}): + + +Rendering rescues/layout (not_found) + + +Processing ApplicationController#index (for 127.0.0.1 at 2010-10-08 13:49:04) [GET] + +ActionController::RoutingError (No route matches "/admin" with {:method=>:get}): + + +Rendering rescues/layout (not_found) + SQL (0.5ms)  SELECT name + FROM sqlite_master + WHERE type = 'table' AND NOT name = 'sqlite_sequence' + + SQL (0.2ms) SELECT version FROM schema_migrations +Migrating to CreateCategories (20101006095323) +Migrating to CreatePhotos (20101006095457) +Migrating to AddPhotoToCategory (20101008101157) +Migrating to AddDetailsToPhoto (20101008103053) +Migrating to AddColourToCategory (20101008105348) +Migrating to AddSortOrders (20101008122736) +Migrating to MoveToManyToMany (20101008172319) +Migrating to CreateTypusUsers (20101008175640) + SQL (0.1ms) select sqlite_version(*) + SQL (0.5ms) CREATE TABLE "typus_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255) DEFAULT '' NOT NULL, "last_name" varchar(255) DEFAULT '' NOT NULL, "role" varchar(255) NOT NULL, "email" varchar(255) NOT NULL, "status" boolean DEFAULT 'f', "token" varchar(255) NOT NULL, "salt" varchar(255) NOT NULL, "crypted_password" varchar(255) NOT NULL, "preferences" varchar(255), "created_at" datetime, "updated_at" datetime)  + SQL (0.1ms) INSERT INTO schema_migrations (version) VALUES ('20101008175640') + SQL (0.6ms)  SELECT name + FROM sqlite_master + WHERE type = 'table' AND NOT name = 'sqlite_sequence' + + SQL (0.5ms) SELECT version FROM schema_migrations + SQL (0.2ms)  SELECT name + FROM sqlite_master + WHERE type = 'table' AND NOT name = 'sqlite_sequence' + + SQL (0.0ms) PRAGMA index_list("categories") + SQL (0.0ms) PRAGMA index_list("categories_photos") + SQL (0.1ms) PRAGMA index_list("photos") + SQL (0.1ms) PRAGMA index_list("typus_users") + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 13:57:01) [GET] + Category Load (1.1ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 53ms (View: 41, DB: 1) | 200 OK [http://localhost/categories] + + +Processing TypusController#dashboard (for 127.0.0.1 at 2010-10-08 13:57:02) [GET] + Parameters: {"action"=>"dashboard", "controller"=>"typus"} +Redirected to http://localhost:3000/admin/sign_in +Filter chain halted as [:require_login] rendered_or_redirected. +Completed in 9ms (DB: 0) | 302 Found [http://localhost/admin] + + +Processing TypusController#sign_in (for 127.0.0.1 at 2010-10-08 13:57:03) [GET] + Parameters: {"action"=>"sign_in", "controller"=>"typus"} + SQL (0.7ms) SELECT count(*) AS count_all FROM "typus_users"  +Redirected to http://localhost:3000/admin/sign_up +Completed in 6ms (DB: 1) | 302 Found [http://localhost/admin/sign_in] + + +Processing TypusController#sign_up (for 127.0.0.1 at 2010-10-08 13:57:03) [GET] + Parameters: {"action"=>"sign_up", "controller"=>"typus"} + SQL (0.5ms) SELECT count(*) AS count_all FROM "typus_users"  +Rendering template within layouts/typus +Rendering typus/sign_up +Rendered admin/helpers/_flash_message (0.7ms) +Rendered admin/shared/_footer (0.8ms) +Completed in 39ms (View: 22, DB: 1) | 200 OK [http://localhost/admin/sign_up] + + +Processing TypusController#sign_up (for 127.0.0.1 at 2010-10-08 13:57:08) [POST] + Parameters: {"typus_user"=>{"email"=>"danbee@gmail.com"}, "commit"=>"Sign up", "action"=>"sign_up", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "controller"=>"typus"} + SQL (0.4ms) SELECT count(*) AS count_all FROM "typus_users"  + TypusUser Load (0.1ms) SELECT "typus_users".id FROM "typus_users" WHERE ("typus_users"."email" = 'danbee@gmail.com') LIMIT 1 + TypusUser Create (0.6ms) INSERT INTO "typus_users" ("salt", "created_at", "crypted_password", "token", "updated_at", "role", "preferences", "last_name", "status", "first_name", "email") VALUES('1008738aece694bfc08606cc2e63c5589f7d7d88', '2010-10-08 17:57:08', '1291b8154b8fc809c2660c8418913cd8d87f9aa0', '279d9ad7af3b', '2010-10-08 17:57:08', 'admin', '--- +:locale: en +', '', 't', '', 'danbee@gmail.com') +Redirected to http://localhost:3000/admin +Completed in 69ms (DB: 1) | 302 Found [http://localhost/admin/sign_up] + + +Processing TypusController#dashboard (for 127.0.0.1 at 2010-10-08 13:57:08) [GET] + Parameters: {"action"=>"dashboard", "controller"=>"typus"} + TypusUser Load (0.5ms) 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.2ms) +Rendered admin/helpers/_header (1.0ms) +Rendered admin/helpers/_login_info (1.0ms) +Rendered admin/helpers/_flash_message (0.1ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 140ms (View: 135, DB: 1) | 200 OK [http://localhost/admin] + + +Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-08 13:57:16) [GET] + Parameters: {"action"=>"index", "controller"=>"admin/photos"} + TypusUser Load (0.5ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + SQL (0.3ms) SELECT count(*) AS count_all FROM "photos"  +Rendering template within layouts/admin +Rendering admin/resources/index +Rendered admin/helpers/_list (0.7ms) +Rendered admin/helpers/_search (1.2ms) + Photo Load (0.5ms) SELECT "photos".* FROM "photos" ORDER BY photos.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_table_header (0.5ms) +Rendered admin/helpers/_header (0.2ms) +Rendered admin/helpers/_login_info (0.5ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 143ms (View: 119, DB: 1) | 200 OK [http://localhost/admin/photos] + + +Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 13:57:19) [GET] + Parameters: {"action"=>"edit", "id"=>"1", "controller"=>"admin/photos"} + TypusUser Load (0.7ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."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.8ms) +Rendered admin/templates/_string (0.9ms) +Rendered admin/templates/_string (0.8ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_datetime (5.2ms) +Rendered admin/templates/_string (1.1ms) +Rendered admin/templates/_text (1.2ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/resources/_form (27.3ms) + SQL (0.2ms) SELECT count(*) AS count_all FROM "categories"  + Category Load (0.4ms) 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 = 1 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 1)  + SQL (0.4ms) SELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 1 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."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 = 1 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_table_header (0.1ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 149ms (View: 125, DB: 2) | 200 OK [http://localhost/admin/photos/edit/1] + + +Processing Admin::TypusUsersController#index (for 127.0.0.1 at 2010-10-08 13:57:31) [GET] + Parameters: {"action"=>"index", "controller"=>"admin/typus_users"} + TypusUser Load (0.5ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + SQL (0.2ms) SELECT count(*) AS count_all FROM "typus_users"  +Rendering template within layouts/admin +Rendering admin/resources/index +Rendered admin/helpers/_list (0.1ms) +Rendered admin/helpers/_search (0.5ms) +Rendered admin/helpers/_list (0.1ms) +Rendered admin/helpers/_list (0.1ms) + TypusUser Load (0.3ms) SELECT "typus_users".* FROM "typus_users" ORDER BY typus_users.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_table_header (0.1ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.3ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 33ms (View: 19, DB: 1) | 200 OK [http://localhost/admin/typus_users] + + +Processing Admin::TypusUsersController#edit (for 127.0.0.1 at 2010-10-08 13:57:32) [GET] + Parameters: {"action"=>"edit", "id"=>"1", "controller"=>"admin/typus_users"} + TypusUser Load (0.7ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + CACHE (0.0ms) SELECT * FROM "typus_users" WHERE ("typus_users"."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 (0.7ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_selector (0.9ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_password (0.9ms) +Rendered admin/templates/_password (0.4ms) +Rendered admin/templates/_selector (0.5ms) +Rendered admin/resources/_form (13.6ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.3ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 106ms (View: 88, DB: 1) | 200 OK [http://localhost/admin/typus_users/edit/1] + + +Processing Admin::TypusUsersController#update (for 127.0.0.1 at 2010-10-08 13:57:46) [PUT] + Parameters: {"typus_user"=>{"password_confirmation"=>"[FILTERED]", "language"=>"en", "role"=>"admin", "last_name"=>"Barber", "password"=>"[FILTERED]", "email"=>"danbee@gmail.com", "first_name"=>"Dan"}, "commit"=>"Save Typus user", "action"=>"update", "_method"=>"put", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "id"=>"1", "controller"=>"admin/typus_users"} + TypusUser Load (0.5ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + CACHE (0.0ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + TypusUser Load (0.1ms) SELECT "typus_users".id FROM "typus_users" WHERE ("typus_users"."email" = 'danbee@gmail.com' AND "typus_users".id <> 1) LIMIT 1 + TypusUser Update (0.3ms) UPDATE "typus_users" SET "updated_at" = '2010-10-08 17:57:46', "last_name" = 'Barber', "first_name" = 'Dan', "preferences" = '--- +:locale: en +', "crypted_password" = 'dc1b7dd577a5504bed755ca0526026210e605239' WHERE "id" = 1 + TypusUser Load (0.3ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  +Redirected to http://localhost:3000/admin/typus_users/edit/1 +Completed in 21ms (DB: 1) | 302 Found [http://localhost/admin/typus_users/update/1] + + +Processing Admin::TypusUsersController#edit (for 127.0.0.1 at 2010-10-08 13:57:46) [GET] + Parameters: {"action"=>"edit", "id"=>"1", "controller"=>"admin/typus_users"} + TypusUser Load (0.5ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + CACHE (0.0ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  +Rendering template within layouts/admin +Rendering admin/resources/edit +Rendered admin/helpers/_list (0.1ms) +Rendered admin/helpers/_search (0.5ms) +Rendered admin/templates/_string (0.8ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_selector (0.3ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/templates/_password (0.4ms) +Rendered admin/templates/_password (0.5ms) +Rendered admin/templates/_selector (0.5ms) +Rendered admin/resources/_form (7.8ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.3ms) +Rendered admin/helpers/_flash_message (0.1ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 102ms (View: 84, DB: 1) | 200 OK [http://localhost/admin/typus_users/edit/1] + + +Processing TypusController#dashboard (for 127.0.0.1 at 2010-10-08 13:57:51) [GET] + Parameters: {"action"=>"dashboard", "controller"=>"typus"} + TypusUser Load (0.5ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  +Rendering template within layouts/admin +Rendering typus/dashboard +Rendered admin/dashboard/_sidebar (0.2ms) +Rendered admin/helpers/_applications (2.0ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.3ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 25ms (View: 21, DB: 0) | 200 OK [http://localhost/admin] + + +Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-08 13:57:52) [GET] + Parameters: {"action"=>"index", "controller"=>"admin/photos"} + 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.4ms) + Photo Load (0.3ms) SELECT "photos".* FROM "photos" ORDER BY photos.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_table_header (0.1ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.3ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 96ms (View: 17, DB: 1) | 200 OK [http://localhost/admin/photos] + + +Processing Admin::PhotosController#new (for 127.0.0.1 at 2010-10-08 13:57:54) [GET] + Parameters: {"action"=>"new", "controller"=>"admin/photos"} + 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/_string (1.7ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/templates/_string (0.8ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_datetime (3.6ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_text (0.4ms) +Rendered admin/templates/_string (0.5ms) +Rendered admin/resources/_form (13.9ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 45ms (View: 27, DB: 1) | 200 OK [http://localhost/admin/photos/new] + + +Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 13:58:24) [GET] + Parameters: {"action"=>"edit", "id"=>"1", "controller"=>"admin/photos"} + TypusUser Load (0.5ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."id" = 1)  +Rendering template within layouts/admin +Rendering admin/resources/edit +Rendered admin/helpers/_list (0.1ms) +Rendered admin/helpers/_search (0.7ms) +Rendered admin/templates/_string (2.3ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_datetime (3.9ms) +Rendered admin/templates/_string (1.0ms) +Rendered admin/templates/_text (0.5ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/resources/_form (16.3ms) + SQL (0.2ms) SELECT count(*) AS count_all FROM "categories"  + Category Load (0.4ms) 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 = 1 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 1)  + 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 = 1 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."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 = 1 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_table_header (0.1ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.5ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 63ms (View: 42, DB: 2) | 200 OK [http://localhost/admin/photos/edit/1] + + +Processing PhotosController#new (for 127.0.0.1 at 2010-10-08 13:58:38) [GET] + Category Load (0.4ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering photos/new +Completed in 81ms (View: 70, DB: 0) | 200 OK [http://localhost/photos/new] + + +Processing PhotosController#create (for 127.0.0.1 at 2010-10-08 13:58:52) [POST] + Parameters: {"photo"=>{"photo"=>#}, "commit"=>"Upload", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw="} +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1ioh8wk-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1ioh8wk-0.jpg[0]' -resize "x224" -crop "224x224+43+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1ioh8wk-020101008-80675-kfbepk-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1ioh8wk-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1ioh8wk-0.jpg[0]' -resize "x140" -crop "140x140+27+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1ioh8wk-020101008-80675-q4c2n2-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1ioh8wk-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1ioh8wk-0.jpg[0]' -resize "1024x1024>" '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1ioh8wk-020101008-80675-1dcmbyz-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1ioh8wk-020101008-80675-1dcmbyz-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1ioh8wk-020101008-80675-1dcmbyz-0[0]' -resize "x84" -crop "84x84+16+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1ioh8wk-020101008-80675-1dcmbyz-020101008-80675-rfuwpp-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1ioh8wk-020101008-80675-1dcmbyz-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1ioh8wk-020101008-80675-1dcmbyz-0[0]' -resize "x56" -crop "56x56+10+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1ioh8wk-020101008-80675-1dcmbyz-020101008-80675-b76t7q-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1ioh8wk-020101008-80675-1dcmbyz-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1ioh8wk-020101008-80675-1dcmbyz-0[0]' -resize "x308" -crop "308x308+60+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1ioh8wk-020101008-80675-1dcmbyz-020101008-80675-ljnryt-0' 2>/dev/null + Photo Create (1.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(362111, '2010-10-08 17:58:55', NULL, NULL, 'Bell Tower.jpg', '2010-10-08 17:58:55', 'image/jpeg', '2010-10-08 17:58:52', 'Church of Ireland bell tower, Tourmakeady, Co. Mayo.', NULL) +[paperclip] Saving attachments. +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/2/size8/Bell Tower.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/2/size5/Bell Tower.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/2/size3/Bell Tower.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/2/original/Bell Tower.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/2/size2/Bell Tower.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/2/size11/Bell Tower.jpg +Redirected to http://localhost:3000/photos/2 +Completed in 3018ms (DB: 1) | 302 Found [http://localhost/photos] + + +Processing PhotosController#show (for 127.0.0.1 at 2010-10-08 13:58:55) [GET] + Parameters: {"id"=>"2"} + Photo Load (0.2ms) SELECT * FROM "photos" WHERE ("photos"."id" = 2)  +Rendering template within layouts/photos +Rendering photos/show +Completed in 23ms (View: 14, DB: 0) | 200 OK [http://localhost/photos/2] + + +Processing TypusController#dashboard (for 127.0.0.1 at 2010-10-08 13:58:57) [GET] + Parameters: {"action"=>"dashboard", "controller"=>"typus"} + TypusUser Load (0.5ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  +Rendering template within layouts/admin +Rendering typus/dashboard +Rendered admin/dashboard/_sidebar (0.2ms) +Rendered admin/helpers/_applications (2.2ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/helpers/_flash_message (0.1ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 31ms (View: 25, DB: 1) | 200 OK [http://localhost/admin] + + +Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-08 13:58:58) [GET] + Parameters: {"action"=>"index", "controller"=>"admin/photos"} + 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.4ms) + Photo Load (0.4ms) SELECT "photos".* FROM "photos" ORDER BY photos.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_table_header (0.1ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.3ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 41ms (View: 20, DB: 1) | 200 OK [http://localhost/admin/photos] + + +Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 13:59:02) [GET] + Parameters: {"action"=>"edit", "id"=>"2", "controller"=>"admin/photos"} + TypusUser Load (0.5ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.2ms) SELECT * FROM "photos" WHERE ("photos"."id" = 2)  +Rendering template within layouts/admin +Rendering admin/resources/edit +Rendered admin/helpers/_list (0.1ms) +Rendered admin/helpers/_search (0.5ms) +Rendered admin/templates/_string (1.8ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_datetime (3.5ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/templates/_text (0.4ms) +Rendered admin/templates/_string (55.4ms) +Rendered admin/resources/_form (68.1ms) + SQL (0.2ms) SELECT count(*) AS count_all FROM "categories"  + Category Load (0.6ms) 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 = 2 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 2)  + SQL (0.4ms) SELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 2 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 2)  + Category Load (0.2ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 2 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 115ms (View: 92, DB: 2) | 200 OK [http://localhost/admin/photos/edit/2] + + +Processing Admin::PhotosController#relate (for 127.0.0.1 at 2010-10-08 13:59:05) [POST] + Parameters: {"commit"=>"Add", "related"=>{"model"=>"Category", "relation"=>"categories", "id"=>"3"}, "action"=>"relate", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "id"=>"2", "controller"=>"admin/photos"} + TypusUser Load (0.5ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."id" = 2)  + Category Load (0.3ms) SELECT * FROM "categories" WHERE ("categories"."id" = 3)  + SQL (0.3ms) INSERT INTO "categories_photos" ("category_id", "photo_id") VALUES (3, 2) +Redirected to http://localhost:3000/admin/photos/edit/2 +Completed in 57ms (DB: 1) | 302 Found [http://localhost/admin/photos/relate/2] + + +Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 13:59:05) [GET] + Parameters: {"action"=>"edit", "id"=>"2", "controller"=>"admin/photos"} + TypusUser Load (0.5ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."id" = 2)  +Rendering template within layouts/admin +Rendering admin/resources/edit +Rendered admin/helpers/_list (0.1ms) +Rendered admin/helpers/_search (0.5ms) +Rendered admin/templates/_string (2.0ms) +Rendered admin/templates/_string (62.2ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/templates/_datetime (3.9ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/templates/_text (0.4ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/resources/_form (76.9ms) + SQL (0.2ms) SELECT count(*) AS count_all FROM "categories"  + Category Load (0.4ms) 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 = 2 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 2)  + 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 = 2 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 2)  + Category Load (0.2ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 2 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_table_header (0.1ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.5ms) +Rendered admin/helpers/_flash_message (0.1ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 125ms (View: 102, DB: 2) | 200 OK [http://localhost/admin/photos/edit/2] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 13:59:11) [GET] + Category Load (0.6ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 10ms (View: 4, DB: 1) | 200 OK [http://localhost/categories] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 13:59:14) [GET] + Parameters: {"category_id"=>"3"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '3') LIMIT 1 +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.3ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 3 )  +Completed in 21ms (View: 10, DB: 0) | 200 OK [http://localhost/categories/3/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 13:59:39) [GET] + Parameters: {"category_id"=>"1"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1 +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.2ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 )  +Completed in 68ms (View: 4, DB: 0) | 200 OK [http://localhost/categories/1/photos] + + +Processing TypusController#dashboard (for 127.0.0.1 at 2010-10-08 13:59:44) [GET] + Parameters: {"action"=>"dashboard", "controller"=>"typus"} + TypusUser Load (1.0ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  +Rendering template within layouts/admin +Rendering typus/dashboard +Rendered admin/dashboard/_sidebar (0.2ms) +Rendered admin/helpers/_applications (2.1ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/shared/_footer (0.3ms) +Completed in 30ms (View: 23, DB: 1) | 200 OK [http://localhost/admin] + + +Processing PhotosController#show (for 127.0.0.1 at 2010-10-08 14:00:33) [GET] + Parameters: {"id"=>"net"} + Photo Load (0.1ms) SELECT * FROM "photos" WHERE ("photos"."id" = 0)  + +ActiveRecord::RecordNotFound (Couldn't find Photo with ID=net): + app/controllers/photos_controller.rb:27:in `show' + +Rendered rescues/_trace (80.1ms) +Rendered rescues/_request_and_response (0.9ms) +Rendering rescues/layout (not_found) + + +Processing PhotosController#new (for 127.0.0.1 at 2010-10-08 14:00:39) [GET] + Category Load (0.4ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering photos/new +Completed in 25ms (View: 13, DB: 0) | 200 OK [http://localhost/photos/new] + + +Processing PhotosController#create (for 127.0.0.1 at 2010-10-08 14:00:58) [POST] + Parameters: {"photo"=>{"photo"=>#}, "commit"=>"Upload", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw="} +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-ctuqdx-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-ctuqdx-0.jpg[0]' -resize "x224" -crop "224x224+73+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-ctuqdx-020101008-80675-wnv00y-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-ctuqdx-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-ctuqdx-0.jpg[0]' -resize "x140" -crop "140x140+45+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-ctuqdx-020101008-80675-l8ema4-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-ctuqdx-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-ctuqdx-0.jpg[0]' -resize "1024x1024>" '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-ctuqdx-020101008-80675-gwigzu-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-ctuqdx-020101008-80675-gwigzu-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-ctuqdx-020101008-80675-gwigzu-0[0]' -resize "x84" -crop "84x84+27+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-ctuqdx-020101008-80675-gwigzu-020101008-80675-fwyl31-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-ctuqdx-020101008-80675-gwigzu-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-ctuqdx-020101008-80675-gwigzu-0[0]' -resize "x56" -crop "56x56+18+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-ctuqdx-020101008-80675-gwigzu-020101008-80675-xim15h-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-ctuqdx-020101008-80675-gwigzu-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-ctuqdx-020101008-80675-gwigzu-0[0]' -resize "x308" -crop "308x308+100+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-ctuqdx-020101008-80675-gwigzu-020101008-80675-4w1xn4-0' 2>/dev/null + 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(212862, '2010-10-08 18:01:00', NULL, NULL, 'Cross.jpg', '2010-10-08 18:01:00', 'image/jpeg', '2010-10-08 18:00:58', 'The Famine Memorial at Lough Doolough. + +"How can men feel themselves honoured by the humiliation of their fellow beings?"', NULL) +[paperclip] Saving attachments. +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/3/size8/Cross.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/3/size5/Cross.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/3/size3/Cross.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/3/original/Cross.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/3/size2/Cross.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/3/size11/Cross.jpg +Redirected to http://localhost:3000/photos/3 +Completed in 1947ms (DB: 1) | 302 Found [http://localhost/photos] + + +Processing PhotosController#show (for 127.0.0.1 at 2010-10-08 14:01:00) [GET] + Parameters: {"id"=>"3"} + Photo Load (0.5ms) SELECT * FROM "photos" WHERE ("photos"."id" = 3)  +Rendering template within layouts/photos +Rendering photos/show +Completed in 19ms (View: 8, DB: 1) | 200 OK [http://localhost/photos/3] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 14:01:06) [GET] + Category Load (1.0ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 16ms (View: 7, DB: 1) | 200 OK [http://localhost/categories] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 14:01:08) [GET] + Parameters: {"category_id"=>"1"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1 +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.2ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 )  +Completed in 14ms (View: 4, DB: 0) | 200 OK [http://localhost/categories/1/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 14:01:09) [GET] + Parameters: {"category_id"=>"4"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '4') LIMIT 1 +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.2ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 4 )  +Completed in 13ms (View: 4, DB: 0) | 200 OK [http://localhost/categories/4/photos] + + +Processing TypusController#dashboard (for 127.0.0.1 at 2010-10-08 14:01:12) [GET] + Parameters: {"action"=>"dashboard", "controller"=>"typus"} + TypusUser Load (0.5ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  +Rendering template within layouts/admin +Rendering typus/dashboard +Rendered admin/dashboard/_sidebar (0.3ms) +Rendered admin/helpers/_applications (2.2ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.5ms) +Rendered admin/helpers/_flash_message (0.1ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 33ms (View: 27, DB: 1) | 200 OK [http://localhost/admin] + + +Processing Admin::CategoriesController#index (for 127.0.0.1 at 2010-10-08 14:01:15) [GET] + Parameters: {"action"=>"index", "controller"=>"admin/categories"} + TypusUser Load (0.5ms) 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.1ms) +Rendered admin/helpers/_search (0.5ms) + 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.1ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/shared/_footer (0.4ms) +Completed in 101ms (View: 81, DB: 1) | 200 OK [http://localhost/admin/categories] + + +Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-08 14:01:18) [GET] + Parameters: {"action"=>"index", "controller"=>"admin/photos"} + 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 (0.4ms) SELECT "photos".* FROM "photos" ORDER BY photos.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_table_header (0.1ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.3ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 42ms (View: 22, DB: 1) | 200 OK [http://localhost/admin/photos] + + +Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 14:01:20) [GET] + Parameters: {"action"=>"edit", "id"=>"3", "controller"=>"admin/photos"} + TypusUser Load (0.5ms) 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.5ms) +Rendered admin/templates/_string (2.0ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/templates/_datetime (3.4ms) +Rendered admin/templates/_string (0.5ms) +Rendered admin/templates/_text (0.7ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/resources/_form (13.6ms) + SQL (0.2ms) SELECT count(*) AS count_all FROM "categories"  + Category Load (0.3ms) 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 = 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.1ms) 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/_header (0.1ms) +Rendered admin/helpers/_login_info (0.3ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 110ms (View: 33, DB: 2) | 200 OK [http://localhost/admin/photos/edit/3] + + +Processing Admin::PhotosController#relate (for 127.0.0.1 at 2010-10-08 14:01:27) [POST] + Parameters: {"commit"=>"Add", "related"=>{"model"=>"Category", "relation"=>"categories", "id"=>"4"}, "action"=>"relate", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "id"=>"3", "controller"=>"admin/photos"} + TypusUser Load (0.5ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.2ms) SELECT * FROM "photos" WHERE ("photos"."id" = 3)  + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = 4)  + SQL (0.3ms) INSERT INTO "categories_photos" ("category_id", "photo_id") VALUES (4, 3) +Redirected to http://localhost:3000/admin/photos/edit/3 +Completed in 28ms (DB: 1) | 302 Found [http://localhost/admin/photos/relate/3] + + +Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 14:01:27) [GET] + Parameters: {"action"=>"edit", "id"=>"3", "controller"=>"admin/photos"} + TypusUser Load (0.5ms) 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.5ms) +Rendered admin/templates/_string (2.0ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_string (0.8ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_datetime (3.8ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_text (0.4ms) +Rendered admin/templates/_string (0.5ms) +Rendered admin/resources/_form (13.8ms) + SQL (0.2ms) SELECT count(*) AS count_all FROM "categories"  + Category Load (0.4ms) 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 = 3 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 3)  + 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 = 3 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."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 = 3 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_table_header (0.1ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.3ms) +Rendered admin/helpers/_flash_message (0.1ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 61ms (View: 37, DB: 2) | 200 OK [http://localhost/admin/photos/edit/3] + + +Processing Admin::PhotosController#relate (for 127.0.0.1 at 2010-10-08 14:01:30) [POST] + Parameters: {"commit"=>"Add", "related"=>{"model"=>"Category", "relation"=>"categories", "id"=>"1"}, "action"=>"relate", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "id"=>"3", "controller"=>"admin/photos"} + TypusUser Load (0.5ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."id" = 3)  + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = 1)  + SQL (0.3ms) INSERT INTO "categories_photos" ("category_id", "photo_id") VALUES (1, 3) +Redirected to http://localhost:3000/admin/photos/edit/3 +Completed in 26ms (DB: 1) | 302 Found [http://localhost/admin/photos/relate/3] + + +Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 14:01:30) [GET] + Parameters: {"action"=>"edit", "id"=>"3", "controller"=>"admin/photos"} + TypusUser Load (0.5ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.4ms) 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.4ms) +Rendered admin/templates/_string (1.9ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_datetime (3.6ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_text (0.4ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/resources/_form (13.3ms) + SQL (0.2ms) SELECT count(*) AS count_all FROM "categories"  + Category Load (0.3ms) 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 = 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.3ms) 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.1ms) +Rendered admin/helpers/_login_info (0.3ms) +Rendered admin/helpers/_flash_message (0.1ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 58ms (View: 36, DB: 2) | 200 OK [http://localhost/admin/photos/edit/3] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 14:01:35) [GET] + Category Load (0.7ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 11ms (View: 4, DB: 1) | 200 OK [http://localhost/categories] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 14:01:36) [GET] + Parameters: {"category_id"=>"1"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1 +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.3ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 )  +Completed in 15ms (View: 6, DB: 0) | 200 OK [http://localhost/categories/1/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 14:01:40) [GET] + Parameters: {"category_id"=>"4"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '4') LIMIT 1 +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.3ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 4 )  +Completed in 15ms (View: 6, DB: 0) | 200 OK [http://localhost/categories/4/photos] + + +Processing TypusController#dashboard (for 127.0.0.1 at 2010-10-08 14:01:58) [GET] + Parameters: {"action"=>"dashboard", "controller"=>"typus"} + TypusUser Load (0.7ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  +Rendering template within layouts/admin +Rendering typus/dashboard +Rendered admin/dashboard/_sidebar (0.2ms) +Rendered admin/helpers/_applications (2.1ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.3ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 31ms (View: 24, DB: 1) | 200 OK [http://localhost/admin] + + +Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-08 14:02:00) [GET] + Parameters: {"action"=>"index", "controller"=>"admin/photos"} + 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.4ms) + Photo Load (0.4ms) SELECT "photos".* FROM "photos" ORDER BY photos.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_table_header (0.1ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.3ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 40ms (View: 20, DB: 1) | 200 OK [http://localhost/admin/photos] + + +Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-08 14:03:16) [GET] + Parameters: {"action"=>"index", "controller"=>"admin/photos"} + 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.4ms) + Photo Load (0.4ms) SELECT "photos".* FROM "photos" ORDER BY photos.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_table_header (0.2ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.3ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 97ms (View: 78, DB: 1) | 200 OK [http://localhost/admin/photos] + + +Processing Admin::PhotosController#new (for 127.0.0.1 at 2010-10-08 14:03:18) [GET] + Parameters: {"action"=>"new", "controller"=>"admin/photos"} + 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 (2.2ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_string (0.5ms) +Rendered admin/templates/_text (0.4ms) +Rendered admin/templates/_string (0.5ms) +Rendered admin/resources/_form (10.0ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.3ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 38ms (View: 19, DB: 1) | 200 OK [http://localhost/admin/photos/new] + + +Processing Admin::PhotosController#create (for 127.0.0.1 at 2010-10-08 14:03:42) [POST] + Parameters: {"photo"=>{"photo"=>#, "title"=>"Emerald Panarama", "flickr_url"=>"", "sort"=>"", "description"=>""}, "commit"=>"Create Photo", "action"=>"create", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "controller"=>"admin/photos"} + TypusUser Load (0.7ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1h5yz7n-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1h5yz7n-0.jpg[0]' -resize "x224" -crop "224x224+125+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1h5yz7n-020101008-80675-wdd4hg-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1h5yz7n-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1h5yz7n-0.jpg[0]' -resize "x140" -crop "140x140+78+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1h5yz7n-020101008-80675-1y78s0v-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1h5yz7n-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1h5yz7n-0.jpg[0]' -resize "1024x1024>" '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1h5yz7n-020101008-80675-1fc374j-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1h5yz7n-020101008-80675-1fc374j-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1h5yz7n-020101008-80675-1fc374j-0[0]' -resize "x84" -crop "84x84+46+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1h5yz7n-020101008-80675-1fc374j-020101008-80675-1hwxu0w-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1h5yz7n-020101008-80675-1fc374j-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1h5yz7n-020101008-80675-1fc374j-0[0]' -resize "x56" -crop "56x56+31+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1h5yz7n-020101008-80675-1fc374j-020101008-80675-2lzo4h-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1h5yz7n-020101008-80675-1fc374j-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1h5yz7n-020101008-80675-1fc374j-0[0]' -resize "x308" -crop "308x308+171+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1h5yz7n-020101008-80675-1fc374j-020101008-80675-o1k2i3-0' 2>/dev/null + 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(321666, '2010-10-08 18:03:46', 'Emerald Panarama', '', 'Emerald Panarama.jpg', '2010-10-08 18:03:46', 'image/jpeg', '2010-10-08 18:03:42', '', NULL) +[paperclip] Saving attachments. +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/4/size8/Emerald Panarama.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/4/size5/Emerald Panarama.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/4/size3/Emerald Panarama.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/4/original/Emerald Panarama.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/4/size2/Emerald Panarama.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/4/size11/Emerald Panarama.jpg +Redirected to http://localhost:3000/admin/photos/edit/4 +Completed in 4841ms (DB: 1) | 302 Found [http://localhost/admin/photos/create] + + +Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 14:03:47) [GET] + Parameters: {"action"=>"edit", "id"=>"4", "controller"=>"admin/photos"} + TypusUser Load (0.5ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.4ms) SELECT * FROM "photos" WHERE ("photos"."id" = 4)  +Rendering template within layouts/admin +Rendering admin/resources/edit +Rendered admin/helpers/_list (0.1ms) +Rendered admin/helpers/_search (0.9ms) +Rendered admin/helpers/_preview (1.0ms) +Rendered admin/templates/_file (10.2ms) +Rendered admin/templates/_string (0.8ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_text (0.5ms) +Rendered admin/templates/_string (0.5ms) +Rendered admin/resources/_form (17.4ms) + SQL (0.2ms) SELECT count(*) AS count_all FROM "categories"  + Category Load (0.3ms) 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 = 4 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 4)  + 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 = 4 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 4)  + Category Load (0.1ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 4 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.7ms) +Rendered admin/helpers/_flash_message (0.1ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 68ms (View: 41, DB: 2) | 200 OK [http://localhost/admin/photos/edit/4] + + +Processing Admin::PhotosController#show (for 127.0.0.1 at 2010-10-08 14:03:49) [GET] + Parameters: {"action"=>"show", "id"=>"4", "controller"=>"admin/photos"} + TypusUser Load (0.5ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."id" = 4)  +Rendering template within layouts/admin +Rendering admin/resources/show +Rendered admin/helpers/_list (0.1ms) +Rendered admin/helpers/_search (0.5ms) + 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 = 4 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 4)  + 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 = 4 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 4)  + Category Load (0.1ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 4 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.3ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 107ms (View: 25, DB: 2) | 200 OK [http://localhost/admin/photos/show/4] + + +Processing Admin::PhotosController#relate (for 127.0.0.1 at 2010-10-08 14:03:56) [POST] + Parameters: {"commit"=>"Add", "related"=>{"model"=>"Category", "relation"=>"categories", "id"=>"1"}, "action"=>"relate", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "id"=>"4", "controller"=>"admin/photos"} + TypusUser Load (0.5ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."id" = 4)  + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = 1)  + SQL (0.2ms) INSERT INTO "categories_photos" ("category_id", "photo_id") VALUES (1, 4) +Redirected to http://localhost:3000/admin/photos/show/4 +Completed in 29ms (DB: 1) | 302 Found [http://localhost/admin/photos/relate/4] + + +Processing Admin::PhotosController#show (for 127.0.0.1 at 2010-10-08 14:03:56) [GET] + Parameters: {"action"=>"show", "id"=>"4", "controller"=>"admin/photos"} + TypusUser Load (0.5ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.2ms) SELECT * FROM "photos" WHERE ("photos"."id" = 4)  +Rendering template within layouts/admin +Rendering admin/resources/show +Rendered admin/helpers/_list (0.1ms) +Rendered admin/helpers/_search (0.6ms) + SQL (0.2ms) SELECT count(*) AS count_all FROM "categories"  + Category Load (0.4ms) 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 = 4 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 4)  + 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 = 4 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 4)  + Category Load (0.2ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 4 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_table_header (0.1ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.3ms) +Rendered admin/helpers/_flash_message (0.1ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 108ms (View: 23, DB: 2) | 200 OK [http://localhost/admin/photos/show/4] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 14:04:01) [GET] + Category Load (0.8ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 11ms (View: 5, DB: 1) | 200 OK [http://localhost/categories] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 14:04:02) [GET] + Parameters: {"category_id"=>"1"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1 +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.4ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 )  +Completed in 99ms (View: 89, DB: 1) | 200 OK [http://localhost/categories/1/photos] + + +Processing TypusController#dashboard (for 127.0.0.1 at 2010-10-08 14:04:08) [GET] + Parameters: {"action"=>"dashboard", "controller"=>"typus"} + TypusUser Load (0.5ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  +Rendering template within layouts/admin +Rendering typus/dashboard +Rendered admin/dashboard/_sidebar (0.2ms) +Rendered admin/helpers/_applications (2.1ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.3ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 26ms (View: 21, DB: 0) | 200 OK [http://localhost/admin] + + +Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-08 14:04:09) [GET] + Parameters: {"action"=>"index", "controller"=>"admin/photos"} + 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.4ms) + Photo Load (0.5ms) SELECT "photos".* FROM "photos" ORDER BY photos.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_table_header (0.1ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.3ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 42ms (View: 22, DB: 1) | 200 OK [http://localhost/admin/photos] + + +Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 14:04:14) [GET] + Parameters: {"action"=>"edit", "id"=>"3", "controller"=>"admin/photos"} + TypusUser Load (0.5ms) 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.4ms) +Rendered admin/helpers/_preview (0.2ms) +Rendered admin/templates/_file (4.2ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_text (0.4ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/resources/_form (9.8ms) + SQL (0.2ms) SELECT count(*) AS count_all FROM "categories"  + Category Load (0.3ms) 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 = 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.3ms) 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.1ms) +Rendered admin/helpers/_login_info (0.3ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 53ms (View: 32, DB: 2) | 200 OK [http://localhost/admin/photos/edit/3] + + +Processing Admin::PhotosController#update (for 127.0.0.1 at 2010-10-08 14:04:19) [PUT] + Parameters: {"photo"=>{"title"=>"Cross", "flickr_url"=>"", "sort"=>"", "description"=>"How can men feel themselves honoured by the humiliation of their fellow beings?"}, "commit"=>"Save Photo", "action"=>"update", "_method"=>"put", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "id"=>"3", "controller"=>"admin/photos"} + TypusUser Load (0.6ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."id" = 3)  + Photo Update (0.3ms) UPDATE "photos" SET "updated_at" = '2010-10-08 18:04:19', "title" = 'Cross', "flickr_url" = '', "description" = 'How can men feel themselves honoured by the humiliation of their fellow beings?' WHERE "id" = 3 +[paperclip] Saving attachments. +Redirected to http://localhost:3000/admin/photos/edit/3 +Completed in 24ms (DB: 1) | 302 Found [http://localhost/admin/photos/update/3] + + +Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 14:04:19) [GET] + Parameters: {"action"=>"edit", "id"=>"3", "controller"=>"admin/photos"} + TypusUser Load (0.7ms) 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.8ms) +Rendered admin/helpers/_preview (0.2ms) +Rendered admin/templates/_file (4.3ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_text (0.4ms) +Rendered admin/templates/_string (0.5ms) +Rendered admin/resources/_form (10.1ms) + SQL (0.2ms) SELECT count(*) AS count_all FROM "categories"  + Category Load (0.4ms) 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 = 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.3ms) 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.1ms) +Rendered admin/helpers/_login_info (0.3ms) +Rendered admin/helpers/_flash_message (0.1ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 58ms (View: 35, DB: 2) | 200 OK [http://localhost/admin/photos/edit/3] + + +Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-08 14:04:23) [GET] + Parameters: {"action"=>"index", "controller"=>"admin/photos"} + 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 (0.5ms) SELECT "photos".* FROM "photos" ORDER BY photos.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_table_header (0.1ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.3ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 97ms (View: 21, DB: 1) | 200 OK [http://localhost/admin/photos] + + +Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 14:04:26) [GET] + Parameters: {"action"=>"edit", "id"=>"2", "controller"=>"admin/photos"} + TypusUser Load (0.5ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."id" = 2)  +Rendering template within layouts/admin +Rendering admin/resources/edit +Rendered admin/helpers/_list (0.1ms) +Rendered admin/helpers/_search (0.4ms) +Rendered admin/helpers/_preview (0.2ms) +Rendered admin/templates/_file (4.7ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_string (0.5ms) +Rendered admin/templates/_text (0.4ms) +Rendered admin/templates/_string (0.5ms) +Rendered admin/resources/_form (10.1ms) + SQL (0.2ms) SELECT count(*) AS count_all FROM "categories"  + Category Load (0.4ms) 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 = 2 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 2)  + 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 = 2 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 2)  + Category Load (0.2ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 2 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_table_header (0.1ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.3ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 54ms (View: 31, DB: 2) | 200 OK [http://localhost/admin/photos/edit/2] + + +Processing Admin::PhotosController#update (for 127.0.0.1 at 2010-10-08 14:04:30) [PUT] + Parameters: {"photo"=>{"title"=>"Bell Tower", "flickr_url"=>"", "sort"=>"", "description"=>"Church of Ireland bell tower, Tourmakeady, Co. Mayo."}, "commit"=>"Save Photo", "action"=>"update", "_method"=>"put", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "id"=>"2", "controller"=>"admin/photos"} + TypusUser Load (0.5ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."id" = 2)  + Photo Update (0.3ms) UPDATE "photos" SET "updated_at" = '2010-10-08 18:04:30', "title" = 'Bell Tower', "flickr_url" = '' WHERE "id" = 2 +[paperclip] Saving attachments. +Redirected to http://localhost:3000/admin/photos/edit/2 +Completed in 25ms (DB: 1) | 302 Found [http://localhost/admin/photos/update/2] + + +Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 14:04:30) [GET] + Parameters: {"action"=>"edit", "id"=>"2", "controller"=>"admin/photos"} + TypusUser Load (0.5ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."id" = 2)  +Rendering template within layouts/admin +Rendering admin/resources/edit +Rendered admin/helpers/_list (0.1ms) +Rendered admin/helpers/_search (0.9ms) +Rendered admin/helpers/_preview (0.2ms) +Rendered admin/templates/_file (5.2ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_text (0.4ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/resources/_form (11.9ms) + SQL (0.2ms) SELECT count(*) AS count_all FROM "categories"  + Category Load (0.3ms) 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 = 2 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 2)  + 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 = 2 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."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 = 2 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_table_header (0.1ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/helpers/_flash_message (0.1ms) +Rendered admin/shared/_footer (0.3ms) +Completed in 123ms (View: 97, DB: 2) | 200 OK [http://localhost/admin/photos/edit/2] + + +Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-08 14:04:32) [GET] + Parameters: {"action"=>"index", "controller"=>"admin/photos"} + 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 (0.4ms) SELECT "photos".* FROM "photos" ORDER BY photos.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_table_header (0.1ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 42ms (View: 22, DB: 1) | 200 OK [http://localhost/admin/photos] + + +Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 14:04:34) [GET] + Parameters: {"action"=>"edit", "id"=>"1", "controller"=>"admin/photos"} + TypusUser Load (0.5ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.2ms) SELECT * FROM "photos" WHERE ("photos"."id" = 1)  +Rendering template within layouts/admin +Rendering admin/resources/edit +Rendered admin/helpers/_list (0.1ms) +Rendered admin/helpers/_search (0.5ms) +Rendered admin/helpers/_preview (0.2ms) +Rendered admin/templates/_file (4.5ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/templates/_string (0.5ms) +Rendered admin/templates/_text (0.4ms) +Rendered admin/templates/_string (0.5ms) +Rendered admin/resources/_form (10.2ms) + 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 = 1 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 1)  + 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 = 1 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 1)  + Category Load (0.2ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 1 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_table_header (0.1ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.6ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 114ms (View: 93, DB: 2) | 200 OK [http://localhost/admin/photos/edit/1] + + +Processing Admin::PhotosController#update (for 127.0.0.1 at 2010-10-08 14:04:38) [PUT] + Parameters: {"photo"=>{"title"=>"Buttercup", "flickr_url"=>"", "sort"=>"", "description"=>""}, "commit"=>"Save Photo", "action"=>"update", "_method"=>"put", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "id"=>"1", "controller"=>"admin/photos"} + TypusUser Load (0.5ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.4ms) SELECT * FROM "photos" WHERE ("photos"."id" = 1)  + Photo Update (0.4ms) UPDATE "photos" SET "updated_at" = '2010-10-08 18:04:38', "title" = 'Buttercup', "flickr_url" = '', "description" = '' WHERE "id" = 1 +[paperclip] Saving attachments. +Redirected to http://localhost:3000/admin/photos/edit/1 +Completed in 31ms (DB: 1) | 302 Found [http://localhost/admin/photos/update/1] + + +Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 14:04:38) [GET] + Parameters: {"action"=>"edit", "id"=>"1", "controller"=>"admin/photos"} + TypusUser Load (0.6ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.5ms) SELECT * FROM "photos" WHERE ("photos"."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/helpers/_preview (0.2ms) +Rendered admin/templates/_file (4.9ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_text (0.4ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/resources/_form (12.0ms) + SQL (0.2ms) SELECT count(*) AS count_all FROM "categories"  + Category Load (0.6ms) 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 = 1 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 1)  + 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 = 1 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."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 = 1 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_table_header (0.2ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.5ms) +Rendered admin/helpers/_flash_message (0.1ms) +Rendered admin/shared/_footer (0.3ms) +Completed in 131ms (View: 43, DB: 3) | 200 OK [http://localhost/admin/photos/edit/1] + + +Processing TypusController#dashboard (for 127.0.0.1 at 2010-10-08 14:04:41) [GET] + Parameters: {"action"=>"dashboard", "controller"=>"typus"} + TypusUser Load (0.5ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  +Rendering template within layouts/admin +Rendering typus/dashboard +Rendered admin/dashboard/_sidebar (0.2ms) +Rendered admin/helpers/_applications (2.2ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.3ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 25ms (View: 20, DB: 1) | 200 OK [http://localhost/admin] + + +Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-08 14:04:43) [GET] + Parameters: {"action"=>"index", "controller"=>"admin/photos"} + 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.4ms) + Photo Load (0.5ms) SELECT "photos".* FROM "photos" ORDER BY photos.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_table_header (0.1ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.3ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 105ms (View: 24, DB: 1) | 200 OK [http://localhost/admin/photos] + + +Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-08 14:04:59) [GET] + Parameters: {"action"=>"index", "controller"=>"admin/photos"} + 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.4ms) + Photo Load (0.5ms) SELECT "photos".* FROM "photos" ORDER BY photos.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_table_header (0.1ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.3ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 43ms (View: 22, DB: 1) | 200 OK [http://localhost/admin/photos] + + +Processing TypusController#dashboard (for 127.0.0.1 at 2010-10-08 14:05:00) [GET] + Parameters: {"action"=>"dashboard", "controller"=>"typus"} + TypusUser Load (0.5ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  +Rendering template within layouts/admin +Rendering typus/dashboard +Rendered admin/dashboard/_sidebar (0.2ms) +Rendered admin/helpers/_applications (2.0ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.3ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 26ms (View: 21, DB: 1) | 200 OK [http://localhost/admin] + + +Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-08 14:05:12) [GET] + Parameters: {"action"=>"index", "controller"=>"admin/photos"} + 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.4ms) + Photo Load (0.5ms) SELECT "photos".* FROM "photos" ORDER BY photos.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_table_header (0.1ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.3ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 43ms (View: 23, DB: 1) | 200 OK [http://localhost/admin/photos] + + +Processing Admin::CategoriesController#index (for 127.0.0.1 at 2010-10-08 14:06:32) [GET] + Parameters: {"action"=>"index", "controller"=>"admin/categories"} + TypusUser Load (0.5ms) 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.1ms) +Rendered admin/helpers/_search (0.5ms) + Category Load (0.4ms) 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.1ms) +Rendered admin/helpers/_login_info (0.3ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 39ms (View: 21, DB: 1) | 200 OK [http://localhost/admin/categories] + + +Processing Admin::CategoriesController#new (for 127.0.0.1 at 2010-10-08 14:06:35) [GET] + Parameters: {"action"=>"new", "controller"=>"admin/categories"} + 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/_string (1.7ms) +Rendered admin/templates/_text (0.7ms) +Rendered admin/templates/_string (1.1ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_string (1.1ms) +Rendered admin/resources/_form (68.5ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.6ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 104ms (View: 82, DB: 1) | 200 OK [http://localhost/admin/categories/new] + + +Processing Admin::CategoriesController#create (for 127.0.0.1 at 2010-10-08 14:06:55) [POST] + Parameters: {"category"=>{"name"=>"Abstract", "sort"=>"", "base_colour"=>"#00bf7e", "photo_id"=>"", "description"=>""}, "commit"=>"Create Category", "action"=>"create", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "controller"=>"admin/categories"} + TypusUser Load (0.5ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Category Create (0.4ms) INSERT INTO "categories" ("name", "created_at", "updated_at", "description", "photo_id", "base_colour", "sort") VALUES('Abstract', '2010-10-08 18:06:55', '2010-10-08 18:06:55', '', NULL, '#00bf7e', NULL) +Redirected to http://localhost:3000/admin/categories/edit/6 +Completed in 21ms (DB: 1) | 302 Found [http://localhost/admin/categories/create] + + +Processing Admin::CategoriesController#edit (for 127.0.0.1 at 2010-10-08 14:06:55) [GET] + Parameters: {"action"=>"edit", "id"=>"6", "controller"=>"admin/categories"} + TypusUser Load (0.5ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Category Load (0.3ms) SELECT * FROM "categories" WHERE ("categories"."id" = 6)  +Rendering template within layouts/admin +Rendering admin/resources/edit +Rendered admin/helpers/_list (0.1ms) +Rendered admin/helpers/_search (0.8ms) +Rendered admin/templates/_string (1.6ms) +Rendered admin/templates/_text (0.7ms) +Rendered admin/templates/_string (0.9ms) +Rendered admin/templates/_string (0.8ms) +Rendered admin/templates/_string (0.5ms) +Rendered admin/resources/_form (9.6ms) + SQL (0.3ms) SELECT count(*) AS count_all FROM "photos"  + Photo Load (0.7ms) SELECT * FROM "photos"  + Photo Load (0.2ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 6 )  + CACHE (0.0ms) SELECT * FROM "categories" WHERE ("categories"."id" = 6)  + 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 = 6 )  + CACHE (0.0ms) SELECT * FROM "categories" WHERE ("categories"."id" = 6)  + Photo Load (0.1ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 6 ) ORDER BY photos.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/helpers/_flash_message (0.1ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 118ms (View: 93, DB: 2) | 200 OK [http://localhost/admin/categories/edit/6] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 14:07:01) [GET] + Category Load (1.3ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 11ms (View: 5, DB: 1) | 200 OK [http://localhost/categories] + + +Processing Admin::CategoriesController#update (for 127.0.0.1 at 2010-10-08 14:07:21) [PUT] + Parameters: {"category"=>{"name"=>"Abstract", "sort"=>"", "base_colour"=>"#00bfab", "photo_id"=>"", "description"=>""}, "commit"=>"Save Category", "action"=>"update", "_method"=>"put", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "id"=>"6", "controller"=>"admin/categories"} + TypusUser Load (0.6ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = 6)  + Category Update (0.3ms) UPDATE "categories" SET "updated_at" = '2010-10-08 18:07:21', "base_colour" = '#00bfab' WHERE "id" = 6 +Redirected to http://localhost:3000/admin/categories/edit/6 +Completed in 22ms (DB: 1) | 302 Found [http://localhost/admin/categories/update/6] + + +Processing Admin::CategoriesController#edit (for 127.0.0.1 at 2010-10-08 14:07:21) [GET] + Parameters: {"action"=>"edit", "id"=>"6", "controller"=>"admin/categories"} + TypusUser Load (0.7ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = 6)  +Rendering template within layouts/admin +Rendering admin/resources/edit +Rendered admin/helpers/_list (0.1ms) +Rendered admin/helpers/_search (0.8ms) +Rendered admin/templates/_string (1.9ms) +Rendered admin/templates/_text (0.5ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_string (0.5ms) +Rendered admin/resources/_form (8.0ms) + SQL (0.2ms) SELECT count(*) AS count_all FROM "photos"  + Photo Load (0.5ms) SELECT * FROM "photos"  + Photo Load (0.1ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 6 )  + CACHE (0.0ms) SELECT * FROM "categories" WHERE ("categories"."id" = 6)  + 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 = 6 )  + CACHE (0.0ms) SELECT * FROM "categories" WHERE ("categories"."id" = 6)  + Photo Load (0.1ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 6 ) ORDER BY photos.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.5ms) +Rendered admin/helpers/_flash_message (0.1ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 119ms (View: 33, DB: 2) | 200 OK [http://localhost/admin/categories/edit/6] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 14:07:22) [GET] + Category Load (0.7ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 9ms (View: 4, DB: 1) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 14:07:42) [GET] + Category Load (0.7ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 12ms (View: 7, DB: 1) | 200 OK [http://localhost/categories] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 14:07:44) [GET] + Parameters: {"category_id"=>"1"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1 +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.4ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 )  +Completed in 72ms (View: 62, DB: 1) | 200 OK [http://localhost/categories/1/photos] + + +Processing TypusController#dashboard (for 127.0.0.1 at 2010-10-08 14:07:49) [GET] + Parameters: {"action"=>"dashboard", "controller"=>"typus"} + TypusUser Load (0.5ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  +Rendering template within layouts/admin +Rendering typus/dashboard +Rendered admin/dashboard/_sidebar (0.2ms) +Rendered admin/helpers/_applications (2.1ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.3ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 26ms (View: 21, DB: 1) | 200 OK [http://localhost/admin] + + +Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-08 14:07:50) [GET] + Parameters: {"action"=>"index", "controller"=>"admin/photos"} + 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 (0.5ms) SELECT "photos".* FROM "photos" ORDER BY photos.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_table_header (0.1ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.3ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 100ms (View: 80, DB: 1) | 200 OK [http://localhost/admin/photos] + + +Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 14:07:52) [GET] + Parameters: {"action"=>"edit", "id"=>"1", "controller"=>"admin/photos"} + TypusUser Load (0.5ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.2ms) SELECT * FROM "photos" WHERE ("photos"."id" = 1)  +Rendering template within layouts/admin +Rendering admin/resources/edit +Rendered admin/helpers/_list (0.1ms) +Rendered admin/helpers/_search (0.4ms) +Rendered admin/helpers/_preview (0.2ms) +Rendered admin/templates/_file (4.0ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_text (0.4ms) +Rendered admin/templates/_string (0.5ms) +Rendered admin/resources/_form (9.2ms) + SQL (0.2ms) SELECT count(*) AS count_all FROM "categories"  + Category Load (0.4ms) 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 = 1 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 1)  + 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 = 1 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 1)  + Category Load (0.2ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 1 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_table_header (0.1ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.3ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 52ms (View: 31, DB: 2) | 200 OK [http://localhost/admin/photos/edit/1] + + +Processing Admin::PhotosController#new (for 127.0.0.1 at 2010-10-08 14:08:07) [GET] + Parameters: {"action"=>"new", "controller"=>"admin/photos"} + 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.7ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_string (0.5ms) +Rendered admin/templates/_text (0.4ms) +Rendered admin/templates/_string (1.0ms) +Rendered admin/resources/_form (7.8ms) +Rendered admin/helpers/_header (0.2ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 94ms (View: 19, DB: 1) | 200 OK [http://localhost/admin/photos/new] + + +Processing Admin::PhotosController#create (for 127.0.0.1 at 2010-10-08 14:08:17) [POST] + Parameters: {"photo"=>{"photo"=>#, "title"=>"Rust", "flickr_url"=>"", "sort"=>"", "description"=>""}, "commit"=>"Create Photo", "action"=>"create", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "controller"=>"admin/photos"} + TypusUser Load (0.6ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-o06o6q-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-o06o6q-0.jpg[0]' -resize "x224" -crop "224x224+71+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-o06o6q-020101008-80675-1fmr351-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-o06o6q-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-o06o6q-0.jpg[0]' -resize "x140" -crop "140x140+44+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-o06o6q-020101008-80675-ayc2x-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-o06o6q-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-o06o6q-0.jpg[0]' -resize "1024x1024>" '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-o06o6q-020101008-80675-1fe9r11-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-o06o6q-020101008-80675-1fe9r11-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-o06o6q-020101008-80675-1fe9r11-0[0]' -resize "x84" -crop "84x84+26+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-o06o6q-020101008-80675-1fe9r11-020101008-80675-1odozu7-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-o06o6q-020101008-80675-1fe9r11-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-o06o6q-020101008-80675-1fe9r11-0[0]' -resize "x56" -crop "56x56+17+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-o06o6q-020101008-80675-1fe9r11-020101008-80675-12b47hw-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-o06o6q-020101008-80675-1fe9r11-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-o06o6q-020101008-80675-1fe9r11-0[0]' -resize "x308" -crop "308x308+97+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-o06o6q-020101008-80675-1fe9r11-020101008-80675-1fez4lu-0' 2>/dev/null + 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(754653, '2010-10-08 18:08:19', 'Rust', '', '_.jpg', '2010-10-08 18:08:19', 'image/jpeg', '2010-10-08 18:08:17', '', NULL) +[paperclip] Saving attachments. +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/5/size8/_.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/5/size5/_.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/5/size3/_.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/5/original/_.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/5/size2/_.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/5/size11/_.jpg +Redirected to http://localhost:3000/admin/photos/edit/5 +Completed in 2345ms (DB: 1) | 302 Found [http://localhost/admin/photos/create] + + +Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 14:08:19) [GET] + Parameters: {"action"=>"edit", "id"=>"5", "controller"=>"admin/photos"} + TypusUser Load (0.8ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."id" = 5)  +Rendering template within layouts/admin +Rendering admin/resources/edit +Rendered admin/helpers/_list (0.1ms) +Rendered admin/helpers/_search (0.6ms) +Rendered admin/helpers/_preview (0.2ms) +Rendered admin/templates/_file (6.5ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_text (0.4ms) +Rendered admin/templates/_string (164.7ms) +Rendered admin/resources/_form (176.7ms) + SQL (0.2ms) SELECT count(*) AS count_all FROM "categories"  + Category Load (0.4ms) 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 = 5 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 5)  + 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 = 5 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 5)  + Category Load (0.2ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 5 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.3ms) +Rendered admin/helpers/_flash_message (0.1ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 229ms (View: 199, DB: 2) | 200 OK [http://localhost/admin/photos/edit/5] + + +Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-08 14:08:22) [GET] + Parameters: {"action"=>"index", "controller"=>"admin/photos"} + 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 (0.7ms) SELECT "photos".* FROM "photos" ORDER BY photos.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_table_header (0.1ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.3ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 47ms (View: 24, DB: 1) | 200 OK [http://localhost/admin/photos] + + +Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 14:08:26) [GET] + Parameters: {"action"=>"edit", "id"=>"5", "controller"=>"admin/photos"} + TypusUser Load (0.6ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.2ms) SELECT * FROM "photos" WHERE ("photos"."id" = 5)  +Rendering template within layouts/admin +Rendering admin/resources/edit +Rendered admin/helpers/_list (0.1ms) +Rendered admin/helpers/_search (0.6ms) +Rendered admin/helpers/_preview (0.2ms) +Rendered admin/templates/_file (4.0ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_string (0.5ms) +Rendered admin/templates/_text (0.4ms) +Rendered admin/templates/_string (0.5ms) +Rendered admin/resources/_form (9.2ms) + SQL (0.2ms) SELECT count(*) AS count_all FROM "categories"  + Category Load (0.4ms) 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 = 5 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 5)  + 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 = 5 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 5)  + Category Load (0.1ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 5 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.3ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 110ms (View: 29, DB: 2) | 200 OK [http://localhost/admin/photos/edit/5] + + +Processing Admin::PhotosController#new (for 127.0.0.1 at 2010-10-08 14:08:29) [GET] + Parameters: {"action"=>"new", "controller"=>"admin/photos"} + 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.6ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_text (0.6ms) +Rendered admin/templates/_string (0.5ms) +Rendered admin/resources/_form (7.1ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.3ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 35ms (View: 16, DB: 1) | 200 OK [http://localhost/admin/photos/new] + + +Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 14:08:32) [GET] + Parameters: {"action"=>"edit", "id"=>"5", "controller"=>"admin/photos"} + TypusUser Load (0.5ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.2ms) SELECT * FROM "photos" WHERE ("photos"."id" = 5)  +Rendering template within layouts/admin +Rendering admin/resources/edit +Rendered admin/helpers/_list (0.1ms) +Rendered admin/helpers/_search (0.5ms) +Rendered admin/helpers/_preview (0.2ms) +Rendered admin/templates/_file (5.4ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_text (0.4ms) +Rendered admin/templates/_string (0.5ms) +Rendered admin/resources/_form (10.8ms) + SQL (0.2ms) SELECT count(*) AS count_all FROM "categories"  + Category Load (0.4ms) 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 = 5 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 5)  + 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 = 5 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 5)  + Category Load (0.1ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 5 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.3ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 52ms (View: 32, DB: 2) | 200 OK [http://localhost/admin/photos/edit/5] + + +Processing Admin::PhotosController#relate (for 127.0.0.1 at 2010-10-08 14:08:35) [POST] + Parameters: {"commit"=>"Add", "related"=>{"model"=>"Category", "relation"=>"categories", "id"=>"6"}, "action"=>"relate", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "id"=>"5", "controller"=>"admin/photos"} + TypusUser Load (0.5ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.2ms) SELECT * FROM "photos" WHERE ("photos"."id" = 5)  + Category Load (0.3ms) SELECT * FROM "categories" WHERE ("categories"."id" = 6)  + SQL (0.3ms) INSERT INTO "categories_photos" ("category_id", "photo_id") VALUES (6, 5) +Redirected to http://localhost:3000/admin/photos/edit/5 +Completed in 82ms (DB: 1) | 302 Found [http://localhost/admin/photos/relate/5] + + +Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 14:08:35) [GET] + Parameters: {"action"=>"edit", "id"=>"5", "controller"=>"admin/photos"} + TypusUser Load (0.5ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.4ms) SELECT * FROM "photos" WHERE ("photos"."id" = 5)  +Rendering template within layouts/admin +Rendering admin/resources/edit +Rendered admin/helpers/_list (0.1ms) +Rendered admin/helpers/_search (0.8ms) +Rendered admin/helpers/_preview (0.2ms) +Rendered admin/templates/_file (4.5ms) +Rendered admin/templates/_string (0.8ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_text (0.4ms) +Rendered admin/templates/_string (0.5ms) +Rendered admin/resources/_form (11.4ms) + SQL (0.2ms) SELECT count(*) AS count_all FROM "categories"  + Category Load (0.7ms) 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 = 5 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 5)  + 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 = 5 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."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 = 5 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_table_header (0.1ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.3ms) +Rendered admin/helpers/_flash_message (0.1ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 62ms (View: 36, DB: 3) | 200 OK [http://localhost/admin/photos/edit/5] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 14:08:42) [GET] + Category Load (0.8ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 10ms (View: 4, DB: 1) | 200 OK [http://localhost/categories] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 14:08:42) [GET] + Parameters: {"category_id"=>"6"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '6') LIMIT 1 +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.3ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 6 )  +Completed in 17ms (View: 6, DB: 0) | 200 OK [http://localhost/categories/6/photos] + + +Processing Admin::PhotosController#new (for 127.0.0.1 at 2010-10-08 14:08:50) [GET] + Parameters: {"action"=>"new", "controller"=>"admin/photos"} + 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.6ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_string (0.5ms) +Rendered admin/templates/_text (0.4ms) +Rendered admin/templates/_string (0.5ms) +Rendered admin/resources/_form (6.8ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.3ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 35ms (View: 16, DB: 1) | 200 OK [http://localhost/admin/photos/new] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 14:08:55) [GET] + Photo Load (0.8ms) SELECT * FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 71ms (View: 8, DB: 1) | 200 OK [http://localhost/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 14:09:05) [GET] + Photo Load (1.2ms) SELECT * FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 18ms (View: 8, DB: 1) | 200 OK [http://localhost/photos] + + +Processing Admin::PhotosController#create (for 127.0.0.1 at 2010-10-08 14:09:35) [POST] + Parameters: {"photo"=>{"photo"=>#, "title"=>"Boathouse", "flickr_url"=>"", "sort"=>"", "description"=>""}, "commit"=>"Create Photo", "action"=>"create", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "controller"=>"admin/photos"} + TypusUser Load (0.5ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-j8cjn9-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-j8cjn9-0.jpg[0]' -resize "x224" -crop "224x224+107+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-j8cjn9-020101008-80675-20zj26-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-j8cjn9-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-j8cjn9-0.jpg[0]' -resize "x140" -crop "140x140+67+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-j8cjn9-020101008-80675-1hr4lxu-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-j8cjn9-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-j8cjn9-0.jpg[0]' -resize "1024x1024>" '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-j8cjn9-020101008-80675-lcnri9-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-j8cjn9-020101008-80675-lcnri9-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-j8cjn9-020101008-80675-lcnri9-0[0]' -resize "x84" -crop "84x84+40+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-j8cjn9-020101008-80675-lcnri9-020101008-80675-155kg67-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-j8cjn9-020101008-80675-lcnri9-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-j8cjn9-020101008-80675-lcnri9-0[0]' -resize "x56" -crop "56x56+26+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-j8cjn9-020101008-80675-lcnri9-020101008-80675-k9u5ho-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-j8cjn9-020101008-80675-lcnri9-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-j8cjn9-020101008-80675-lcnri9-0[0]' -resize "x308" -crop "308x308+148+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-j8cjn9-020101008-80675-lcnri9-020101008-80675-drmnto-0' 2>/dev/null + 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(176111, '2010-10-08 18:09:37', 'Boathouse', '', 'Boathouse.jpg', '2010-10-08 18:09:37', 'image/jpeg', '2010-10-08 18:09:35', '', NULL) +[paperclip] Saving attachments. +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/6/size8/Boathouse.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/6/size5/Boathouse.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/6/size3/Boathouse.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/6/original/Boathouse.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/6/size2/Boathouse.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/6/size11/Boathouse.jpg +Redirected to http://localhost:3000/admin/photos/edit/6 +Completed in 1731ms (DB: 1) | 302 Found [http://localhost/admin/photos/create] + + +Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 14:09:37) [GET] + Parameters: {"action"=>"edit", "id"=>"6", "controller"=>"admin/photos"} + TypusUser Load (0.6ms) 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.8ms) +Rendered admin/helpers/_preview (0.2ms) +Rendered admin/templates/_file (4.7ms) +Rendered admin/templates/_string (81.4ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_text (0.4ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/resources/_form (91.8ms) + SQL (0.2ms) SELECT count(*) AS count_all FROM "categories"  + Category Load (0.4ms) 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 = 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.1ms) 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/_header (0.1ms) +Rendered admin/helpers/_login_info (0.3ms) +Rendered admin/helpers/_flash_message (0.1ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 139ms (View: 113, DB: 2) | 200 OK [http://localhost/admin/photos/edit/6] + + +Processing Admin::PhotosController#relate (for 127.0.0.1 at 2010-10-08 14:09:43) [POST] + Parameters: {"commit"=>"Add", "related"=>{"model"=>"Category", "relation"=>"categories", "id"=>"4"}, "action"=>"relate", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "id"=>"6", "controller"=>"admin/photos"} + TypusUser Load (0.5ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.2ms) SELECT * FROM "photos" WHERE ("photos"."id" = 6)  + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = 4)  + SQL (0.3ms) INSERT INTO "categories_photos" ("category_id", "photo_id") VALUES (4, 6) +Redirected to http://localhost:3000/admin/photos/edit/6 +Completed in 28ms (DB: 1) | 302 Found [http://localhost/admin/photos/relate/6] + + +Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 14:09:43) [GET] + Parameters: {"action"=>"edit", "id"=>"6", "controller"=>"admin/photos"} + 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 (67.6ms) +Rendered admin/templates/_string (0.8ms) +Rendered admin/templates/_string (0.8ms) +Rendered admin/templates/_text (0.6ms) +Rendered admin/templates/_string (0.8ms) +Rendered admin/resources/_form (74.4ms) + SQL (0.2ms) SELECT count(*) AS count_all FROM "categories"  + Category Load (0.4ms) 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 = 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.2ms) 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.1ms) +Rendered admin/helpers/_login_info (0.3ms) +Rendered admin/helpers/_flash_message (0.1ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 123ms (View: 97, DB: 2) | 200 OK [http://localhost/admin/photos/edit/6] + + +Processing Admin::PhotosController#relate (for 127.0.0.1 at 2010-10-08 14:09:46) [POST] + Parameters: {"commit"=>"Add", "related"=>{"model"=>"Category", "relation"=>"categories", "id"=>"1"}, "action"=>"relate", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "id"=>"6", "controller"=>"admin/photos"} + TypusUser Load (0.5ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."id" = 6)  + Category Load (0.3ms) SELECT * FROM "categories" WHERE ("categories"."id" = 1)  + SQL (0.3ms) INSERT INTO "categories_photos" ("category_id", "photo_id") VALUES (1, 6) +Redirected to http://localhost:3000/admin/photos/edit/6 +Completed in 28ms (DB: 1) | 302 Found [http://localhost/admin/photos/relate/6] + + +Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 14:09:46) [GET] + Parameters: {"action"=>"edit", "id"=>"6", "controller"=>"admin/photos"} + TypusUser Load (0.6ms) 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.5ms) +Rendered admin/helpers/_preview (0.2ms) +Rendered admin/templates/_file (5.3ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/templates/_text (0.5ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/resources/_form (11.3ms) + SQL (0.2ms) SELECT count(*) AS count_all FROM "categories"  + Category Load (0.4ms) 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.1ms) +Rendered admin/helpers/_login_info (0.3ms) +Rendered admin/helpers/_flash_message (0.1ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 125ms (View: 35, DB: 2) | 200 OK [http://localhost/admin/photos/edit/6] + + +Processing Admin::PhotosController#new (for 127.0.0.1 at 2010-10-08 14:09:49) [GET] + Parameters: {"action"=>"new", "controller"=>"admin/photos"} + 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.7ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_string (0.5ms) +Rendered admin/templates/_text (0.4ms) +Rendered admin/templates/_string (0.5ms) +Rendered admin/resources/_form (7.1ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 38ms (View: 17, DB: 1) | 200 OK [http://localhost/admin/photos/new] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 14:09:55) [GET] + Photo Load (0.8ms) SELECT * FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 17ms (View: 9, DB: 1) | 200 OK [http://localhost/photos] + + +Processing Admin::PhotosController#create (for 127.0.0.1 at 2010-10-08 14:10:07) [POST] + Parameters: {"photo"=>{"photo"=>#, "title"=>"Bubble #2", "flickr_url"=>"", "sort"=>"", "description"=>""}, "commit"=>"Create Photo", "action"=>"create", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "controller"=>"admin/photos"} + TypusUser Load (0.9ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-fytyfd-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-fytyfd-0.jpg[0]' -resize "x224" -crop "224x224+114+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-fytyfd-020101008-80675-5zi50z-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-fytyfd-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-fytyfd-0.jpg[0]' -resize "x140" -crop "140x140+71+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-fytyfd-020101008-80675-18n2dws-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-fytyfd-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-fytyfd-0.jpg[0]' -resize "1024x1024>" '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-fytyfd-020101008-80675-lc8z4b-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-fytyfd-020101008-80675-lc8z4b-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-fytyfd-020101008-80675-lc8z4b-0[0]' -resize "x84" -crop "84x84+42+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-fytyfd-020101008-80675-lc8z4b-020101008-80675-1aje0tp-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-fytyfd-020101008-80675-lc8z4b-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-fytyfd-020101008-80675-lc8z4b-0[0]' -resize "x56" -crop "56x56+28+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-fytyfd-020101008-80675-lc8z4b-020101008-80675-dqwo7w-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-fytyfd-020101008-80675-lc8z4b-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-fytyfd-020101008-80675-lc8z4b-0[0]' -resize "x308" -crop "308x308+157+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-fytyfd-020101008-80675-lc8z4b-020101008-80675-8tip8y-0' 2>/dev/null + 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(380686, '2010-10-08 18:10:09', 'Bubble #2', '', 'Bubble no2.jpg', '2010-10-08 18:10:09', 'image/jpeg', '2010-10-08 18:10:07', '', NULL) +[paperclip] Saving attachments. +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/7/size8/Bubble no2.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/7/size5/Bubble no2.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/7/size3/Bubble no2.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/7/original/Bubble no2.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/7/size2/Bubble no2.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/7/size11/Bubble no2.jpg +Redirected to http://localhost:3000/admin/photos/edit/7 +Completed in 2076ms (DB: 1) | 302 Found [http://localhost/admin/photos/create] + + +Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 14:10:09) [GET] + Parameters: {"action"=>"edit", "id"=>"7", "controller"=>"admin/photos"} + TypusUser Load (0.7ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."id" = 7)  +Rendering template within layouts/admin +Rendering admin/resources/edit +Rendered admin/helpers/_list (0.1ms) +Rendered admin/helpers/_search (0.6ms) +Rendered admin/helpers/_preview (0.2ms) +Rendered admin/templates/_file (84.1ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/templates/_string (0.5ms) +Rendered admin/templates/_text (0.4ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/resources/_form (90.4ms) + SQL (0.2ms) SELECT count(*) AS count_all FROM "categories"  + Category Load (0.4ms) 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 = 7 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 7)  + 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 = 7 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 7)  + Category Load (0.5ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 7 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.3ms) +Rendered admin/helpers/_flash_message (0.1ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 140ms (View: 112, DB: 3) | 200 OK [http://localhost/admin/photos/edit/7] + + +Processing TypusController#dashboard (for 127.0.0.1 at 2010-10-08 14:10:14) [GET] + Parameters: {"action"=>"dashboard", "controller"=>"typus"} + TypusUser Load (0.5ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  +Rendering template within layouts/admin +Rendering typus/dashboard +Rendered admin/dashboard/_sidebar (0.2ms) +Rendered admin/helpers/_applications (2.2ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.3ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 27ms (View: 22, DB: 1) | 200 OK [http://localhost/admin] + + +Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-08 14:10:15) [GET] + Parameters: {"action"=>"index", "controller"=>"admin/photos"} + 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 (0.7ms) SELECT "photos".* FROM "photos" ORDER BY photos.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_table_header (0.1ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.3ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 108ms (View: 86, DB: 1) | 200 OK [http://localhost/admin/photos] + + +Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 14:10:18) [GET] + Parameters: {"action"=>"edit", "id"=>"7", "controller"=>"admin/photos"} + TypusUser Load (0.5ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.4ms) SELECT * FROM "photos" WHERE ("photos"."id" = 7)  +Rendering template within layouts/admin +Rendering admin/resources/edit +Rendered admin/helpers/_list (0.2ms) +Rendered admin/helpers/_search (0.8ms) +Rendered admin/helpers/_preview (0.2ms) +Rendered admin/templates/_file (4.2ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_string (0.5ms) +Rendered admin/templates/_text (0.6ms) +Rendered admin/templates/_string (0.9ms) +Rendered admin/resources/_form (10.4ms) + SQL (0.2ms) SELECT count(*) AS count_all FROM "categories"  + Category Load (0.4ms) 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 = 7 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 7)  + 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 = 7 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 7)  + Category Load (0.1ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 7 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.3ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 53ms (View: 31, DB: 2) | 200 OK [http://localhost/admin/photos/edit/7] + + +Processing Admin::PhotosController#relate (for 127.0.0.1 at 2010-10-08 14:10:25) [POST] + Parameters: {"commit"=>"Add", "related"=>{"model"=>"Category", "relation"=>"categories", "id"=>"6"}, "action"=>"relate", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "id"=>"7", "controller"=>"admin/photos"} + TypusUser Load (0.5ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.4ms) SELECT * FROM "photos" WHERE ("photos"."id" = 7)  + Category Load (0.3ms) SELECT * FROM "categories" WHERE ("categories"."id" = 6)  + SQL (0.3ms) INSERT INTO "categories_photos" ("category_id", "photo_id") VALUES (6, 7) +Redirected to http://localhost:3000/admin/photos/edit/7 +Completed in 29ms (DB: 1) | 302 Found [http://localhost/admin/photos/relate/7] + + +Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 14:10:25) [GET] + Parameters: {"action"=>"edit", "id"=>"7", "controller"=>"admin/photos"} + TypusUser Load (0.7ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."id" = 7)  +Rendering template within layouts/admin +Rendering admin/resources/edit +Rendered admin/helpers/_list (0.1ms) +Rendered admin/helpers/_search (0.6ms) +Rendered admin/helpers/_preview (0.2ms) +Rendered admin/templates/_file (4.7ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_string (0.8ms) +Rendered admin/templates/_text (0.4ms) +Rendered admin/templates/_string (0.5ms) +Rendered admin/resources/_form (10.2ms) + SQL (0.5ms) SELECT count(*) AS count_all FROM "categories"  + Category Load (0.9ms) SELECT * FROM "categories"  + Category Load (0.6ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 7 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 7)  + 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 = 7 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."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 = 7 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_table_header (0.1ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.6ms) +Rendered admin/helpers/_flash_message (0.1ms) +Rendered admin/shared/_footer (0.3ms) +Completed in 69ms (View: 41, DB: 4) | 200 OK [http://localhost/admin/photos/edit/7] + + +Processing Admin::PhotosController#relate (for 127.0.0.1 at 2010-10-08 14:10:28) [POST] + Parameters: {"commit"=>"Add", "related"=>{"model"=>"Category", "relation"=>"categories", "id"=>"2"}, "action"=>"relate", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "id"=>"7", "controller"=>"admin/photos"} + TypusUser Load (0.6ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.2ms) SELECT * FROM "photos" WHERE ("photos"."id" = 7)  + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = 2)  + SQL (0.2ms) INSERT INTO "categories_photos" ("category_id", "photo_id") VALUES (2, 7) +Redirected to http://localhost:3000/admin/photos/edit/7 +Completed in 27ms (DB: 1) | 302 Found [http://localhost/admin/photos/relate/7] + + +Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 14:10:28) [GET] + Parameters: {"action"=>"edit", "id"=>"7", "controller"=>"admin/photos"} + TypusUser Load (0.7ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."id" = 7)  +Rendering template within layouts/admin +Rendering admin/resources/edit +Rendered admin/helpers/_list (0.1ms) +Rendered admin/helpers/_search (0.6ms) +Rendered admin/helpers/_preview (0.2ms) +Rendered admin/templates/_file (4.4ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_text (0.4ms) +Rendered admin/templates/_string (0.5ms) +Rendered admin/resources/_form (9.8ms) + SQL (0.2ms) SELECT count(*) AS count_all FROM "categories"  + Category Load (0.4ms) 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 = 7 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 7)  + SQL (0.1ms) SELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 7 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."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 = 7 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_table_header (0.1ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.6ms) +Rendered admin/helpers/_flash_message (0.1ms) +Rendered admin/shared/_footer (0.3ms) +Completed in 119ms (View: 91, DB: 2) | 200 OK [http://localhost/admin/photos/edit/7] + + +Processing Admin::PhotosController#new (for 127.0.0.1 at 2010-10-08 14:10:29) [GET] + Parameters: {"action"=>"new", "controller"=>"admin/photos"} + 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.6ms) +Rendered admin/templates/_string (0.5ms) +Rendered admin/templates/_text (0.4ms) +Rendered admin/templates/_string (0.5ms) +Rendered admin/resources/_form (7.3ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.3ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 35ms (View: 17, DB: 1) | 200 OK [http://localhost/admin/photos/new] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 14:10:34) [GET] + Photo Load (1.0ms) SELECT * FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 15ms (View: 8, DB: 1) | 200 OK [http://localhost/photos] + + +Processing Admin::PhotosController#create (for 127.0.0.1 at 2010-10-08 14:11:56) [POST] + Parameters: {"photo"=>{"photo"=>#, "title"=>"Cadover Horses", "flickr_url"=>"", "sort"=>"", "description"=>""}, "commit"=>"Create Photo", "action"=>"create", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "controller"=>"admin/photos"} + TypusUser Load (0.8ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-9kdwls-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-9kdwls-0.jpg[0]' -resize "x224" -crop "224x224+56+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-9kdwls-020101008-80675-36m2w4-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-9kdwls-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-9kdwls-0.jpg[0]' -resize "x140" -crop "140x140+35+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-9kdwls-020101008-80675-1314bwy-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-9kdwls-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-9kdwls-0.jpg[0]' -resize "1024x1024>" '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-9kdwls-020101008-80675-ssw9om-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-9kdwls-020101008-80675-ssw9om-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-9kdwls-020101008-80675-ssw9om-0[0]' -resize "x84" -crop "84x84+20+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-9kdwls-020101008-80675-ssw9om-020101008-80675-1npc5o3-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-9kdwls-020101008-80675-ssw9om-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-9kdwls-020101008-80675-ssw9om-0[0]' -resize "x56" -crop "56x56+13+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-9kdwls-020101008-80675-ssw9om-020101008-80675-yzue8b-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-9kdwls-020101008-80675-ssw9om-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-9kdwls-020101008-80675-ssw9om-0[0]' -resize "x308" -crop "308x308+76+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-9kdwls-020101008-80675-ssw9om-020101008-80675-1swg3bg-0' 2>/dev/null + 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(206182, '2010-10-08 18:11:58', 'Cadover Horses', '', 'Cadover Horses.jpg', '2010-10-08 18:11:58', 'image/jpeg', '2010-10-08 18:11:56', '', NULL) +[paperclip] Saving attachments. +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/8/size8/Cadover Horses.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/8/size5/Cadover Horses.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/8/size3/Cadover Horses.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/8/original/Cadover Horses.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/8/size2/Cadover Horses.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/8/size11/Cadover Horses.jpg +Redirected to http://localhost:3000/admin/photos/edit/8 +Completed in 2215ms (DB: 1) | 302 Found [http://localhost/admin/photos/create] + + +Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 14:11:59) [GET] + Parameters: {"action"=>"edit", "id"=>"8", "controller"=>"admin/photos"} + TypusUser Load (0.7ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."id" = 8)  +Rendering template within layouts/admin +Rendering admin/resources/edit +Rendered admin/helpers/_list (0.1ms) +Rendered admin/helpers/_search (0.7ms) +Rendered admin/helpers/_preview (0.2ms) +Rendered admin/templates/_file (7.1ms) +Rendered admin/templates/_string (0.9ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/templates/_text (0.5ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/resources/_form (13.8ms) + SQL (0.3ms) SELECT count(*) AS count_all FROM "categories"  + Category Load (0.4ms) 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 = 8 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 8)  + SQL (0.1ms) SELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 8 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 8)  + Category Load (0.1ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 8 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.3ms) +Rendered admin/helpers/_flash_message (0.1ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 156ms (View: 130, DB: 2) | 200 OK [http://localhost/admin/photos/edit/8] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 14:13:14) [GET] + Photo Load (1.3ms) SELECT * FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 20ms (View: 11, DB: 1) | 200 OK [http://localhost/photos] + + +Processing PhotosController#new (for 127.0.0.1 at 2010-10-08 14:13:23) [GET] + Category Load (0.6ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering photos/new +Completed in 25ms (View: 11, DB: 1) | 200 OK [http://localhost/photos/new] + + +Processing PhotosController#create (for 127.0.0.1 at 2010-10-08 14:13:37) [POST] + Parameters: {"photo"=>{"photo"=>#}, "commit"=>"Upload", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw="} +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-z7h9as-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-z7h9as-0.jpg[0]' -resize "x224" -crop "224x224+125+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-z7h9as-020101008-80675-cxco3e-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-z7h9as-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-z7h9as-0.jpg[0]' -resize "x140" -crop "140x140+78+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-z7h9as-020101008-80675-1tr27aw-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-z7h9as-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-z7h9as-0.jpg[0]' -resize "1024x1024>" '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-z7h9as-020101008-80675-gwrgh4-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-z7h9as-020101008-80675-gwrgh4-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-z7h9as-020101008-80675-gwrgh4-0[0]' -resize "x84" -crop "84x84+46+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-z7h9as-020101008-80675-gwrgh4-020101008-80675-1rlwfv5-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-z7h9as-020101008-80675-gwrgh4-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-z7h9as-020101008-80675-gwrgh4-0[0]' -resize "x56" -crop "56x56+31+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-z7h9as-020101008-80675-gwrgh4-020101008-80675-szsol5-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-z7h9as-020101008-80675-gwrgh4-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-z7h9as-020101008-80675-gwrgh4-0[0]' -resize "x308" -crop "308x308+171+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-z7h9as-020101008-80675-gwrgh4-020101008-80675-1e86nhv-0' 2>/dev/null + Photo Create (1.0ms) 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(321666, '2010-10-08 18:13:43', NULL, NULL, 'Emerald Panarama.jpg', '2010-10-08 18:13:43', 'image/jpeg', '2010-10-08 18:13:38', 'Four shots stiched together to make a single wide 20 megapixel image.', NULL) +[paperclip] Saving attachments. +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/9/size8/Emerald Panarama.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/9/size5/Emerald Panarama.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/9/size3/Emerald Panarama.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/9/original/Emerald Panarama.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/9/size2/Emerald Panarama.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/9/size11/Emerald Panarama.jpg +Redirected to http://localhost:3000/photos/9 +Completed in 5471ms (DB: 1) | 302 Found [http://localhost/photos] + + +Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-08 14:13:43) [GET] + Parameters: {"action"=>"index", "controller"=>"admin/photos"} + 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 (0.9ms) SELECT "photos".* FROM "photos" ORDER BY photos.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_table_header (0.1ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.5ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 66ms (View: 45, DB: 2) | 200 OK [http://localhost/admin/photos] + + +Processing PhotosController#show (for 127.0.0.1 at 2010-10-08 14:13:43) [GET] + Parameters: {"id"=>"9"} + Photo Load (0.4ms) SELECT * FROM "photos" WHERE ("photos"."id" = 9)  +Rendering template within layouts/photos +Rendering photos/show +Completed in 19ms (View: 7, DB: 0) | 200 OK [http://localhost/photos/9] + + +Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 14:13:46) [GET] + Parameters: {"action"=>"edit", "id"=>"9", "controller"=>"admin/photos"} + TypusUser Load (0.6ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."id" = 9)  +Rendering template within layouts/admin +Rendering admin/resources/edit +Rendered admin/helpers/_list (0.1ms) +Rendered admin/helpers/_search (0.5ms) +Rendered admin/helpers/_preview (0.2ms) +Rendered admin/templates/_file (4.7ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_text (0.4ms) +Rendered admin/templates/_string (0.5ms) +Rendered admin/resources/_form (10.4ms) + SQL (0.2ms) SELECT count(*) AS count_all FROM "categories"  + Category Load (0.4ms) 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 = 9 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 9)  + 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 = 9 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 9)  + Category Load (0.2ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 9 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 52ms (View: 30, DB: 2) | 200 OK [http://localhost/admin/photos/edit/9] + + +Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-08 14:13:55) [GET] + Parameters: {"action"=>"index", "controller"=>"admin/photos"} + 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.0ms) SELECT "photos".* FROM "photos" ORDER BY photos.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_table_header (0.1ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 109ms (View: 87, DB: 2) | 200 OK [http://localhost/admin/photos] + + +Processing Admin::PhotosController#destroy (for 127.0.0.1 at 2010-10-08 14:14:01) [GET] + Parameters: {"action"=>"destroy", "id"=>"9", "controller"=>"admin/photos"} + TypusUser Load (0.5ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.2ms) SELECT * FROM "photos" WHERE ("photos"."id" = 9)  +[paperclip] Deleting attachments. +[paperclip] deleting /Users/danbee/Sites/rails/photos/public/system/photos/9/original/Emerald Panarama.jpg +[paperclip] deleting /Users/danbee/Sites/rails/photos/public/system/photos/9/size8/Emerald Panarama.jpg +[paperclip] deleting /Users/danbee/Sites/rails/photos/public/system/photos/9/size5/Emerald Panarama.jpg +[paperclip] deleting /Users/danbee/Sites/rails/photos/public/system/photos/9/size3/Emerald Panarama.jpg +[paperclip] deleting /Users/danbee/Sites/rails/photos/public/system/photos/9/size2/Emerald Panarama.jpg +[paperclip] deleting /Users/danbee/Sites/rails/photos/public/system/photos/9/size11/Emerald Panarama.jpg + Category Load (0.2ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 9 )  + Photo Destroy (0.3ms) DELETE FROM "photos" WHERE "id" = 9 +Redirected to http://localhost:3000/admin/photos +Completed in 92ms (DB: 1) | 302 Found [http://localhost/admin/photos/destroy/9] + + +Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-08 14:14:01) [GET] + Parameters: {"action"=>"index", "controller"=>"admin/photos"} + TypusUser Load (0.6ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + SQL (0.3ms) 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 (0.7ms) SELECT "photos".* FROM "photos" ORDER BY photos.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_table_header (0.1ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.3ms) +Rendered admin/helpers/_flash_message (0.1ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 110ms (View: 29, DB: 2) | 200 OK [http://localhost/admin/photos] + + +Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-08 14:14:17) [GET] + Parameters: {"action"=>"index", "controller"=>"admin/photos"} + 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 (0.7ms) SELECT "photos".* FROM "photos" ORDER BY photos.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_table_header (0.1ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.3ms) +Rendered admin/shared/_footer (0.3ms) +Completed in 50ms (View: 30, DB: 1) | 200 OK [http://localhost/admin/photos] + + +Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-08 14:14:38) [GET] + Parameters: {"action"=>"index", "controller"=>"admin/photos"} + 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.4ms) + Photo Load (0.7ms) SELECT "photos".* FROM "photos" ORDER BY photos.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_table_header (0.1ms) + Category Load (0.3ms) 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.5ms) 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.1ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 8 )  +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/shared/_footer (0.4ms) +Completed in 61ms (View: 38, DB: 4) | 200 OK [http://localhost/admin/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 14:15:01) [GET] + Photo Load (0.9ms) SELECT * FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 16ms (View: 9, DB: 1) | 200 OK [http://localhost/photos] + + +Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 14:15:11) [GET] + Parameters: {"action"=>"edit", "id"=>"3", "controller"=>"admin/photos"} + TypusUser Load (0.5ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.4ms) 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.4ms) +Rendered admin/helpers/_preview (0.1ms) +Rendered admin/templates/_file (4.1ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_string (0.5ms) +Rendered admin/templates/_text (0.5ms) +Rendered admin/templates/_string (0.5ms) +Rendered admin/resources/_form (9.3ms) + SQL (0.2ms) SELECT count(*) AS count_all FROM "categories"  + Category Load (0.4ms) 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 = 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.3ms) 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.1ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 56ms (View: 34, DB: 2) | 200 OK [http://localhost/admin/photos/edit/3] + + +Processing Admin::PhotosController#new (for 127.0.0.1 at 2010-10-08 14:15:58) [GET] + Parameters: {"action"=>"new", "controller"=>"admin/photos"} + 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.7ms) +Rendered admin/templates/_string (0.8ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_text (0.6ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/resources/_form (8.2ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.3ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 93ms (View: 18, DB: 1) | 200 OK [http://localhost/admin/photos/new] + + +Processing Admin::PhotosController#create (for 127.0.0.1 at 2010-10-08 14:16:09) [POST] + Parameters: {"photo"=>{"photo"=>#, "title"=>"Church of Ireland Gate", "flickr_url"=>"", "sort"=>"", "description"=>""}, "commit"=>"Create Photo", "action"=>"create", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "controller"=>"admin/photos"} + TypusUser Load (0.8ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1wcvl7h-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1wcvl7h-0.jpg[0]' -resize "224x" -crop "224x224+0+56" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1wcvl7h-020101008-80675-necn96-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1wcvl7h-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1wcvl7h-0.jpg[0]' -resize "140x" -crop "140x140+0+35" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1wcvl7h-020101008-80675-1ybgtkl-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1wcvl7h-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1wcvl7h-0.jpg[0]' -resize "1024x1024>" '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1wcvl7h-020101008-80675-6cffpt-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1wcvl7h-020101008-80675-6cffpt-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1wcvl7h-020101008-80675-6cffpt-0[0]' -resize "84x" -crop "84x84+0+20" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1wcvl7h-020101008-80675-6cffpt-020101008-80675-agpgrm-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1wcvl7h-020101008-80675-6cffpt-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1wcvl7h-020101008-80675-6cffpt-0[0]' -resize "56x" -crop "56x56+0+13" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1wcvl7h-020101008-80675-6cffpt-020101008-80675-1oy0hw5-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1wcvl7h-020101008-80675-6cffpt-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1wcvl7h-020101008-80675-6cffpt-0[0]' -resize "308x" -crop "308x308+0+76" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1wcvl7h-020101008-80675-6cffpt-020101008-80675-55vx5a-0' 2>/dev/null + Photo Create (1.0ms) 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(329139, '2010-10-08 18:16:12', 'Church of Ireland Gate', '', 'Church of Ireland Gate.jpg', '2010-10-08 18:16:12', 'image/jpeg', '2010-10-08 18:16:09', '', NULL) +[paperclip] Saving attachments. +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/10/size8/Church of Ireland Gate.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/10/size5/Church of Ireland Gate.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/10/size3/Church of Ireland Gate.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/10/original/Church of Ireland Gate.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/10/size2/Church of Ireland Gate.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/10/size11/Church of Ireland Gate.jpg + +NoMethodError (undefined method `photo' for #): + app/models/photo.rb:17:in `get_exif' + vendor/plugins/typus/app/controllers/admin/master_controller.rb:92:in `create' + +Rendered rescues/_trace (40.6ms) +Rendered rescues/_request_and_response (0.5ms) +Rendering rescues/layout (internal_server_error) + + +Processing Admin::PhotosController#create (for 127.0.0.1 at 2010-10-08 14:16:20) [POST] + Parameters: {"photo"=>{"photo"=>#, "title"=>"Church of Ireland Gate", "flickr_url"=>"", "sort"=>"", "description"=>""}, "commit"=>"Create Photo", "action"=>"create", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "controller"=>"admin/photos"} + TypusUser Load (0.8ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1tz5x26-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1tz5x26-0.jpg[0]' -resize "224x" -crop "224x224+0+56" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1tz5x26-020101008-80675-e5b4ti-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1tz5x26-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1tz5x26-0.jpg[0]' -resize "140x" -crop "140x140+0+35" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1tz5x26-020101008-80675-1xrrdly-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1tz5x26-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1tz5x26-0.jpg[0]' -resize "1024x1024>" '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1tz5x26-020101008-80675-1atdqef-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1tz5x26-020101008-80675-1atdqef-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1tz5x26-020101008-80675-1atdqef-0[0]' -resize "84x" -crop "84x84+0+20" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1tz5x26-020101008-80675-1atdqef-020101008-80675-wzhqkt-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1tz5x26-020101008-80675-1atdqef-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1tz5x26-020101008-80675-1atdqef-0[0]' -resize "56x" -crop "56x56+0+13" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1tz5x26-020101008-80675-1atdqef-020101008-80675-folsiy-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1tz5x26-020101008-80675-1atdqef-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1tz5x26-020101008-80675-1atdqef-0[0]' -resize "308x" -crop "308x308+0+76" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-1tz5x26-020101008-80675-1atdqef-020101008-80675-d5doja-0' 2>/dev/null + 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(329139, '2010-10-08 18:16:23', 'Church of Ireland Gate', '', 'Church of Ireland Gate.jpg', '2010-10-08 18:16:23', 'image/jpeg', '2010-10-08 18:16:20', '', NULL) +[paperclip] Saving attachments. +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/10/size8/Church of Ireland Gate.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/10/size5/Church of Ireland Gate.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/10/size3/Church of Ireland Gate.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/10/original/Church of Ireland Gate.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/10/size2/Church of Ireland Gate.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/10/size11/Church of Ireland Gate.jpg +Redirected to http://localhost:3000/admin/photos/edit/10 +Completed in 2272ms (DB: 1) | 302 Found [http://localhost/admin/photos/create] + + +Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 14:16:23) [GET] + Parameters: {"action"=>"edit", "id"=>"10", "controller"=>"admin/photos"} + TypusUser Load (0.5ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.2ms) SELECT * FROM "photos" WHERE ("photos"."id" = 10)  +Rendering template within layouts/admin +Rendering admin/resources/edit +Rendered admin/helpers/_list (0.1ms) +Rendered admin/helpers/_search (0.5ms) +Rendered admin/helpers/_preview (0.2ms) +Rendered admin/templates/_file (4.3ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_text (0.4ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/resources/_form (10.2ms) + SQL (0.2ms) SELECT count(*) AS count_all FROM "categories"  + Category Load (0.4ms) 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 = 10 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 10)  + 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 = 10 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 10)  + Category Load (0.1ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 10 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/helpers/_flash_message (0.1ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 51ms (View: 29, DB: 2) | 200 OK [http://localhost/admin/photos/edit/10] + + +Processing Admin::PhotosController#new (for 127.0.0.1 at 2010-10-08 14:17:24) [GET] + Parameters: {"action"=>"new", "controller"=>"admin/photos"} + 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.8ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_string (0.5ms) +Rendered admin/templates/_text (0.4ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/resources/_form (7.7ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.3ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 131ms (View: 18, DB: 1) | 200 OK [http://localhost/admin/photos/new] + + +Processing Admin::PhotosController#create (for 127.0.0.1 at 2010-10-08 14:17:32) [POST] + Parameters: {"photo"=>{"photo"=>#, "title"=>"Church of Ireland", "flickr_url"=>"", "sort"=>"", "description"=>""}, "commit"=>"Create Photo", "action"=>"create", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "controller"=>"admin/photos"} + TypusUser Load (0.8ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-g5xeoq-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-g5xeoq-0.jpg[0]' -resize "224x" -crop "224x224+0+56" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-g5xeoq-020101008-80675-1ohzdpi-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-g5xeoq-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-g5xeoq-0.jpg[0]' -resize "140x" -crop "140x140+0+35" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-g5xeoq-020101008-80675-1kpm1xa-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-g5xeoq-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-g5xeoq-0.jpg[0]' -resize "1024x1024>" '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-g5xeoq-020101008-80675-9tneve-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-g5xeoq-020101008-80675-9tneve-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-g5xeoq-020101008-80675-9tneve-0[0]' -resize "84x" -crop "84x84+0+20" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-g5xeoq-020101008-80675-9tneve-020101008-80675-1nf487t-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-g5xeoq-020101008-80675-9tneve-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-g5xeoq-020101008-80675-9tneve-0[0]' -resize "56x" -crop "56x56+0+13" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-g5xeoq-020101008-80675-9tneve-020101008-80675-1rg5z00-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-g5xeoq-020101008-80675-9tneve-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-g5xeoq-020101008-80675-9tneve-0[0]' -resize "308x" -crop "308x308+0+76" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-g5xeoq-020101008-80675-9tneve-020101008-80675-kei9sg-0' 2>/dev/null + Photo Create (0.6ms) 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(498517, '2010-10-08 18:17:35', 'Church of Ireland', '', 'Church of Ireland.jpg', '2010-10-08 18:17:35', 'image/jpeg', '2010-10-08 18:17:33', '', NULL) +[paperclip] Saving attachments. +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/11/size8/Church of Ireland.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/11/size5/Church of Ireland.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/11/size3/Church of Ireland.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/11/original/Church of Ireland.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/11/size2/Church of Ireland.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/11/size11/Church of Ireland.jpg + +NoMethodError (undefined method `path' for nil:NilClass): + app/models/photo.rb:17:in `get_exif' + vendor/plugins/typus/app/controllers/admin/master_controller.rb:92:in `create' + +Rendered rescues/_trace (171.0ms) +Rendered rescues/_request_and_response (0.4ms) +Rendering rescues/layout (internal_server_error) + + +Processing Admin::PhotosController#create (for 127.0.0.1 at 2010-10-08 14:19:38) [POST] + Parameters: {"photo"=>{"photo"=>#, "title"=>"Church of Ireland", "flickr_url"=>"", "sort"=>"", "description"=>""}, "commit"=>"Create Photo", "action"=>"create", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "controller"=>"admin/photos"} + TypusUser Load (0.6ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-o135nr-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-o135nr-0.jpg[0]' -resize "224x" -crop "224x224+0+56" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-o135nr-020101008-80675-wij7rq-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-o135nr-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-o135nr-0.jpg[0]' -resize "140x" -crop "140x140+0+35" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-o135nr-020101008-80675-1swnk4g-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-o135nr-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-o135nr-0.jpg[0]' -resize "1024x1024>" '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-o135nr-020101008-80675-17vty88-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-o135nr-020101008-80675-17vty88-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-o135nr-020101008-80675-17vty88-0[0]' -resize "84x" -crop "84x84+0+20" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-o135nr-020101008-80675-17vty88-020101008-80675-nt9e06-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-o135nr-020101008-80675-17vty88-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-o135nr-020101008-80675-17vty88-0[0]' -resize "56x" -crop "56x56+0+13" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-o135nr-020101008-80675-17vty88-020101008-80675-1iopca8-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-o135nr-020101008-80675-17vty88-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-o135nr-020101008-80675-17vty88-0[0]' -resize "308x" -crop "308x308+0+76" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-o135nr-020101008-80675-17vty88-020101008-80675-s9lmu5-0' 2>/dev/null + Photo Create (0.9ms) 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(498517, '2010-10-08 18:19:40', 'Church of Ireland', '', 'Church of Ireland.jpg', '2010-10-08 18:19:40', 'image/jpeg', '2010-10-08 18:19:38', '', NULL) +[paperclip] Saving attachments. +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/11/size8/Church of Ireland.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/11/size5/Church of Ireland.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/11/size3/Church of Ireland.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/11/original/Church of Ireland.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/11/size2/Church of Ireland.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/11/size11/Church of Ireland.jpg +Redirected to http://localhost:3000/admin/photos/edit/11 +Completed in 2370ms (DB: 1) | 302 Found [http://localhost/admin/photos/create] + + +Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 14:19:40) [GET] + Parameters: {"action"=>"edit", "id"=>"11", "controller"=>"admin/photos"} + TypusUser Load (0.7ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."id" = 11)  +Rendering template within layouts/admin +Rendering admin/resources/edit +Rendered admin/helpers/_list (0.1ms) +Rendered admin/helpers/_search (0.5ms) +Rendered admin/helpers/_preview (0.2ms) +Rendered admin/templates/_file (5.0ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_text (0.4ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/resources/_form (11.0ms) + SQL (0.2ms) SELECT count(*) AS count_all FROM "categories"  + Category Load (0.4ms) 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 = 11 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 11)  + 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 = 11 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."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 = 11 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.3ms) +Rendered admin/helpers/_flash_message (0.1ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 58ms (View: 31, DB: 2) | 200 OK [http://localhost/admin/photos/edit/11] + + +Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-08 14:20:01) [GET] + Parameters: {"action"=>"index", "controller"=>"admin/photos"} + 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.4ms) + Photo Load (0.9ms) SELECT "photos".* FROM "photos" ORDER BY photos.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_table_header (0.1ms) + Category Load (0.3ms) 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.2ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 4 )  + Category Load (0.2ms) 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.1ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 8 )  + Category Load (0.1ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 10 )  + Category Load (0.1ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 11 )  +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 121ms (View: 98, DB: 4) | 200 OK [http://localhost/admin/photos] + + +Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 14:20:04) [GET] + Parameters: {"action"=>"edit", "id"=>"11", "controller"=>"admin/photos"} + TypusUser Load (0.6ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."id" = 11)  +Rendering template within layouts/admin +Rendering admin/resources/edit +Rendered admin/helpers/_list (0.1ms) +Rendered admin/helpers/_search (0.5ms) +Rendered admin/helpers/_preview (0.2ms) +Rendered admin/templates/_file (4.0ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_string (0.5ms) +Rendered admin/templates/_text (0.4ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/resources/_form (9.3ms) + SQL (0.1ms) 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 = 11 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 11)  + SQL (0.1ms) SELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 11 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 11)  + Category Load (0.1ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 11 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 49ms (View: 28, DB: 2) | 200 OK [http://localhost/admin/photos/edit/11] + + +Processing PhotosController#new (for 127.0.0.1 at 2010-10-08 14:20:11) [GET] + Category Load (0.5ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering photos/new +Completed in 26ms (View: 12, DB: 1) | 200 OK [http://localhost/photos/new] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 14:20:26) [GET] + Photo Load (1.0ms) SELECT * FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 17ms (View: 10, DB: 1) | 200 OK [http://localhost/photos] + + +Processing PhotosController#create (for 127.0.0.1 at 2010-10-08 14:20:48) [POST] + Parameters: {"photo"=>{"photo"=>#}, "commit"=>"Upload", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw="} +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-i5blh0-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-i5blh0-0.jpg[0]' -resize "224x" -crop "224x224+0+56" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-i5blh0-020101008-80675-1tlja46-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-i5blh0-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-i5blh0-0.jpg[0]' -resize "140x" -crop "140x140+0+35" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-i5blh0-020101008-80675-lmpodj-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-i5blh0-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-i5blh0-0.jpg[0]' -resize "1024x1024>" '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-i5blh0-020101008-80675-12hqa8i-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-i5blh0-020101008-80675-12hqa8i-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-i5blh0-020101008-80675-12hqa8i-0[0]' -resize "84x" -crop "84x84+0+20" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-i5blh0-020101008-80675-12hqa8i-020101008-80675-dhne88-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-i5blh0-020101008-80675-12hqa8i-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-i5blh0-020101008-80675-12hqa8i-0[0]' -resize "56x" -crop "56x56+0+13" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-i5blh0-020101008-80675-12hqa8i-020101008-80675-4vh02g-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-i5blh0-020101008-80675-12hqa8i-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-i5blh0-020101008-80675-12hqa8i-0[0]' -resize "308x" -crop "308x308+0+76" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-i5blh0-020101008-80675-12hqa8i-020101008-80675-1nofh9e-0' 2>/dev/null + 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(389062, '2010-10-08 18:20:50', NULL, NULL, 'Croagh Patrick no1.jpg', '2010-10-08 18:20:50', 'image/jpeg', '2010-10-08 18:20:48', NULL, NULL) +[paperclip] Saving attachments. +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/12/size8/Croagh Patrick no1.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/12/size5/Croagh Patrick no1.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/12/size3/Croagh Patrick no1.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/12/original/Croagh Patrick no1.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/12/size2/Croagh Patrick no1.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/12/size11/Croagh Patrick no1.jpg +Redirected to http://localhost:3000/photos/12 +Completed in 2282ms (DB: 0) | 302 Found [http://localhost/photos] + + +Processing PhotosController#show (for 127.0.0.1 at 2010-10-08 14:20:50) [GET] + Parameters: {"id"=>"12"} + Photo Load (0.2ms) SELECT * FROM "photos" WHERE ("photos"."id" = 12)  +Rendering template within layouts/photos +Rendering photos/show +Completed in 108ms (View: 5, DB: 0) | 200 OK [http://localhost/photos/12] + + +Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-08 14:20:52) [GET] + Parameters: {"action"=>"index", "controller"=>"admin/photos"} + 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.3ms) SELECT "photos".* FROM "photos" ORDER BY photos.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_table_header (0.1ms) + Category Load (0.3ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 1 )  + Category Load (0.5ms) 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.4ms) 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.4ms) 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.2ms) 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 )  +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/helpers/_flash_message (0.1ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 80ms (View: 52, DB: 6) | 200 OK [http://localhost/admin/photos] + + +Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 14:20:55) [GET] + Parameters: {"action"=>"edit", "id"=>"12", "controller"=>"admin/photos"} + TypusUser Load (0.5ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.2ms) SELECT * FROM "photos" WHERE ("photos"."id" = 12)  +Rendering template within layouts/admin +Rendering admin/resources/edit +Rendered admin/helpers/_list (0.1ms) +Rendered admin/helpers/_search (0.4ms) +Rendered admin/helpers/_preview (0.2ms) +Rendered admin/templates/_file (4.2ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_string (0.5ms) +Rendered admin/templates/_text (0.4ms) +Rendered admin/templates/_string (0.5ms) +Rendered admin/resources/_form (9.3ms) + SQL (0.2ms) SELECT count(*) AS count_all FROM "categories"  + Category Load (0.4ms) 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 = 12 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 12)  + 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 = 12 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 12)  + Category Load (0.1ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 12 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.3ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 48ms (View: 28, DB: 2) | 200 OK [http://localhost/admin/photos/edit/12] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 14:21:06) [GET] + Photo Load (1.1ms) SELECT * FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 18ms (View: 11, DB: 1) | 200 OK [http://localhost/photos] + + +Processing PhotosController#index (for 192.168.42.102 at 2010-10-08 14:53:36) [GET] + Photo Load (1.3ms) SELECT * FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 23ms (View: 16, DB: 1) | 200 OK [http://junpei/photos] + + +Processing CategoriesController#index (for 192.168.42.102 at 2010-10-08 14:53:58) [GET] + Category Load (0.9ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 60ms (View: 31, DB: 1) | 200 OK [http://junpei/categories] + + +Processing ApplicationController#index (for 192.168.42.102 at 2010-10-08 14:53:59) [GET] + +ActionController::RoutingError (No route matches "/images/sg_grid_sub.png" with {:method=>:get}): + + +Rendering rescues/layout (not_found) + + +Processing PhotosController#index (for 192.168.42.102 at 2010-10-08 14:54:01) [GET] + Parameters: {"category_id"=>"1"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1 +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.4ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 )  +Completed in 18ms (View: 8, DB: 1) | 200 OK [http://junpei/categories/1/photos] + + +Processing ApplicationController#index (for 192.168.42.102 at 2010-10-08 14:54:01) [GET] + +ActionController::RoutingError (No route matches "/images/sg_grid_sub.png" with {:method=>:get}): + + +Rendering rescues/layout (not_found) + + +Processing PhotosController#index (for 192.168.42.102 at 2010-10-08 14:54:05) [GET] + Parameters: {"category_id"=>"2"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '2') LIMIT 1 +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.4ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 2 )  +Completed in 77ms (View: 8, DB: 1) | 200 OK [http://junpei/categories/2/photos] + + +Processing ApplicationController#index (for 192.168.42.102 at 2010-10-08 14:54:06) [GET] + +ActionController::RoutingError (No route matches "/images/sg_grid_sub.png" with {:method=>:get}): + + +Rendering rescues/layout (not_found) + + +Processing PhotosController#index (for 192.168.42.102 at 2010-10-08 14:54:09) [GET] + Parameters: {"category_id"=>"3"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '3') LIMIT 1 +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.7ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 3 )  +Completed in 19ms (View: 8, DB: 1) | 200 OK [http://junpei/categories/3/photos] + + +Processing ApplicationController#index (for 192.168.42.102 at 2010-10-08 14:54:09) [GET] + +ActionController::RoutingError (No route matches "/images/sg_grid_sub.png" with {:method=>:get}): + + +Rendering rescues/layout (not_found) + + +Processing PhotosController#index (for 192.168.42.102 at 2010-10-08 14:54:18) [GET] + Parameters: {"category_id"=>"4"} + Category Load (0.3ms) SELECT * FROM "categories" WHERE ("categories"."id" = '4') LIMIT 1 +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.5ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 4 )  +Completed in 26ms (View: 10, DB: 1) | 200 OK [http://junpei/categories/4/photos] + + +Processing ApplicationController#index (for 192.168.42.102 at 2010-10-08 14:54:18) [GET] + +ActionController::RoutingError (No route matches "/images/sg_grid_sub.png" with {:method=>:get}): + + +Rendering rescues/layout (not_found) + + +Processing PhotosController#index (for 192.168.42.102 at 2010-10-08 14:54:29) [GET] + Parameters: {"category_id"=>"5"} + Category Load (0.4ms) SELECT * FROM "categories" WHERE ("categories"."id" = '5') LIMIT 1 +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.2ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 )  +Completed in 19ms (View: 6, DB: 1) | 200 OK [http://junpei/categories/5/photos] + + +Processing ApplicationController#index (for 192.168.42.102 at 2010-10-08 14:54:30) [GET] + +ActionController::RoutingError (No route matches "/images/sg_grid_sub.png" with {:method=>:get}): + + +Rendering rescues/layout (not_found) + + +Processing PhotosController#index (for 192.168.42.102 at 2010-10-08 14:54:32) [GET] + Parameters: {"category_id"=>"6"} + Category Load (0.4ms) SELECT * FROM "categories" WHERE ("categories"."id" = '6') LIMIT 1 +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.6ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 6 )  +Completed in 22ms (View: 10, DB: 1) | 200 OK [http://junpei/categories/6/photos] + + +Processing ApplicationController#index (for 192.168.42.102 at 2010-10-08 14:54:33) [GET] + +ActionController::RoutingError (No route matches "/images/sg_grid_sub.png" with {:method=>:get}): + + +Rendering rescues/layout (not_found) + + +Processing PhotosController#index (for 192.168.42.102 at 2010-10-08 14:54:53) [GET] + Parameters: {"category_id"=>"1"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1 +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.4ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 )  +Completed in 17ms (View: 8, DB: 1) | 200 OK [http://junpei/categories/1/photos] + + +Processing ApplicationController#index (for 192.168.42.102 at 2010-10-08 14:54:54) [GET] + +ActionController::RoutingError (No route matches "/images/sg_grid_sub.png" with {:method=>:get}): + + +Rendering rescues/layout (not_found) + + +Processing PhotosController#index (for 192.168.42.102 at 2010-10-08 15:19:23) [GET] + Parameters: {"category_id"=>"4"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '4') LIMIT 1 +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.4ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 4 )  +Completed in 39ms (View: 9, DB: 1) | 200 OK [http://junpei/categories/4/photos] + + +Processing ApplicationController#index (for 192.168.42.102 at 2010-10-08 15:19:23) [GET] + +ActionController::RoutingError (No route matches "/images/sg_grid_sub.png" with {:method=>:get}): + + +Rendering rescues/layout (not_found) + + +Processing PhotosController#index (for 192.168.42.102 at 2010-10-08 15:19:41) [GET] + Parameters: {"category_id"=>"2"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '2') LIMIT 1 +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.4ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 2 )  +Completed in 16ms (View: 7, DB: 1) | 200 OK [http://junpei/categories/2/photos] + + +Processing ApplicationController#index (for 192.168.42.102 at 2010-10-08 15:19:41) [GET] + +ActionController::RoutingError (No route matches "/images/sg_grid_sub.png" with {:method=>:get}): + + +Rendering rescues/layout (not_found) + + +Processing PhotosController#index (for 192.168.42.102 at 2010-10-08 15:19:59) [GET] + Parameters: {"category_id"=>"6"} + Category Load (0.3ms) SELECT * FROM "categories" WHERE ("categories"."id" = '6') LIMIT 1 +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.4ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 6 )  +Completed in 72ms (View: 7, DB: 1) | 200 OK [http://junpei/categories/6/photos] + + +Processing ApplicationController#index (for 192.168.42.102 at 2010-10-08 15:20:00) [GET] + +ActionController::RoutingError (No route matches "/images/sg_grid_sub.png" with {:method=>:get}): + + +Rendering rescues/layout (not_found) + + +Processing PhotosController#index (for 192.168.42.102 at 2010-10-08 15:20:28) [GET] + Parameters: {"category_id"=>"5"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '5') LIMIT 1 +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.2ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 )  +Completed in 13ms (View: 4, DB: 0) | 200 OK [http://junpei/categories/5/photos] + + +Processing ApplicationController#index (for 192.168.42.102 at 2010-10-08 15:20:29) [GET] + +ActionController::RoutingError (No route matches "/images/sg_grid_sub.png" with {:method=>:get}): + + +Rendering rescues/layout (not_found) + + +Processing PhotosController#index (for 192.168.42.102 at 2010-10-08 15:20:32) [GET] + Parameters: {"category_id"=>"2"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '2') LIMIT 1 +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.4ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 2 )  +Completed in 17ms (View: 7, DB: 1) | 200 OK [http://junpei/categories/2/photos] + + +Processing ApplicationController#index (for 192.168.42.102 at 2010-10-08 15:20:33) [GET] + +ActionController::RoutingError (No route matches "/images/sg_grid_sub.png" with {:method=>:get}): + + +Rendering rescues/layout (not_found) + + +Processing TypusController#dashboard (for 192.168.42.102 at 2010-10-08 15:20:41) [GET] + Parameters: {"action"=>"dashboard", "controller"=>"typus"} +Redirected to http://junpei:3000/admin/sign_in +Filter chain halted as [:require_login] rendered_or_redirected. +Completed in 217ms (DB: 0) | 302 Found [http://junpei/admin] + + +Processing TypusController#sign_in (for 192.168.42.102 at 2010-10-08 15:20:41) [GET] + Parameters: {"action"=>"sign_in", "controller"=>"typus"} + SQL (0.5ms) SELECT count(*) AS count_all FROM "typus_users"  +Rendering template within layouts/typus +Rendering typus/sign_in +Rendered admin/shared/_footer (0.2ms) +Completed in 32ms (View: 28, DB: 1) | 200 OK [http://junpei/admin/sign_in] + + +Processing TypusController#sign_in (for 192.168.42.102 at 2010-10-08 15:21:11) [POST] + Parameters: {"typus_user"=>{"password"=>"[FILTERED]", "email"=>"danbee@gmail.com"}, "commit"=>"Sign in", "action"=>"sign_in", "authenticity_token"=>"PKpPTAedEzahxXzQabewgEm9kPrYc0PbZ/6cvAlIhEQ=", "controller"=>"typus"} + SQL (0.6ms) SELECT count(*) AS count_all FROM "typus_users"  + TypusUser Load (0.2ms) SELECT * FROM "typus_users" WHERE ("typus_users"."status" = 't' AND "typus_users"."email" = 'danbee@gmail.com') LIMIT 1 +Redirected to http://junpei:3000/admin +Completed in 8ms (DB: 1) | 302 Found [http://junpei/admin/sign_in] + + +Processing TypusController#dashboard (for 192.168.42.102 at 2010-10-08 15:21:11) [GET] + Parameters: {"action"=>"dashboard", "controller"=>"typus"} + 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 (0.2ms) +Rendered admin/helpers/_applications (2.1ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.3ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 26ms (View: 21, DB: 1) | 200 OK [http://junpei/admin] + + +Processing Admin::PhotosController#index (for 192.168.42.102 at 2010-10-08 15:21:16) [GET] + Parameters: {"action"=>"index", "controller"=>"admin/photos"} + 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 (0.9ms) SELECT "photos".* FROM "photos" ORDER BY photos.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_table_header (0.1ms) + Category Load (0.3ms) 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.2ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 4 )  + Category Load (0.2ms) 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.2ms) 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.1ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 12 )  +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 66ms (View: 42, DB: 4) | 200 OK [http://junpei/admin/photos] + + +Processing Admin::PhotosController#edit (for 192.168.42.102 at 2010-10-08 15:21:25) [GET] + Parameters: {"action"=>"edit", "id"=>"1", "controller"=>"admin/photos"} + TypusUser Load (0.5ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."id" = 1)  +Rendering template within layouts/admin +Rendering admin/resources/edit +Rendered admin/helpers/_list (0.1ms) +Rendered admin/helpers/_search (0.4ms) +Rendered admin/helpers/_preview (0.2ms) +Rendered admin/templates/_file (4.5ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_text (0.4ms) +Rendered admin/templates/_string (0.5ms) +Rendered admin/resources/_form (10.0ms) + SQL (0.2ms) SELECT count(*) AS count_all FROM "categories"  + Category Load (0.4ms) 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 = 1 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 1)  + 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 = 1 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 1)  + Category Load (0.2ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 1 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_table_header (0.1ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.5ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 110ms (View: 32, DB: 2) | 200 OK [http://junpei/admin/photos/edit/1] + + +Processing Admin::PhotosController#relate (for 192.168.42.102 at 2010-10-08 15:21:36) [POST] + Parameters: {"commit"=>"Add", "related"=>{"model"=>"Category", "relation"=>"categories", "id"=>"5"}, "action"=>"relate", "authenticity_token"=>"PKpPTAedEzahxXzQabewgEm9kPrYc0PbZ/6cvAlIhEQ=", "id"=>"1", "controller"=>"admin/photos"} + TypusUser Load (0.5ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.4ms) SELECT * FROM "photos" WHERE ("photos"."id" = 1)  + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = 5)  + SQL (0.3ms) INSERT INTO "categories_photos" ("category_id", "photo_id") VALUES (5, 1) +Redirected to http://junpei:3000/admin/photos/edit/1 +Completed in 28ms (DB: 1) | 302 Found [http://junpei/admin/photos/relate/1] + + +Processing Admin::PhotosController#edit (for 192.168.42.102 at 2010-10-08 15:21:36) [GET] + Parameters: {"action"=>"edit", "id"=>"1", "controller"=>"admin/photos"} + TypusUser Load (0.5ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.4ms) SELECT * FROM "photos" WHERE ("photos"."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/helpers/_preview (0.3ms) +Rendered admin/templates/_file (5.8ms) +Rendered admin/templates/_string (1.0ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/templates/_text (0.5ms) +Rendered admin/templates/_string (0.9ms) +Rendered admin/resources/_form (13.3ms) + SQL (0.2ms) SELECT count(*) AS count_all FROM "categories"  + Category Load (0.4ms) 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 = 1 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 1)  + 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 = 1 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 1)  + Category Load (0.5ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 1 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_table_header (0.1ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.6ms) +Rendered admin/helpers/_flash_message (0.1ms) +Rendered admin/shared/_footer (0.3ms) +Completed in 138ms (View: 45, DB: 3) | 200 OK [http://junpei/admin/photos/edit/1] + + +Processing CategoriesController#index (for 192.168.42.102 at 2010-10-08 15:21:53) [GET] + Category Load (0.7ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 9ms (View: 4, DB: 1) | 200 OK [http://junpei/categories] + + +Processing ApplicationController#index (for 192.168.42.102 at 2010-10-08 15:21:54) [GET] + +ActionController::RoutingError (No route matches "/images/sg_grid_sub.png" with {:method=>:get}): + + +Rendering rescues/layout (not_found) + + +Processing PhotosController#index (for 192.168.42.102 at 2010-10-08 15:21:56) [GET] + Parameters: {"category_id"=>"5"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '5') LIMIT 1 +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.3ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 )  +Completed in 15ms (View: 6, DB: 0) | 200 OK [http://junpei/categories/5/photos] + + +Processing ApplicationController#index (for 192.168.42.102 at 2010-10-08 15:21:56) [GET] + +ActionController::RoutingError (No route matches "/images/sg_grid_sub.png" with {:method=>:get}): + + +Rendering rescues/layout (not_found) + + +Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 17:02:30) [GET] + Parameters: {"action"=>"edit", "id"=>"12", "controller"=>"admin/photos"} + TypusUser Load (0.7ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."id" = 12)  +Rendering template within layouts/admin +Rendering admin/resources/edit +Rendered admin/helpers/_list (0.1ms) +Rendered admin/helpers/_search (0.4ms) +Rendered admin/helpers/_preview (0.2ms) +Rendered admin/templates/_file (4.6ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_string (0.5ms) +Rendered admin/templates/_text (0.4ms) +Rendered admin/templates/_string (0.5ms) +Rendered admin/resources/_form (9.9ms) + SQL (0.2ms) SELECT count(*) AS count_all FROM "categories"  + Category Load (0.4ms) 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 = 12 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 12)  + 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 = 12 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 12)  + Category Load (0.2ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 12 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 165ms (View: 45, DB: 2) | 200 OK [http://localhost/admin/photos/edit/12] + + +Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-08 17:02:41) [GET] + Parameters: {"action"=>"index", "controller"=>"admin/photos"} + 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.2ms) +Rendered admin/helpers/_search (0.5ms) + Photo Load (0.9ms) SELECT "photos".* FROM "photos" ORDER BY photos.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_table_header (0.1ms) + Category Load (0.3ms) 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.4ms) 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.1ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 8 )  + Category Load (0.1ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 10 )  + Category Load (0.1ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 11 )  + Category Load (0.1ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 12 )  +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.8ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 123ms (View: 100, DB: 4) | 200 OK [http://localhost/admin/photos] + + +Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 17:02:44) [GET] + Parameters: {"action"=>"edit", "id"=>"12", "controller"=>"admin/photos"} + TypusUser Load (0.6ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.2ms) SELECT * FROM "photos" WHERE ("photos"."id" = 12)  +Rendering template within layouts/admin +Rendering admin/resources/edit +Rendered admin/helpers/_list (0.1ms) +Rendered admin/helpers/_search (0.4ms) +Rendered admin/helpers/_preview (0.2ms) +Rendered admin/templates/_file (4.0ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_string (0.5ms) +Rendered admin/templates/_text (0.5ms) +Rendered admin/templates/_string (0.5ms) +Rendered admin/resources/_form (9.1ms) + SQL (0.2ms) SELECT count(*) AS count_all FROM "categories"  + Category Load (0.4ms) 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 = 12 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 12)  + 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 = 12 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 12)  + Category Load (0.1ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 12 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_header (0.2ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 109ms (View: 88, DB: 2) | 200 OK [http://localhost/admin/photos/edit/12] + + +Processing Admin::PhotosController#relate (for 127.0.0.1 at 2010-10-08 17:02:56) [POST] + Parameters: {"commit"=>"Add", "related"=>{"model"=>"Category", "relation"=>"categories", "id"=>"1"}, "action"=>"relate", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "id"=>"12", "controller"=>"admin/photos"} + TypusUser Load (0.5ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."id" = 12)  + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = 1)  + SQL (22.9ms) INSERT INTO "categories_photos" ("category_id", "photo_id") VALUES (1, 12) +Redirected to http://localhost:3000/admin/photos/edit/12 +Completed in 49ms (DB: 24) | 302 Found [http://localhost/admin/photos/relate/12] + + +Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 17:02:56) [GET] + Parameters: {"action"=>"edit", "id"=>"12", "controller"=>"admin/photos"} + TypusUser Load (0.5ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.2ms) SELECT * FROM "photos" WHERE ("photos"."id" = 12)  +Rendering template within layouts/admin +Rendering admin/resources/edit +Rendered admin/helpers/_list (0.1ms) +Rendered admin/helpers/_search (0.4ms) +Rendered admin/helpers/_preview (0.2ms) +Rendered admin/templates/_file (4.0ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/templates/_string (0.5ms) +Rendered admin/templates/_text (0.4ms) +Rendered admin/templates/_string (0.5ms) +Rendered admin/resources/_form (9.1ms) + SQL (0.2ms) SELECT count(*) AS count_all FROM "categories"  + Category Load (0.6ms) 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 = 12 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 12)  + 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 = 12 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."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 = 12 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_table_header (0.1ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.3ms) +Rendered admin/helpers/_flash_message (0.1ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 113ms (View: 92, DB: 2) | 200 OK [http://localhost/admin/photos/edit/12] + + +Processing Admin::PhotosController#update (for 127.0.0.1 at 2010-10-08 17:02:57) [PUT] + Parameters: {"photo"=>{"title"=>"", "flickr_url"=>"", "sort"=>"", "description"=>""}, "commit"=>"Save Photo", "action"=>"update", "_method"=>"put", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "id"=>"12", "controller"=>"admin/photos"} + TypusUser Load (0.6ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.2ms) SELECT * FROM "photos" WHERE ("photos"."id" = 12)  + Photo Update (0.4ms) UPDATE "photos" SET "updated_at" = '2010-10-08 21:02:57', "title" = '', "flickr_url" = '', "description" = '' WHERE "id" = 12 +[paperclip] Saving attachments. +Redirected to http://localhost:3000/admin/photos/edit/12 +Completed in 45ms (DB: 1) | 302 Found [http://localhost/admin/photos/update/12] + + +Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 17:02:57) [GET] + Parameters: {"action"=>"edit", "id"=>"12", "controller"=>"admin/photos"} + TypusUser Load (0.5ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.4ms) SELECT * FROM "photos" WHERE ("photos"."id" = 12)  +Rendering template within layouts/admin +Rendering admin/resources/edit +Rendered admin/helpers/_list (0.1ms) +Rendered admin/helpers/_search (0.6ms) +Rendered admin/helpers/_preview (0.2ms) +Rendered admin/templates/_file (4.3ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_text (0.5ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/resources/_form (10.1ms) + SQL (0.2ms) SELECT count(*) AS count_all FROM "categories"  + Category Load (0.4ms) 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 = 12 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 12)  + 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 = 12 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 12)  + Category Load (0.2ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 12 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_table_header (0.1ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.5ms) +Rendered admin/helpers/_flash_message (0.1ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 119ms (View: 35, DB: 2) | 200 OK [http://localhost/admin/photos/edit/12] + + +Processing Admin::PhotosController#update (for 127.0.0.1 at 2010-10-08 17:03:05) [PUT] + Parameters: {"photo"=>{"title"=>"Croagh Patrick #1", "flickr_url"=>"", "sort"=>"", "description"=>""}, "commit"=>"Save Photo", "action"=>"update", "_method"=>"put", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "id"=>"12", "controller"=>"admin/photos"} + TypusUser Load (0.5ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."id" = 12)  + Photo Update (0.3ms) UPDATE "photos" SET "updated_at" = '2010-10-08 21:03:05', "title" = 'Croagh Patrick #1' WHERE "id" = 12 +[paperclip] Saving attachments. +Redirected to http://localhost:3000/admin/photos/edit/12 +Completed in 30ms (DB: 1) | 302 Found [http://localhost/admin/photos/update/12] + + +Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 17:03:05) [GET] + Parameters: {"action"=>"edit", "id"=>"12", "controller"=>"admin/photos"} + TypusUser Load (0.5ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."id" = 12)  +Rendering template within layouts/admin +Rendering admin/resources/edit +Rendered admin/helpers/_list (0.1ms) +Rendered admin/helpers/_search (0.5ms) +Rendered admin/helpers/_preview (0.2ms) +Rendered admin/templates/_file (4.3ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_string (0.5ms) +Rendered admin/templates/_text (0.4ms) +Rendered admin/templates/_string (0.5ms) +Rendered admin/resources/_form (9.6ms) + SQL (0.2ms) SELECT count(*) AS count_all FROM "categories"  + Category Load (0.4ms) 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 = 12 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 12)  + 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 = 12 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 12)  + Category Load (0.2ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 12 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_table_header (0.1ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.3ms) +Rendered admin/helpers/_flash_message (0.1ms) +Rendered admin/shared/_footer (0.3ms) +Completed in 54ms (View: 32, DB: 2) | 200 OK [http://localhost/admin/photos/edit/12] + + +Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-08 17:03:07) [GET] + Parameters: {"action"=>"index", "controller"=>"admin/photos"} + 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.4ms) + Photo Load (1.0ms) 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.2ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 4 )  + Category Load (0.2ms) 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.2ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 8 )  + Category Load (0.1ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 10 )  + Category Load (0.1ms) 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 )  +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.8ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 122ms (View: 99, DB: 4) | 200 OK [http://localhost/admin/photos] + + +Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 17:03:11) [GET] + Parameters: {"action"=>"edit", "id"=>"11", "controller"=>"admin/photos"} + TypusUser Load (0.6ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."id" = 11)  +Rendering template within layouts/admin +Rendering admin/resources/edit +Rendered admin/helpers/_list (0.1ms) +Rendered admin/helpers/_search (0.5ms) +Rendered admin/helpers/_preview (0.1ms) +Rendered admin/templates/_file (4.1ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_text (0.4ms) +Rendered admin/templates/_string (0.5ms) +Rendered admin/resources/_form (9.3ms) + SQL (0.2ms) SELECT count(*) AS count_all FROM "categories"  + Category Load (0.4ms) 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 = 11 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 11)  + 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 = 11 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 11)  + Category Load (0.1ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 11 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.3ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 51ms (View: 27, DB: 2) | 200 OK [http://localhost/admin/photos/edit/11] + + +Processing Admin::PhotosController#relate (for 127.0.0.1 at 2010-10-08 17:03:16) [POST] + Parameters: {"commit"=>"Add", "related"=>{"model"=>"Category", "relation"=>"categories", "id"=>"1"}, "action"=>"relate", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "id"=>"11", "controller"=>"admin/photos"} + TypusUser Load (0.6ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.2ms) SELECT * FROM "photos" WHERE ("photos"."id" = 11)  + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = 1)  + SQL (0.2ms) INSERT INTO "categories_photos" ("category_id", "photo_id") VALUES (1, 11) +Redirected to http://localhost:3000/admin/photos/edit/11 +Completed in 28ms (DB: 1) | 302 Found [http://localhost/admin/photos/relate/11] + + +Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 17:03:16) [GET] + Parameters: {"action"=>"edit", "id"=>"11", "controller"=>"admin/photos"} + TypusUser Load (0.5ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."id" = 11)  +Rendering template within layouts/admin +Rendering admin/resources/edit +Rendered admin/helpers/_list (0.1ms) +Rendered admin/helpers/_search (0.4ms) +Rendered admin/helpers/_preview (0.2ms) +Rendered admin/templates/_file (5.3ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_text (0.4ms) +Rendered admin/templates/_string (0.5ms) +Rendered admin/resources/_form (10.7ms) + SQL (0.2ms) SELECT count(*) AS count_all FROM "categories"  + Category Load (0.4ms) 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 = 11 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 11)  + 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 = 11 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 11)  + Category Load (0.4ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 11 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_table_header (0.1ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/helpers/_flash_message (0.1ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 110ms (View: 89, DB: 2) | 200 OK [http://localhost/admin/photos/edit/11] + + +Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-08 17:03:23) [GET] + Parameters: {"action"=>"index", "controller"=>"admin/photos"} + TypusUser Load (0.6ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + SQL (0.3ms) 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.8ms) 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.5ms) 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.2ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 5 )  + Category Load (0.5ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 6 )  + Category Load (0.6ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 7 )  + Category Load (0.2ms) 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.4ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 11 )  + Category Load (0.5ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 12 )  +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 95ms (View: 60, DB: 7) | 200 OK [http://localhost/admin/photos] + + +Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 17:03:27) [GET] + Parameters: {"action"=>"edit", "id"=>"8", "controller"=>"admin/photos"} + TypusUser Load (0.5ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."id" = 8)  +Rendering template within layouts/admin +Rendering admin/resources/edit +Rendered admin/helpers/_list (0.1ms) +Rendered admin/helpers/_search (0.5ms) +Rendered admin/helpers/_preview (0.2ms) +Rendered admin/templates/_file (82.6ms) +Rendered admin/templates/_string (0.9ms) +Rendered admin/templates/_string (0.8ms) +Rendered admin/templates/_text (0.6ms) +Rendered admin/templates/_string (0.8ms) +Rendered admin/resources/_form (89.6ms) + SQL (0.2ms) SELECT count(*) AS count_all FROM "categories"  + Category Load (0.6ms) 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 = 8 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 8)  + 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 = 8 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."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 = 8 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.5ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 134ms (View: 112, DB: 2) | 200 OK [http://localhost/admin/photos/edit/8] + + +Processing Admin::PhotosController#relate (for 127.0.0.1 at 2010-10-08 17:03:31) [POST] + Parameters: {"commit"=>"Add", "related"=>{"model"=>"Category", "relation"=>"categories", "id"=>"4"}, "action"=>"relate", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "id"=>"8", "controller"=>"admin/photos"} + TypusUser Load (0.5ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."id" = 8)  + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = 4)  + SQL (0.3ms) INSERT INTO "categories_photos" ("category_id", "photo_id") VALUES (4, 8) +Redirected to http://localhost:3000/admin/photos/edit/8 +Completed in 26ms (DB: 1) | 302 Found [http://localhost/admin/photos/relate/8] + + +Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 17:03:31) [GET] + Parameters: {"action"=>"edit", "id"=>"8", "controller"=>"admin/photos"} + TypusUser Load (0.5ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."id" = 8)  +Rendering template within layouts/admin +Rendering admin/resources/edit +Rendered admin/helpers/_list (0.1ms) +Rendered admin/helpers/_search (0.6ms) +Rendered admin/helpers/_preview (0.2ms) +Rendered admin/templates/_file (4.0ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/templates/_string (0.5ms) +Rendered admin/templates/_text (0.4ms) +Rendered admin/templates/_string (0.5ms) +Rendered admin/resources/_form (9.2ms) + SQL (0.2ms) SELECT count(*) AS count_all FROM "categories"  + Category Load (0.4ms) 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 = 8 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 8)  + 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 = 8 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."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 = 8 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_table_header (0.1ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.3ms) +Rendered admin/helpers/_flash_message (0.1ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 54ms (View: 33, DB: 2) | 200 OK [http://localhost/admin/photos/edit/8] + + +Processing Admin::PhotosController#relate (for 127.0.0.1 at 2010-10-08 17:03:34) [POST] + Parameters: {"commit"=>"Add", "related"=>{"model"=>"Category", "relation"=>"categories", "id"=>"1"}, "action"=>"relate", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "id"=>"8", "controller"=>"admin/photos"} + TypusUser Load (0.6ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.2ms) SELECT * FROM "photos" WHERE ("photos"."id" = 8)  + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = 1)  + SQL (0.3ms) INSERT INTO "categories_photos" ("category_id", "photo_id") VALUES (1, 8) +Redirected to http://localhost:3000/admin/photos/edit/8 +Completed in 85ms (DB: 1) | 302 Found [http://localhost/admin/photos/relate/8] + + +Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 17:03:34) [GET] + Parameters: {"action"=>"edit", "id"=>"8", "controller"=>"admin/photos"} + TypusUser Load (0.7ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."id" = 8)  +Rendering template within layouts/admin +Rendering admin/resources/edit +Rendered admin/helpers/_list (0.1ms) +Rendered admin/helpers/_search (0.6ms) +Rendered admin/helpers/_preview (0.2ms) +Rendered admin/templates/_file (4.3ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_string (0.5ms) +Rendered admin/templates/_text (0.4ms) +Rendered admin/templates/_string (0.5ms) +Rendered admin/resources/_form (9.8ms) + SQL (0.2ms) SELECT count(*) AS count_all FROM "categories"  + Category Load (0.4ms) 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 = 8 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 8)  + 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 = 8 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."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 = 8 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_table_header (0.1ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.3ms) +Rendered admin/helpers/_flash_message (0.1ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 57ms (View: 35, DB: 2) | 200 OK [http://localhost/admin/photos/edit/8] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 17:03:37) [GET] + Photo Load (1.0ms) SELECT * FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 61ms (View: 55, DB: 1) | 200 OK [http://localhost/photos] + + +Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-08 17:03:41) [GET] + Parameters: {"action"=>"index", "controller"=>"admin/photos"} + 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 (0.9ms) SELECT "photos".* FROM "photos" ORDER BY photos.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_table_header (0.1ms) + Category Load (0.3ms) 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.5ms) 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.1ms) 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 )  +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 66ms (View: 41, DB: 5) | 200 OK [http://localhost/admin/photos] + + +Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 17:03:46) [GET] + Parameters: {"action"=>"edit", "id"=>"10", "controller"=>"admin/photos"} + TypusUser Load (0.5ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."id" = 10)  +Rendering template within layouts/admin +Rendering admin/resources/edit +Rendered admin/helpers/_list (0.1ms) +Rendered admin/helpers/_search (0.4ms) +Rendered admin/helpers/_preview (0.2ms) +Rendered admin/templates/_file (4.0ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_text (0.4ms) +Rendered admin/templates/_string (0.5ms) +Rendered admin/resources/_form (9.1ms) + SQL (0.2ms) SELECT count(*) AS count_all FROM "categories"  + Category Load (0.4ms) 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 = 10 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 10)  + 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 = 10 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."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 = 10 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 49ms (View: 28, DB: 2) | 200 OK [http://localhost/admin/photos/edit/10] + + +Processing Admin::PhotosController#relate (for 127.0.0.1 at 2010-10-08 17:03:50) [POST] + Parameters: {"commit"=>"Add", "related"=>{"model"=>"Category", "relation"=>"categories", "id"=>"2"}, "action"=>"relate", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "id"=>"10", "controller"=>"admin/photos"} + TypusUser Load (0.6ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."id" = 10)  + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = 2)  + SQL (0.3ms) INSERT INTO "categories_photos" ("category_id", "photo_id") VALUES (2, 10) +Redirected to http://localhost:3000/admin/photos/edit/10 +Completed in 26ms (DB: 1) | 302 Found [http://localhost/admin/photos/relate/10] + + +Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 17:03:50) [GET] + Parameters: {"action"=>"edit", "id"=>"10", "controller"=>"admin/photos"} + TypusUser Load (0.5ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."id" = 10)  +Rendering template within layouts/admin +Rendering admin/resources/edit +Rendered admin/helpers/_list (0.1ms) +Rendered admin/helpers/_search (0.6ms) +Rendered admin/helpers/_preview (0.2ms) +Rendered admin/templates/_file (5.2ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_text (0.4ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/resources/_form (10.6ms) + SQL (0.2ms) SELECT count(*) AS count_all FROM "categories"  + Category Load (0.4ms) 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 = 10 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 10)  + 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 = 10 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."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 = 10 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_table_header (0.1ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.3ms) +Rendered admin/helpers/_flash_message (0.1ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 54ms (View: 32, DB: 2) | 200 OK [http://localhost/admin/photos/edit/10] + + +Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 17:03:52) [GET] + Parameters: {"action"=>"edit", "id"=>"10", "controller"=>"admin/photos"} + TypusUser Load (0.6ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."id" = 10)  +Rendering template within layouts/admin +Rendering admin/resources/edit +Rendered admin/helpers/_list (0.1ms) +Rendered admin/helpers/_search (0.4ms) +Rendered admin/helpers/_preview (0.2ms) +Rendered admin/templates/_file (4.6ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/templates/_text (0.6ms) +Rendered admin/templates/_string (1.0ms) +Rendered admin/resources/_form (11.7ms) + SQL (0.2ms) SELECT count(*) AS count_all FROM "categories"  + Category Load (0.4ms) 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 = 10 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 10)  + 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 = 10 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."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 = 10 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_table_header (0.1ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 117ms (View: 91, DB: 2) | 200 OK [http://localhost/admin/photos/edit/10] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 17:03:57) [GET] + Category Load (1.2ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 28ms (View: 20, DB: 1) | 200 OK [http://localhost/categories] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 17:03:59) [GET] + Parameters: {"category_id"=>"4"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '4') LIMIT 1 +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.4ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 4 )  +Completed in 18ms (View: 8, DB: 1) | 200 OK [http://localhost/categories/4/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 17:04:02) [GET] + Parameters: {"category_id"=>"1"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1 +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.7ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 )  +Completed in 76ms (View: 66, DB: 1) | 200 OK [http://localhost/categories/1/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 17:04:40) [GET] + Parameters: {"category_id"=>"4"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '4') LIMIT 1 +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.6ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 4 )  +Completed in 18ms (View: 8, DB: 1) | 200 OK [http://localhost/categories/4/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 17:04:43) [GET] + Parameters: {"category_id"=>"5"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '5') LIMIT 1 +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.3ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 )  +Completed in 15ms (View: 6, DB: 0) | 200 OK [http://localhost/categories/5/photos] + + +Processing Admin::PhotosController#new (for 127.0.0.1 at 2010-10-08 17:04:49) [GET] + Parameters: {"action"=>"new", "controller"=>"admin/photos"} + 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.7ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_string (0.5ms) +Rendered admin/templates/_text (0.4ms) +Rendered admin/templates/_string (0.5ms) +Rendered admin/resources/_form (7.3ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.3ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 96ms (View: 17, DB: 1) | 200 OK [http://localhost/admin/photos/new] + + +Processing Admin::PhotosController#create (for 127.0.0.1 at 2010-10-08 17:05:07) [POST] + Parameters: {"photo"=>{"photo"=>#, "title"=>"Croagh Patrick #2", "flickr_url"=>"", "sort"=>"", "description"=>""}, "commit"=>"Create Photo", "action"=>"create", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "controller"=>"admin/photos"} + TypusUser Load (0.6ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-btlhmu-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-btlhmu-0.jpg[0]' -resize "x224" -crop "224x224+103+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-btlhmu-020101008-80675-1iu1e1c-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-btlhmu-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-btlhmu-0.jpg[0]' -resize "x140" -crop "140x140+64+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-btlhmu-020101008-80675-1hendga-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-btlhmu-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-btlhmu-0.jpg[0]' -resize "1024x1024>" '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-btlhmu-020101008-80675-608lmi-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-btlhmu-020101008-80675-608lmi-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-btlhmu-020101008-80675-608lmi-0[0]' -resize "x84" -crop "84x84+38+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-btlhmu-020101008-80675-608lmi-020101008-80675-17e0iqi-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-btlhmu-020101008-80675-608lmi-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-btlhmu-020101008-80675-608lmi-0[0]' -resize "x56" -crop "56x56+25+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-btlhmu-020101008-80675-608lmi-020101008-80675-1f832u2-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-btlhmu-020101008-80675-608lmi-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-btlhmu-020101008-80675-608lmi-0[0]' -resize "x308" -crop "308x308+141+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-80675-btlhmu-020101008-80675-608lmi-020101008-80675-1hhwn8x-0' 2>/dev/null + 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(91876, '2010-10-08 21:05:10', 'Croagh Patrick #2', '', 'Croagh Patrick no2.jpg', '2010-10-08 21:05:10', 'image/jpeg', '2010-10-08 21:05:07', '', NULL) +[paperclip] Saving attachments. +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/13/size8/Croagh Patrick no2.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/13/size5/Croagh Patrick no2.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/13/size3/Croagh Patrick no2.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/13/original/Croagh Patrick no2.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/13/size2/Croagh Patrick no2.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/13/size11/Croagh Patrick no2.jpg +Redirected to http://localhost:3000/admin/photos/edit/13 +Completed in 3271ms (DB: 1) | 302 Found [http://localhost/admin/photos/create] + + +Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 17:05:10) [GET] + Parameters: {"action"=>"edit", "id"=>"13", "controller"=>"admin/photos"} + TypusUser Load (0.5ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.2ms) SELECT * FROM "photos" WHERE ("photos"."id" = 13)  +Rendering template within layouts/admin +Rendering admin/resources/edit +Rendered admin/helpers/_list (0.1ms) +Rendered admin/helpers/_search (0.5ms) +Rendered admin/helpers/_preview (0.2ms) +Rendered admin/templates/_file (6.4ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/templates/_string (0.9ms) +Rendered admin/templates/_text (0.4ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/resources/_form (12.5ms) + 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 = 13 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 13)  + SQL (0.4ms) SELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 13 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."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 = 13 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.6ms) +Rendered admin/helpers/_flash_message (0.1ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 204ms (View: 181, DB: 2) | 200 OK [http://localhost/admin/photos/edit/13] + + +Processing Admin::PhotosController#relate (for 127.0.0.1 at 2010-10-08 17:05:17) [POST] + Parameters: {"commit"=>"Add", "related"=>{"model"=>"Category", "relation"=>"categories", "id"=>"4"}, "action"=>"relate", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "id"=>"13", "controller"=>"admin/photos"} + TypusUser Load (0.5ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."id" = 13)  + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = 4)  + SQL (0.3ms) INSERT INTO "categories_photos" ("category_id", "photo_id") VALUES (4, 13) +Redirected to http://localhost:3000/admin/photos/edit/13 +Completed in 26ms (DB: 1) | 302 Found [http://localhost/admin/photos/relate/13] + + +Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 17:05:17) [GET] + Parameters: {"action"=>"edit", "id"=>"13", "controller"=>"admin/photos"} + TypusUser Load (0.8ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."id" = 13)  +Rendering template within layouts/admin +Rendering admin/resources/edit +Rendered admin/helpers/_list (0.1ms) +Rendered admin/helpers/_search (0.4ms) +Rendered admin/helpers/_preview (0.2ms) +Rendered admin/templates/_file (4.9ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_text (0.4ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/resources/_form (10.5ms) + SQL (0.2ms) SELECT count(*) AS count_all FROM "categories"  + Category Load (0.5ms) 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 = 13 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 13)  + 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 = 13 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."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 = 13 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_table_header (0.1ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.3ms) +Rendered admin/helpers/_flash_message (0.1ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 123ms (View: 99, DB: 2) | 200 OK [http://localhost/admin/photos/edit/13] + + +Processing Admin::PhotosController#relate (for 127.0.0.1 at 2010-10-08 17:05:20) [POST] + Parameters: {"commit"=>"Add", "related"=>{"model"=>"Category", "relation"=>"categories", "id"=>"1"}, "action"=>"relate", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "id"=>"13", "controller"=>"admin/photos"} + TypusUser Load (0.6ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.2ms) SELECT * FROM "photos" WHERE ("photos"."id" = 13)  + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = 1)  + SQL (0.3ms) INSERT INTO "categories_photos" ("category_id", "photo_id") VALUES (1, 13) +Redirected to http://localhost:3000/admin/photos/edit/13 +Completed in 28ms (DB: 1) | 302 Found [http://localhost/admin/photos/relate/13] + + +Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-08 17:05:20) [GET] + Parameters: {"action"=>"edit", "id"=>"13", "controller"=>"admin/photos"} + TypusUser Load (0.5ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."id" = 13)  +Rendering template within layouts/admin +Rendering admin/resources/edit +Rendered admin/helpers/_list (0.1ms) +Rendered admin/helpers/_search (0.5ms) +Rendered admin/helpers/_preview (0.3ms) +Rendered admin/templates/_file (63.7ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_text (0.5ms) +Rendered admin/templates/_string (0.5ms) +Rendered admin/resources/_form (70.0ms) + SQL (0.2ms) SELECT count(*) AS count_all FROM "categories"  + Category Load (0.4ms) 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 = 13 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 13)  + 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 = 13 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."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 = 13 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_table_header (0.1ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.3ms) +Rendered admin/helpers/_flash_message (0.1ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 114ms (View: 93, DB: 2) | 200 OK [http://localhost/admin/photos/edit/13] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 17:05:23) [GET] + Parameters: {"category_id"=>"1"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1 +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.8ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 )  +Completed in 21ms (View: 11, DB: 1) | 200 OK [http://localhost/categories/1/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 17:05:26) [GET] + Parameters: {"category_id"=>"4"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '4') LIMIT 1 +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.8ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 4 )  +Completed in 22ms (View: 11, DB: 1) | 200 OK [http://localhost/categories/4/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 17:05:29) [GET] + Parameters: {"category_id"=>"2"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '2') LIMIT 1 +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.5ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 2 )  +Completed in 78ms (View: 8, DB: 1) | 200 OK [http://localhost/categories/2/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 17:05:33) [GET] + Parameters: {"category_id"=>"6"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '6') LIMIT 1 +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.3ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 6 )  +Completed in 16ms (View: 7, DB: 1) | 200 OK [http://localhost/categories/6/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 17:05:35) [GET] + Parameters: {"category_id"=>"2"} + Category Load (0.3ms) SELECT * FROM "categories" WHERE ("categories"."id" = '2') LIMIT 1 +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.4ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 2 )  +Completed in 18ms (View: 8, DB: 1) | 200 OK [http://localhost/categories/2/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 17:06:13) [GET] + Parameters: {"category_id"=>"6"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '6') LIMIT 1 +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.4ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 6 )  +Completed in 71ms (View: 61, DB: 1) | 200 OK [http://localhost/categories/6/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 17:06:19) [GET] + Parameters: {"category_id"=>"1"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1 +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.8ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 )  +Completed in 22ms (View: 11, DB: 1) | 200 OK [http://localhost/categories/1/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 03:57:31) [GET] + Parameters: {"category_id"=>"5"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '5') LIMIT 1 +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.3ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 )  +Completed in 29ms (View: 17, DB: 1) | 200 OK [http://localhost/categories/5/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 03:57:32) [GET] + Parameters: {"category_id"=>"1"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1 +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.7ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 )  +Completed in 20ms (View: 11, DB: 1) | 200 OK [http://localhost/categories/1/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 04:39:02) [GET] + Parameters: {"category_id"=>"5"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '5') LIMIT 1 +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.4ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 )  +Completed in 51ms (View: 42, DB: 1) | 200 OK [http://localhost/categories/5/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 04:41:24) [GET] + Parameters: {"category_id"=>"6"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '6') LIMIT 1 +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.4ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 6 )  +Completed in 17ms (View: 8, DB: 1) | 200 OK [http://localhost/categories/6/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 04:41:27) [GET] + Parameters: {"category_id"=>"2"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '2') LIMIT 1 +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.5ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 2 )  +Completed in 20ms (View: 8, DB: 1) | 200 OK [http://localhost/categories/2/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 04:41:29) [GET] + Parameters: {"category_id"=>"1"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1 +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.7ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 )  +Completed in 21ms (View: 11, DB: 1) | 200 OK [http://localhost/categories/1/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 04:41:33) [GET] + Parameters: {"category_id"=>"2"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '2') LIMIT 1 +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.5ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 2 )  +Completed in 18ms (View: 8, DB: 1) | 200 OK [http://localhost/categories/2/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 04:41:46) [GET] + Parameters: {"category_id"=>"5"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '5') LIMIT 1 +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.4ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 )  +Completed in 17ms (View: 7, DB: 1) | 200 OK [http://localhost/categories/5/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 04:42:02) [GET] + Parameters: {"category_id"=>"2"} + Category Load (0.3ms) SELECT * FROM "categories" WHERE ("categories"."id" = '2') LIMIT 1 +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.5ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 2 )  +Completed in 20ms (View: 10, DB: 1) | 200 OK [http://localhost/categories/2/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 04:42:19) [GET] + Parameters: {"category_id"=>"1"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1 +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.7ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 )  +Completed in 20ms (View: 10, DB: 1) | 200 OK [http://localhost/categories/1/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 04:43:02) [GET] + Parameters: {"category_id"=>"3"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '3') LIMIT 1 +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.3ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 3 )  +Completed in 17ms (View: 7, DB: 1) | 200 OK [http://localhost/categories/3/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 04:46:56) [GET] + Photo Load (1.1ms) SELECT * FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 67ms (View: 60, DB: 1) | 200 OK [http://localhost/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 04:47:01) [GET] + Photo Load (1.3ms) SELECT * FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 19ms (View: 12, DB: 1) | 200 OK [http://localhost/photos] + + +Processing PhotosController#index (for 192.168.42.18 at 2010-10-09 04:49:22) [GET] + Photo Load (1.2ms) SELECT * FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 19ms (View: 12, DB: 1) | 200 OK [http://junpei/photos] + + +Processing ApplicationController#index (for 192.168.42.18 at 2010-10-09 04:49:22) [GET] + +ActionController::RoutingError (No route matches "/images/sg_grid_sub.png" with {:method=>:get}): + + +Rendering rescues/layout (not_found) + + +Processing CategoriesController#index (for 192.168.42.18 at 2010-10-09 04:49:32) [GET] + Category Load (0.8ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 30ms (View: 25, DB: 1) | 200 OK [http://junpei/categories] + + +Processing PhotosController#index (for 192.168.42.18 at 2010-10-09 04:49:39) [GET] + Parameters: {"category_id"=>"4"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '4') LIMIT 1 +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.5ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 4 )  +Completed in 17ms (View: 8, DB: 1) | 200 OK [http://junpei/categories/4/photos] + + +Processing PhotosController#index (for 192.168.42.18 at 2010-10-09 04:49:54) [GET] + Parameters: {"category_id"=>"6"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '6') LIMIT 1 +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.4ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 6 )  +Completed in 18ms (View: 8, DB: 1) | 200 OK [http://junpei/categories/6/photos] + + +Processing PhotosController#index (for 192.168.42.18 at 2010-10-09 04:50:13) [GET] + Parameters: {"category_id"=>"6"} + Category Load (0.4ms) SELECT * FROM "categories" WHERE ("categories"."id" = '6') LIMIT 1 +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.4ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 6 )  +Completed in 70ms (View: 8, DB: 1) | 200 OK [http://junpei/categories/6/photos] + + +Processing ApplicationController#index (for 192.168.42.18 at 2010-10-09 04:50:18) [GET] + +ActionController::RoutingError (No route matches "/images/sg_grid_sub.png" with {:method=>:get}): + + +Rendering rescues/layout (not_found) + + +Processing CategoriesController#index (for 192.168.42.18 at 2010-10-09 04:50:20) [GET] + Category Load (0.7ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 9ms (View: 4, DB: 1) | 200 OK [http://junpei/categories] + + +Processing PhotosController#index (for 192.168.42.18 at 2010-10-09 04:50:44) [GET] + Parameters: {"category_id"=>"4"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '4') LIMIT 1 +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.5ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 4 )  +Completed in 17ms (View: 8, DB: 1) | 200 OK [http://junpei/categories/4/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:08:12) [GET] + Photo Load (1.1ms) SELECT * FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 100ms (View: 38, DB: 1) | 200 OK [http://localhost/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:09:38) [GET] + Photo Load (1.2ms) SELECT * FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 24ms (View: 16, DB: 1) | 200 OK [http://localhost/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:10:32) [GET] + Photo Load (1.2ms) SELECT * FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index + +ActionView::TemplateError (nil can't be coerced into Fixnum) on line #7 of app/views/photos/index.html.erb: +4: +5: <% @num_blank = 13 - @num_photos %> +6: <% else %> +7: <% @num_blank = 14 - @num_photos %> +8: <% end %> +9: +10: <% @photos.each do |photo| %> + + app/views/photos/index.html.erb:7 + +Rendered rescues/_trace (25.4ms) +Rendered rescues/_request_and_response (0.3ms) +Rendering rescues/layout (internal_server_error) + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:11:14) [GET] + Photo Load (1.2ms) SELECT * FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 21ms (View: 13, DB: 1) | 200 OK [http://localhost/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:11:20) [GET] + Parameters: {"category_id"=>"3"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '3') LIMIT 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 = 3 )  +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.3ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 3 )  +Completed in 77ms (View: 66, DB: 1) | 200 OK [http://localhost/categories/3/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:11:23) [GET] + Parameters: {"category_id"=>"4"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '4') LIMIT 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 = 4 )  +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.5ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 4 )  +Completed in 19ms (View: 7, DB: 1) | 200 OK [http://localhost/categories/4/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:11:26) [GET] + Parameters: {"category_id"=>"5"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '5') LIMIT 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 = 5 )  +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.2ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 )  +Completed in 16ms (View: 5, DB: 1) | 200 OK [http://localhost/categories/5/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:11:59) [GET] + Photo Load (1.1ms) SELECT * FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 21ms (View: 14, DB: 1) | 200 OK [http://localhost/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:12:01) [GET] + Parameters: {"category_id"=>"1"} + Category Load (0.3ms) SELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 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 )  +Rendering template within layouts/photos +Rendering photos/index + Photo Load (1.0ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 )  +Completed in 26ms (View: 11, DB: 2) | 200 OK [http://localhost/categories/1/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:12:23) [GET] + Parameters: {"category_id"=>"1"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 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 )  +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.7ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 )  +Completed in 25ms (View: 13, DB: 1) | 200 OK [http://localhost/categories/1/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:12:24) [GET] + Photo Load (1.2ms) SELECT * FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 18ms (View: 12, DB: 1) | 200 OK [http://localhost/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:13:39) [GET] + Parameters: {"category_id"=>"1"} + Category Load (0.3ms) SELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 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 )  +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.8ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 )  + +ActionView::TemplateError (undefined local variable or method `categories' for #) on line #5 of app/views/photos/index.html.erb: +2: +3: <% if @category %> +4:

+5: <%= link_to '

'+h(@category.name.downcase)+'

', categories %> +6:
+7: <% @num_blank = 11 - @num_photos %> +8: <% else %> + + app/views/photos/index.html.erb:5 + +Rendered rescues/_trace (26.1ms) +Rendered rescues/_request_and_response (0.3ms) +Rendering rescues/layout (internal_server_error) + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:13:45) [GET] + Parameters: {"category_id"=>"1"} + Category Load (0.3ms) SELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 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 )  +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.7ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 )  +Completed in 81ms (View: 12, DB: 1) | 200 OK [http://localhost/categories/1/photos] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 05:13:47) [GET] + Category Load (0.7ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 92ms (View: 13, DB: 1) | 200 OK [http://localhost/categories] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:13:48) [GET] + Parameters: {"category_id"=>"2"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '2') LIMIT 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 = 2 )  +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.4ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 2 )  +Completed in 18ms (View: 7, DB: 1) | 200 OK [http://localhost/categories/2/photos] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 05:13:51) [GET] + Category Load (0.8ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 12ms (View: 6, DB: 1) | 200 OK [http://localhost/categories] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:13:52) [GET] + Parameters: {"category_id"=>"4"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '4') LIMIT 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 = 4 )  +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.5ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 4 )  +Completed in 19ms (View: 8, DB: 1) | 200 OK [http://localhost/categories/4/photos] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 05:13:53) [GET] + Category Load (0.7ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 9ms (View: 4, DB: 1) | 200 OK [http://localhost/categories] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:13:54) [GET] + Parameters: {"category_id"=>"5"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '5') LIMIT 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 = 5 )  +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.3ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 )  +Completed in 16ms (View: 6, DB: 1) | 200 OK [http://localhost/categories/5/photos] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 05:13:55) [GET] + Category Load (0.7ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 9ms (View: 4, DB: 1) | 200 OK [http://localhost/categories] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:13:57) [GET] + Parameters: {"category_id"=>"6"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '6') LIMIT 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 = 6 )  +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.3ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 6 )  +Completed in 19ms (View: 6, DB: 1) | 200 OK [http://localhost/categories/6/photos] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 05:13:58) [GET] + Category Load (0.7ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 9ms (View: 4, DB: 1) | 200 OK [http://localhost/categories] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:13:59) [GET] + Parameters: {"category_id"=>"3"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '3') LIMIT 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 = 3 )  +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.3ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 3 )  +Completed in 16ms (View: 5, DB: 1) | 200 OK [http://localhost/categories/3/photos] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 05:14:00) [GET] + Category Load (0.8ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 9ms (View: 4, DB: 1) | 200 OK [http://localhost/categories] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:14:01) [GET] + Parameters: {"category_id"=>"2"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '2') LIMIT 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 = 2 )  +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.4ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 2 )  +Completed in 72ms (View: 7, DB: 1) | 200 OK [http://localhost/categories/2/photos] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 05:14:08) [GET] + Category Load (1.1ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 10ms (View: 4, DB: 1) | 200 OK [http://localhost/categories] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:14:12) [GET] + Parameters: {"category_id"=>"1"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 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 )  +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.7ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 )  +Completed in 21ms (View: 10, DB: 1) | 200 OK [http://localhost/categories/1/photos] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 05:14:22) [GET] + Category Load (0.7ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 9ms (View: 4, DB: 1) | 200 OK [http://localhost/categories] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:14:25) [GET] + Parameters: {"category_id"=>"5"} + Category Load (0.3ms) SELECT * FROM "categories" WHERE ("categories"."id" = '5') LIMIT 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 = 5 )  +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.3ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 )  +Completed in 71ms (View: 6, DB: 1) | 200 OK [http://localhost/categories/5/photos] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 05:14:30) [GET] + Category Load (0.7ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 9ms (View: 4, DB: 1) | 200 OK [http://localhost/categories] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:28:43) [GET] + Parameters: {"category_id"=>"1"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 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 )  +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.7ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 )  +Completed in 84ms (View: 43, DB: 1) | 200 OK [http://localhost/categories/1/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:29:07) [GET] + Parameters: {"category_id"=>"1"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 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 )  +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.7ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 )  +Completed in 21ms (View: 10, DB: 1) | 200 OK [http://localhost/categories/1/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:29:35) [GET] + Parameters: {"category_id"=>"1"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 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 )  +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.7ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 )  +Completed in 20ms (View: 10, DB: 1) | 200 OK [http://localhost/categories/1/photos] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 05:29:40) [GET] + Category Load (0.7ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 47ms (View: 42, DB: 1) | 200 OK [http://localhost/categories] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:29:41) [GET] + Parameters: {"category_id"=>"4"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '4') LIMIT 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 = 4 )  +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.6ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 4 )  +Completed in 20ms (View: 8, DB: 1) | 200 OK [http://localhost/categories/4/photos] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 05:29:43) [GET] + Category Load (0.7ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 9ms (View: 4, DB: 1) | 200 OK [http://localhost/categories] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:29:44) [GET] + Parameters: {"category_id"=>"5"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '5') LIMIT 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 = 5 )  +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.2ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 )  +Completed in 17ms (View: 6, DB: 1) | 200 OK [http://localhost/categories/5/photos] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 05:29:47) [GET] + Category Load (0.7ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 10ms (View: 4, DB: 1) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 05:30:10) [GET] + Category Load (0.7ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 9ms (View: 4, DB: 1) | 200 OK [http://localhost/categories] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:30:11) [GET] + Parameters: {"category_id"=>"5"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '5') LIMIT 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 = 5 )  +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.5ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 )  +Completed in 70ms (View: 59, DB: 1) | 200 OK [http://localhost/categories/5/photos] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 05:30:13) [GET] + Category Load (0.7ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 9ms (View: 4, DB: 1) | 200 OK [http://localhost/categories] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:30:14) [GET] + Parameters: {"category_id"=>"1"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 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 )  +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.7ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 )  +Completed in 21ms (View: 10, DB: 1) | 200 OK [http://localhost/categories/1/photos] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 05:30:15) [GET] + Category Load (0.7ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 10ms (View: 5, DB: 1) | 200 OK [http://localhost/categories] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:30:16) [GET] + Parameters: {"category_id"=>"6"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '6') LIMIT 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 = 6 )  +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.3ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 6 )  +Completed in 17ms (View: 6, DB: 1) | 200 OK [http://localhost/categories/6/photos] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 05:30:16) [GET] + Category Load (0.7ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 9ms (View: 4, DB: 1) | 200 OK [http://localhost/categories] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:30:17) [GET] + Parameters: {"category_id"=>"5"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '5') LIMIT 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 = 5 )  +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.3ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 )  +Completed in 17ms (View: 6, DB: 1) | 200 OK [http://localhost/categories/5/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:30:51) [GET] + Parameters: {"category_id"=>"5"} + Category Load (0.4ms) SELECT * FROM "categories" WHERE ("categories"."id" = '5') LIMIT 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 = 5 )  +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.3ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 )  +Completed in 22ms (View: 7, DB: 1) | 200 OK [http://localhost/categories/5/photos] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 05:30:52) [GET] + Category Load (0.7ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 9ms (View: 4, DB: 1) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 05:31:11) [GET] + Category Load (0.7ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 9ms (View: 4, DB: 1) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 05:31:20) [GET] + Category Load (0.7ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 9ms (View: 4, DB: 1) | 200 OK [http://localhost/categories] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:31:21) [GET] + Parameters: {"category_id"=>"1"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 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 )  +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.7ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 )  +Completed in 20ms (View: 9, DB: 1) | 200 OK [http://localhost/categories/1/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:31:22) [GET] + Parameters: {"category_id"=>"5"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '5') LIMIT 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 = 5 )  +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.4ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 )  +Completed in 71ms (View: 60, DB: 1) | 200 OK [http://localhost/categories/5/photos] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 05:31:23) [GET] + Category Load (0.8ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 10ms (View: 4, DB: 1) | 200 OK [http://localhost/categories] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:31:24) [GET] + Parameters: {"category_id"=>"6"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '6') LIMIT 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 = 6 )  +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.3ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 6 )  +Completed in 17ms (View: 6, DB: 1) | 200 OK [http://localhost/categories/6/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:31:25) [GET] + Parameters: {"category_id"=>"3"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '3') LIMIT 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 = 3 )  +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.3ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 3 )  +Completed in 17ms (View: 6, DB: 1) | 200 OK [http://localhost/categories/3/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:31:27) [GET] + Parameters: {"category_id"=>"4"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '4') LIMIT 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 = 4 )  +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.9ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 4 )  +Completed in 77ms (View: 66, DB: 1) | 200 OK [http://localhost/categories/4/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:31:29) [GET] + Parameters: {"category_id"=>"5"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '5') LIMIT 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 = 5 )  +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.3ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 )  +Completed in 17ms (View: 6, DB: 1) | 200 OK [http://localhost/categories/5/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:31:37) [GET] + Parameters: {"category_id"=>"5"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '5') LIMIT 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 = 5 )  +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.2ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 )  +Completed in 17ms (View: 6, DB: 1) | 200 OK [http://localhost/categories/5/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:31:48) [GET] + Parameters: {"category_id"=>"5"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '5') LIMIT 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 = 5 )  +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.3ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 )  +Completed in 17ms (View: 6, DB: 1) | 200 OK [http://localhost/categories/5/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:31:54) [GET] + Parameters: {"category_id"=>"5"} + Category Load (0.3ms) SELECT * FROM "categories" WHERE ("categories"."id" = '5') LIMIT 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 = 5 )  +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.3ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 )  +Completed in 18ms (View: 6, DB: 1) | 200 OK [http://localhost/categories/5/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:32:00) [GET] + Parameters: {"category_id"=>"5"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '5') LIMIT 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 = 5 )  +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.3ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 )  +Completed in 16ms (View: 6, DB: 1) | 200 OK [http://localhost/categories/5/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:32:06) [GET] + Parameters: {"category_id"=>"5"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '5') LIMIT 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 = 5 )  +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.3ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 )  +Completed in 18ms (View: 6, DB: 1) | 200 OK [http://localhost/categories/5/photos] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 05:32:07) [GET] + Category Load (0.7ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 9ms (View: 4, DB: 1) | 200 OK [http://localhost/categories] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:32:08) [GET] + Parameters: {"category_id"=>"5"} + Category Load (0.3ms) SELECT * FROM "categories" WHERE ("categories"."id" = '5') LIMIT 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 = 5 )  +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.3ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 )  +Completed in 18ms (View: 6, DB: 1) | 200 OK [http://localhost/categories/5/photos] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 05:32:11) [GET] + Category Load (0.7ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 9ms (View: 4, DB: 1) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 05:32:16) [GET] + Category Load (0.7ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 9ms (View: 4, DB: 1) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 05:32:20) [GET] + Category Load (0.8ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 8ms (View: 4, DB: 1) | 200 OK [http://localhost/categories] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:32:21) [GET] + Parameters: {"category_id"=>"5"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '5') LIMIT 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 = 5 )  +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.3ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 )  +Completed in 71ms (View: 6, DB: 1) | 200 OK [http://localhost/categories/5/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:32:25) [GET] + Parameters: {"category_id"=>"5"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '5') LIMIT 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 = 5 )  +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.3ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 )  +Completed in 18ms (View: 6, DB: 1) | 200 OK [http://localhost/categories/5/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:32:28) [GET] + Parameters: {"category_id"=>"5"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '5') LIMIT 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 = 5 )  +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.2ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 )  +Completed in 17ms (View: 6, DB: 1) | 200 OK [http://localhost/categories/5/photos] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 05:32:32) [GET] + Category Load (1.1ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 10ms (View: 5, DB: 1) | 200 OK [http://localhost/categories] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:32:33) [GET] + Parameters: {"category_id"=>"5"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '5') LIMIT 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 = 5 )  +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.3ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 )  +Completed in 73ms (View: 6, DB: 1) | 200 OK [http://localhost/categories/5/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:32:51) [GET] + Parameters: {"category_id"=>"5"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '5') LIMIT 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 = 5 )  +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.3ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 )  +Completed in 21ms (View: 9, DB: 1) | 200 OK [http://localhost/categories/5/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:32:55) [GET] + Parameters: {"category_id"=>"5"} + Category Load (0.3ms) SELECT * FROM "categories" WHERE ("categories"."id" = '5') LIMIT 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 = 5 )  +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.3ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 )  +Completed in 20ms (View: 9, DB: 1) | 200 OK [http://localhost/categories/5/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:33:00) [GET] + Parameters: {"category_id"=>"5"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '5') LIMIT 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 = 5 )  +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.3ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 )  +Completed in 74ms (View: 9, DB: 1) | 200 OK [http://localhost/categories/5/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:36:07) [GET] + Photo Load (1.2ms) SELECT * FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 19ms (View: 12, DB: 1) | 200 OK [http://localhost/photos] + + +Processing Admin::PhotosController#new (for 127.0.0.1 at 2010-10-09 05:38:22) [GET] + Parameters: {"action"=>"new", "controller"=>"admin/photos"} + 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 (12.9ms) +Rendered admin/templates/_file (3.3ms) +Rendered admin/templates/_string (1.9ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_text (1.4ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/resources/_form (24.3ms) +Rendered admin/helpers/_header (0.9ms) +Rendered admin/helpers/_login_info (1.0ms) +Rendered admin/shared/_footer (1.1ms) +Completed in 267ms (View: 177, DB: 0) | 200 OK [http://localhost/admin/photos/new] + + +Processing Admin::PhotosController#create (for 127.0.0.1 at 2010-10-09 05:38:41) [POST] + Parameters: {"photo"=>{"photo"=>#, "title"=>"Croagh Patrick #3", "flickr_url"=>"", "sort"=>"", "description"=>""}, "commit"=>"Create Photo", "action"=>"create", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "controller"=>"admin/photos"} + TypusUser Load (0.7ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-86937-4yl3u1-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-86937-4yl3u1-0.jpg[0]' -resize "x224" -crop "224x224+119+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-86937-4yl3u1-020101009-86937-wkyb2n-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-86937-4yl3u1-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-86937-4yl3u1-0.jpg[0]' -resize "x140" -crop "140x140+74+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-86937-4yl3u1-020101009-86937-1jxt6nw-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-86937-4yl3u1-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-86937-4yl3u1-0.jpg[0]' -resize "x84" -crop "84x84+44+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-86937-4yl3u1-020101009-86937-1vqeyjw-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-86937-4yl3u1-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-86937-4yl3u1-0.jpg[0]' -resize "1024x1024>" '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-86937-4yl3u1-020101009-86937-1clkrci-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-86937-4yl3u1-020101009-86937-1clkrci-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-86937-4yl3u1-020101009-86937-1clkrci-0[0]' -resize "x56" -crop "56x56+29+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-86937-4yl3u1-020101009-86937-1clkrci-020101009-86937-abfbuf-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-86937-4yl3u1-020101009-86937-1clkrci-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-86937-4yl3u1-020101009-86937-1clkrci-0[0]' -resize "x308" -crop "308x308+163+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-86937-4yl3u1-020101009-86937-1clkrci-020101009-86937-g7lhaj-0' 2>/dev/null + Photo Create (0.6ms) 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(134145, '2010-10-09 09:38:45', 'Croagh Patrick #3', '', 'Croagh Patrick no3.jpg', '2010-10-09 09:38:45', 'image/jpeg', '2010-10-09 09:38:41', '', NULL) +[paperclip] Saving attachments. +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/14/size8/Croagh Patrick no3.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/14/size5/Croagh Patrick no3.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/14/size3/Croagh Patrick no3.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/14/size2/Croagh Patrick no3.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/14/original/Croagh Patrick no3.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/14/size11/Croagh Patrick no3.jpg + Photo Update (0.2ms) UPDATE "photos" SET "updated_at" = '2010-10-09 09:39:48', "created_at" = '2010-10-09 09:38:45', "photo_file_name" = 'Croagh Patrick no3.jpg', "title" = 'Croagh Patrick #3', "photo_file_size" = 134145, "photo_updated_at" = '2010-10-09 09:38:41', "flickr_url" = '', "description" = '', "photo_content_type" = 'image/jpeg' WHERE "id" = 14 +[paperclip] Saving attachments. + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:40:54) [GET] + Photo Load (1.7ms) SELECT * FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 86ms (View: 51, DB: 2) | 200 OK [http://localhost/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:40:58) [GET] + Photo Load (1.5ms) SELECT * FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 22ms (View: 14, DB: 2) | 200 OK [http://localhost/photos] + + +Processing Admin::PhotosController#create (for 127.0.0.1 at 2010-10-09 05:41:18) [POST] + Parameters: {"photo"=>{"photo"=>#, "title"=>"Croagh Patrick #3", "flickr_url"=>"", "sort"=>"", "description"=>""}, "commit"=>"Create Photo", "action"=>"create", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "controller"=>"admin/photos"} + TypusUser Load (0.3ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87024-1pu5k99-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87024-1pu5k99-0.jpg[0]' -resize "x308" -crop "308x308+163+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87024-1pu5k99-020101009-87024-u0wc3e-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87024-1pu5k99-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87024-1pu5k99-0.jpg[0]' -resize "x224" -crop "224x224+119+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87024-1pu5k99-020101009-87024-1bnvv6l-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87024-1pu5k99-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87024-1pu5k99-0.jpg[0]' -resize "x140" -crop "140x140+74+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87024-1pu5k99-020101009-87024-x5qypy-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87024-1pu5k99-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87024-1pu5k99-0.jpg[0]' -resize "1024x1024>" '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87024-1pu5k99-020101009-87024-1wm4bdf-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87024-1pu5k99-020101009-87024-1wm4bdf-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87024-1pu5k99-020101009-87024-1wm4bdf-0[0]' -resize "x84" -crop "84x84+44+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87024-1pu5k99-020101009-87024-1wm4bdf-020101009-87024-1fbd1eh-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87024-1pu5k99-020101009-87024-1wm4bdf-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87024-1pu5k99-020101009-87024-1wm4bdf-0[0]' -resize "x56" -crop "56x56+29+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87024-1pu5k99-020101009-87024-1wm4bdf-020101009-87024-mzen1p-0' 2>/dev/null + 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(134145, '2010-10-09 09:41:20', 'Croagh Patrick #3', '', 'Croagh Patrick no3.jpg', '2010-10-09 09:41:20', 'image/jpeg', '2010-10-09 09:41:18', '', NULL) +[paperclip] Saving attachments. +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/14/size11/Croagh Patrick no3.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/14/size8/Croagh Patrick no3.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/14/size5/Croagh Patrick no3.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/14/original/Croagh Patrick no3.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/14/size3/Croagh Patrick no3.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/14/size2/Croagh Patrick no3.jpg + + +Processing TypusController#dashboard (for 127.0.0.1 at 2010-10-09 05:41:48) [GET] + Parameters: {"action"=>"dashboard", "controller"=>"typus"} + TypusUser Load (0.4ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  +Rendering template within layouts/admin +Rendering typus/dashboard +Rendered admin/dashboard/_sidebar (0.6ms) +Rendered admin/helpers/_applications (5.2ms) +Rendered admin/helpers/_header (0.7ms) +Rendered admin/helpers/_login_info (0.8ms) +Rendered admin/shared/_footer (0.6ms) +Completed in 94ms (View: 82, DB: 0) | 200 OK [http://localhost/admin] + + +Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-09 05:41:52) [GET] + Parameters: {"action"=>"index", "controller"=>"admin/photos"} + TypusUser Load (0.6ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + SQL (0.3ms) SELECT count(*) AS count_all FROM "photos"  +Rendering template within layouts/admin +Rendering admin/resources/index +Rendered admin/helpers/_list (0.6ms) +Rendered admin/helpers/_search (1.8ms) + Photo Load (1.2ms) SELECT "photos".* FROM "photos" ORDER BY photos.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_table_header (0.9ms) + 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.2ms) 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.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 )  +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 116ms (View: 86, DB: 6) | 200 OK [http://localhost/admin/photos] + + +Processing Admin::PhotosController#new (for 127.0.0.1 at 2010-10-09 05:41:55) [GET] + Parameters: {"action"=>"new", "controller"=>"admin/photos"} + 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 (2.7ms) +Rendered admin/templates/_string (1.4ms) +Rendered admin/templates/_string (0.8ms) +Rendered admin/templates/_text (1.1ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/resources/_form (21.5ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 61ms (View: 38, DB: 1) | 200 OK [http://localhost/admin/photos/new] + + +Processing Admin::PhotosController#create (for 127.0.0.1 at 2010-10-09 05:42:03) [POST] + Parameters: {"photo"=>{"photo"=>#, "title"=>"Croagh Patrick #3", "flickr_url"=>"", "sort"=>"", "description"=>""}, "commit"=>"Create Photo", "action"=>"create", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "controller"=>"admin/photos"} + TypusUser Load (0.6ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87063-147zia2-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87063-147zia2-0.jpg[0]' -resize "x84" -crop "84x84+44+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87063-147zia2-020101009-87063-w0oxlg-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87063-147zia2-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87063-147zia2-0.jpg[0]' -resize "x56" -crop "56x56+29+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87063-147zia2-020101009-87063-1s49olp-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87063-147zia2-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87063-147zia2-0.jpg[0]' -resize "x308" -crop "308x308+163+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87063-147zia2-020101009-87063-1ce9ra2-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87063-147zia2-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87063-147zia2-0.jpg[0]' -resize "1024x1024>" '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87063-147zia2-020101009-87063-1d6mcyb-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87063-147zia2-020101009-87063-1d6mcyb-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87063-147zia2-020101009-87063-1d6mcyb-0[0]' -resize "x224" -crop "224x224+119+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87063-147zia2-020101009-87063-1d6mcyb-020101009-87063-1nahg8r-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87063-147zia2-020101009-87063-1d6mcyb-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87063-147zia2-020101009-87063-1d6mcyb-0[0]' -resize "x140" -crop "140x140+74+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87063-147zia2-020101009-87063-1d6mcyb-020101009-87063-1k7a439-0' 2>/dev/null + Photo Create (0.8ms) 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(134145, '2010-10-09 09:42:05', 'Croagh Patrick #3', '', 'Croagh Patrick no3.jpg', '2010-10-09 09:42:05', 'image/jpeg', '2010-10-09 09:42:03', '', NULL) +[paperclip] Saving attachments. +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/14/size3/Croagh Patrick no3.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/14/size2/Croagh Patrick no3.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/14/size11/Croagh Patrick no3.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/14/size8/Croagh Patrick no3.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/14/original/Croagh Patrick no3.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/14/size5/Croagh Patrick no3.jpg +Redirected to http://localhost:3000/admin/photos/edit/14 +Completed in 50227ms (DB: 1) | 302 Found [http://localhost/admin/photos/create] + + +Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-09 05:42:53) [GET] + Parameters: {"action"=>"edit", "id"=>"14", "controller"=>"admin/photos"} + TypusUser Load (0.7ms) 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.2ms) +Rendered admin/helpers/_search (0.9ms) +Rendered admin/helpers/_preview (1.2ms) +Rendered admin/templates/_file (9.6ms) +Rendered admin/templates/_string (0.8ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_text (0.6ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/resources/_form (17.0ms) + 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 = 14 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 14)  + 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 = 14 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 14)  + Category Load (0.1ms) 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/_header (0.1ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/helpers/_flash_message (8.7ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 95ms (View: 68, DB: 2) | 200 OK [http://localhost/admin/photos/edit/14] + + +Processing Admin::PhotosController#new (for 127.0.0.1 at 2010-10-09 05:42:57) [GET] + Parameters: {"action"=>"new", "controller"=>"admin/photos"} + 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 (2.0ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_text (0.5ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/resources/_form (8.5ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 102ms (View: 20, DB: 1) | 200 OK [http://localhost/admin/photos/new] + + +Processing Admin::PhotosController#create (for 127.0.0.1 at 2010-10-09 05:43:08) [POST] + Parameters: {"photo"=>{"photo"=>#, "title"=>"Croagh Patrick Sunset", "flickr_url"=>"", "sort"=>"", "description"=>""}, "commit"=>"Create Photo", "action"=>"create", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "controller"=>"admin/photos"} + TypusUser Load (0.6ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87063-ik19lc-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87063-ik19lc-0.jpg[0]' -resize "x84" -crop "84x84+40+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87063-ik19lc-020101009-87063-1rxs712-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87063-ik19lc-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87063-ik19lc-0.jpg[0]' -resize "x56" -crop "56x56+26+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87063-ik19lc-020101009-87063-1lhd3y7-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87063-ik19lc-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87063-ik19lc-0.jpg[0]' -resize "x308" -crop "308x308+147+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87063-ik19lc-020101009-87063-3bwju4-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87063-ik19lc-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87063-ik19lc-0.jpg[0]' -resize "1024x1024>" '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87063-ik19lc-020101009-87063-1qyasq6-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87063-ik19lc-020101009-87063-1qyasq6-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87063-ik19lc-020101009-87063-1qyasq6-0[0]' -resize "x224" -crop "224x224+107+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87063-ik19lc-020101009-87063-1qyasq6-020101009-87063-vtv045-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87063-ik19lc-020101009-87063-1qyasq6-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87063-ik19lc-020101009-87063-1qyasq6-0[0]' -resize "x140" -crop "140x140+67+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87063-ik19lc-020101009-87063-1qyasq6-020101009-87063-7ebtfa-0' 2>/dev/null + 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-09 09:43:10', 'Croagh Patrick Sunset', '', 'Croagh Patrick Sunset.jpg', '2010-10-09 09:43:10', 'image/jpeg', '2010-10-09 09:43:08', '', NULL) +[paperclip] Saving attachments. +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/15/size3/Croagh Patrick Sunset.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/15/size2/Croagh Patrick Sunset.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/15/size11/Croagh Patrick Sunset.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/15/size8/Croagh Patrick Sunset.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/15/original/Croagh Patrick Sunset.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/15/size5/Croagh Patrick Sunset.jpg + Photo Update (0.3ms) UPDATE "photos" SET "updated_at" = '2010-10-09 09:43:10', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15 +[paperclip] Saving attachments. + Photo Update (0.2ms) UPDATE "photos" SET "updated_at" = '2010-10-09 09:43:10', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15 +[paperclip] Saving attachments. + Photo Update (0.2ms) UPDATE "photos" SET "updated_at" = '2010-10-09 09:43:10', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15 +[paperclip] Saving attachments. + Photo Update (0.2ms) UPDATE "photos" SET "updated_at" = '2010-10-09 09:43:10', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15 +[paperclip] Saving attachments. + Photo Update (0.2ms) UPDATE "photos" SET "updated_at" = '2010-10-09 09:43:10', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15 +[paperclip] Saving attachments. + Photo Update (0.2ms) UPDATE "photos" SET "updated_at" = '2010-10-09 09:43:10', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15 +[paperclip] Saving attachments. + Photo Update (0.2ms) UPDATE "photos" SET "updated_at" = '2010-10-09 09:43:10', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15 +[paperclip] Saving attachments. + Photo Update (0.2ms) UPDATE "photos" SET "updated_at" = '2010-10-09 09:43:10', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15 +[paperclip] Saving attachments. + Photo Update (0.2ms) UPDATE "photos" SET "updated_at" = '2010-10-09 09:43:10', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15 +[paperclip] Saving attachments. + Photo Update (0.2ms) UPDATE "photos" SET "updated_at" = '2010-10-09 09:43:10', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15 +[paperclip] Saving attachments. + Photo Update (0.2ms) UPDATE "photos" SET "updated_at" = '2010-10-09 09:43:10', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15 +[paperclip] Saving attachments. + Photo Update (0.2ms) UPDATE "photos" SET "updated_at" = '2010-10-09 09:43:10', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15 +[paperclip] Saving attachments. + Photo Update (0.2ms) UPDATE "photos" SET "updated_at" = '2010-10-09 09:43:10', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15 +[paperclip] Saving attachments. + Photo Update (0.2ms) UPDATE "photos" SET "updated_at" = '2010-10-09 09:43:11', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15 +[paperclip] Saving attachments. + Photo Update (0.2ms) UPDATE "photos" SET "updated_at" = '2010-10-09 09:43:11', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15 +[paperclip] Saving attachments. + Photo Update (0.2ms) UPDATE "photos" SET "updated_at" = '2010-10-09 09:43:11', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15 +[paperclip] Saving attachments. + Photo Update (0.2ms) UPDATE "photos" SET "updated_at" = '2010-10-09 09:43:11', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15 +[paperclip] Saving attachments. + Photo Update (0.2ms) UPDATE "photos" SET "updated_at" = '2010-10-09 09:43:11', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15 +[paperclip] Saving attachments. + Photo Update (0.2ms) UPDATE "photos" SET "updated_at" = '2010-10-09 09:43:11', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15 +[paperclip] Saving attachments. + Photo Update (0.2ms) UPDATE "photos" SET "updated_at" = '2010-10-09 09:43:12', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15 +[paperclip] Saving attachments. + Photo Update (0.2ms) UPDATE "photos" SET "updated_at" = '2010-10-09 09:43:12', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15 +[paperclip] Saving attachments. + Photo Update (0.2ms) UPDATE "photos" SET "updated_at" = '2010-10-09 09:43:12', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15 +[paperclip] Saving attachments. + Photo Update (0.2ms) UPDATE "photos" SET "updated_at" = '2010-10-09 09:43:12', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15 +[paperclip] Saving attachments. + Photo Update (0.2ms) UPDATE "photos" SET "updated_at" = '2010-10-09 09:43:13', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15 +[paperclip] Saving attachments. + Photo Update (0.2ms) UPDATE "photos" SET "updated_at" = '2010-10-09 09:43:13', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15 +[paperclip] Saving attachments. + Photo Update (0.2ms) UPDATE "photos" SET "updated_at" = '2010-10-09 09:43:13', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15 +[paperclip] Saving attachments. + Photo Update (0.2ms) UPDATE "photos" SET "updated_at" = '2010-10-09 09:43:13', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15 +[paperclip] Saving attachments. + Photo Update (0.2ms) UPDATE "photos" SET "updated_at" = '2010-10-09 09:43:14', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15 +[paperclip] Saving attachments. + Photo Update (0.2ms) UPDATE "photos" SET "updated_at" = '2010-10-09 09:43:14', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15 +[paperclip] Saving attachments. + Photo Update (0.3ms) UPDATE "photos" SET "updated_at" = '2010-10-09 09:43:15', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15 +[paperclip] Saving attachments. + Photo Update (0.2ms) UPDATE "photos" SET "updated_at" = '2010-10-09 09:43:15', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15 +[paperclip] Saving attachments. + Photo Update (0.2ms) UPDATE "photos" SET "updated_at" = '2010-10-09 09:43:15', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15 +[paperclip] Saving attachments. + Photo Update (0.2ms) UPDATE "photos" SET "updated_at" = '2010-10-09 09:43:16', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15 +[paperclip] Saving attachments. + Photo Update (0.2ms) UPDATE "photos" SET "updated_at" = '2010-10-09 09:43:17', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15 +[paperclip] Saving attachments. + Photo Update (0.2ms) UPDATE "photos" SET "updated_at" = '2010-10-09 09:43:17', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15 +[paperclip] Saving attachments. + Photo Update (0.2ms) UPDATE "photos" SET "updated_at" = '2010-10-09 09:43:18', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15 +[paperclip] Saving attachments. + Photo Update (0.2ms) UPDATE "photos" SET "updated_at" = '2010-10-09 09:43:18', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15 +[paperclip] Saving attachments. + Photo Update (0.2ms) UPDATE "photos" SET "updated_at" = '2010-10-09 09:43:19', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15 +[paperclip] Saving attachments. + Photo Update (0.2ms) UPDATE "photos" SET "updated_at" = '2010-10-09 09:43:19', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15 +[paperclip] Saving attachments. + Photo Update (0.2ms) UPDATE "photos" SET "updated_at" = '2010-10-09 09:43:20', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15 +[paperclip] Saving attachments. + Photo Update (0.2ms) UPDATE "photos" SET "updated_at" = '2010-10-09 09:43:21', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15 +[paperclip] Saving attachments. + Photo Update (0.2ms) UPDATE "photos" SET "updated_at" = '2010-10-09 09:43:22', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15 +[paperclip] Saving attachments. + Photo Update (0.2ms) UPDATE "photos" SET "updated_at" = '2010-10-09 09:43:22', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15 +[paperclip] Saving attachments. + Photo Update (0.2ms) UPDATE "photos" SET "updated_at" = '2010-10-09 09:43:23', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15 +[paperclip] Saving attachments. + Photo Update (0.2ms) UPDATE "photos" SET "updated_at" = '2010-10-09 09:43:24', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15 +[paperclip] Saving attachments. + Photo Update (0.2ms) UPDATE "photos" SET "updated_at" = '2010-10-09 09:43:25', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15 +[paperclip] Saving attachments. + Photo Update (0.2ms) UPDATE "photos" SET "updated_at" = '2010-10-09 09:43:26', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15 +[paperclip] Saving attachments. + Photo Update (0.2ms) UPDATE "photos" SET "updated_at" = '2010-10-09 09:43:27', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15 +[paperclip] Saving attachments. + Photo Update (0.3ms) UPDATE "photos" SET "updated_at" = '2010-10-09 09:43:28', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15 +[paperclip] Saving attachments. + Photo Update (0.3ms) UPDATE "photos" SET "updated_at" = '2010-10-09 09:43:29', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15 +[paperclip] Saving attachments. + Photo Update (0.3ms) UPDATE "photos" SET "updated_at" = '2010-10-09 09:43:30', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15 +[paperclip] Saving attachments. + Photo Update (0.2ms) UPDATE "photos" SET "updated_at" = '2010-10-09 09:43:31', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15 +[paperclip] Saving attachments. + Photo Update (0.2ms) UPDATE "photos" SET "updated_at" = '2010-10-09 09:43:32', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15 +[paperclip] Saving attachments. + Photo Update (0.2ms) UPDATE "photos" SET "updated_at" = '2010-10-09 09:43:33', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15 +[paperclip] Saving attachments. + Photo Update (0.2ms) UPDATE "photos" SET "updated_at" = '2010-10-09 09:43:34', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15 +[paperclip] Saving attachments. + Photo Update (0.2ms) UPDATE "photos" SET "updated_at" = '2010-10-09 09:43:35', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15 +[paperclip] Saving attachments. + Photo Update (0.4ms) UPDATE "photos" SET "updated_at" = '2010-10-09 09:43:37', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15 +[paperclip] Saving attachments. + Photo Update (0.2ms) UPDATE "photos" SET "updated_at" = '2010-10-09 09:43:38', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15 +[paperclip] Saving attachments. + Photo Update (0.2ms) UPDATE "photos" SET "updated_at" = '2010-10-09 09:43:39', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15 +[paperclip] Saving attachments. + Photo Update (0.3ms) UPDATE "photos" SET "updated_at" = '2010-10-09 09:43:41', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15 +[paperclip] Saving attachments. + Photo Update (0.3ms) UPDATE "photos" SET "updated_at" = '2010-10-09 09:43:42', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15 +[paperclip] Saving attachments. + Photo Update (0.2ms) UPDATE "photos" SET "updated_at" = '2010-10-09 09:43:44', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15 +[paperclip] Saving attachments. + Photo Update (0.2ms) UPDATE "photos" SET "updated_at" = '2010-10-09 09:43:45', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15 +[paperclip] Saving attachments. + Photo Update (0.3ms) UPDATE "photos" SET "updated_at" = '2010-10-09 09:43:47', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15 +[paperclip] Saving attachments. + Photo Update (0.2ms) UPDATE "photos" SET "updated_at" = '2010-10-09 09:43:49', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15 +[paperclip] Saving attachments. + Photo Update (0.2ms) UPDATE "photos" SET "updated_at" = '2010-10-09 09:43:51', "created_at" = '2010-10-09 09:43:10', "photo_file_name" = 'Croagh Patrick Sunset.jpg', "title" = 'Croagh Patrick Sunset', "photo_file_size" = 133140, "photo_updated_at" = '2010-10-09 09:43:08', "flickr_url" = '', "description" = 'The west of Ireland is so photogenic!', "photo_content_type" = 'image/jpeg' WHERE "id" = 15 +[paperclip] Saving attachments. + + +Processing Admin::PhotosController#create (for 127.0.0.1 at 2010-10-09 05:44:12) [POST] + Parameters: {"photo"=>{"photo"=>#, "title"=>"Croagh Patrick Sunset", "flickr_url"=>"", "sort"=>"", "description"=>""}, "commit"=>"Create Photo", "action"=>"create", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "controller"=>"admin/photos"} + TypusUser Load (0.3ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + SQL (0.6ms)  SELECT name + FROM sqlite_master + WHERE type = 'table' AND NOT name = 'sqlite_sequence' + + +NoMethodError (undefined method `after_post_processing' for #): + app/models/photo.rb:13 + vendor/plugins/typus/app/controllers/admin/master_controller.rb:277:in `set_resource' + +Rendered rescues/_trace (97.6ms) +Rendered rescues/_request_and_response (1.5ms) +Rendering rescues/layout (internal_server_error) + + +Processing Admin::PhotosController#create (for 127.0.0.1 at 2010-10-09 05:44:34) [POST] + Parameters: {"photo"=>{"photo"=>#, "title"=>"Croagh Patrick Sunset", "flickr_url"=>"", "sort"=>"", "description"=>""}, "commit"=>"Create Photo", "action"=>"create", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "controller"=>"admin/photos"} + TypusUser Load (0.7ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-mrktxx-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-mrktxx-0.jpg[0]' -resize "x308" -crop "308x308+147+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-mrktxx-020101009-87161-9if1wr-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-mrktxx-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-mrktxx-0.jpg[0]' -resize "x224" -crop "224x224+107+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-mrktxx-020101009-87161-5n4pej-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-mrktxx-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-mrktxx-0.jpg[0]' -resize "x140" -crop "140x140+67+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-mrktxx-020101009-87161-yjv0b1-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-mrktxx-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-mrktxx-0.jpg[0]' -resize "1024x1024>" '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-mrktxx-020101009-87161-178mx0b-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-mrktxx-020101009-87161-178mx0b-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-mrktxx-020101009-87161-178mx0b-0[0]' -resize "x84" -crop "84x84+40+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-mrktxx-020101009-87161-178mx0b-020101009-87161-ir9b94-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-mrktxx-020101009-87161-178mx0b-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-mrktxx-020101009-87161-178mx0b-0[0]' -resize "x56" -crop "56x56+26+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-mrktxx-020101009-87161-178mx0b-020101009-87161-1qyom69-0' 2>/dev/null + +Errno::ENOENT (No such file or directory - /Users/danbee/Sites/rails/photos/public/system/photos//original/Croagh Patrick Sunset.jpg): + exifr (1.0.3) lib/jpeg.rb:29:in `initialize' + exifr (1.0.3) lib/jpeg.rb:29:in `open' + exifr (1.0.3) lib/jpeg.rb:29:in `initialize' + app/models/photo.rb:17:in `new' + app/models/photo.rb:17:in `get_exif' + vendor/plugins/typus/app/controllers/admin/master_controller.rb:92:in `create' + +Rendered rescues/_trace (150.6ms) +Rendered rescues/_request_and_response (0.5ms) +Rendering rescues/layout (internal_server_error) + + +Processing Admin::PhotosController#create (for 127.0.0.1 at 2010-10-09 05:47:53) [POST] + Parameters: {"photo"=>{"photo"=>#, "title"=>"Croagh Patrick Sunset", "flickr_url"=>"", "sort"=>"", "description"=>""}, "commit"=>"Create Photo", "action"=>"create", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "controller"=>"admin/photos"} + TypusUser Load (0.7ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-2qbi0z-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-2qbi0z-0.jpg[0]' -resize "x308" -crop "308x308+147+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-2qbi0z-020101009-87161-oerhhk-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-2qbi0z-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-2qbi0z-0.jpg[0]' -resize "x224" -crop "224x224+107+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-2qbi0z-020101009-87161-q7cj6-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-2qbi0z-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-2qbi0z-0.jpg[0]' -resize "x140" -crop "140x140+67+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-2qbi0z-020101009-87161-1xyek95-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-2qbi0z-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-2qbi0z-0.jpg[0]' -resize "1024x1024>" '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-2qbi0z-020101009-87161-cc8r1l-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-2qbi0z-020101009-87161-cc8r1l-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-2qbi0z-020101009-87161-cc8r1l-0[0]' -resize "x84" -crop "84x84+40+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-2qbi0z-020101009-87161-cc8r1l-020101009-87161-dkxpwu-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-2qbi0z-020101009-87161-cc8r1l-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-2qbi0z-020101009-87161-cc8r1l-0[0]' -resize "x56" -crop "56x56+26+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-2qbi0z-020101009-87161-cc8r1l-020101009-87161-sgr7f4-0' 2>/dev/null + +Errno::ENOENT (No such file or directory - /Users/danbee/Sites/rails/photos/public/system/photos//original/Croagh Patrick Sunset.jpg): + exifr (1.0.3) lib/jpeg.rb:29:in `initialize' + exifr (1.0.3) lib/jpeg.rb:29:in `open' + exifr (1.0.3) lib/jpeg.rb:29:in `initialize' + app/models/photo.rb:17:in `new' + app/models/photo.rb:17:in `get_exif' + vendor/plugins/typus/app/controllers/admin/master_controller.rb:84:in `new' + vendor/plugins/typus/app/controllers/admin/master_controller.rb:84:in `create' + +Rendered rescues/_trace (46.6ms) +Rendered rescues/_request_and_response (0.9ms) +Rendering rescues/layout (internal_server_error) + + +Processing Admin::PhotosController#create (for 127.0.0.1 at 2010-10-09 05:52:37) [POST] + Parameters: {"photo"=>{"photo"=>#, "title"=>"Croagh Patrick Sunset", "flickr_url"=>"", "sort"=>"", "description"=>""}, "commit"=>"Create Photo", "action"=>"create", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "controller"=>"admin/photos"} + TypusUser Load (0.9ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1kbmloy-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1kbmloy-0.jpg[0]' -resize "x308" -crop "308x308+147+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1kbmloy-020101009-87161-1v3bbk0-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1kbmloy-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1kbmloy-0.jpg[0]' -resize "x224" -crop "224x224+107+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1kbmloy-020101009-87161-m5iyrs-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1kbmloy-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1kbmloy-0.jpg[0]' -resize "x140" -crop "140x140+67+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1kbmloy-020101009-87161-6rpvw4-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1kbmloy-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1kbmloy-0.jpg[0]' -resize "1024x1024>" '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1kbmloy-020101009-87161-5q8pf9-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1kbmloy-020101009-87161-5q8pf9-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1kbmloy-020101009-87161-5q8pf9-0[0]' -resize "x84" -crop "84x84+40+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1kbmloy-020101009-87161-5q8pf9-020101009-87161-y2e3q6-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1kbmloy-020101009-87161-5q8pf9-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1kbmloy-020101009-87161-5q8pf9-0[0]' -resize "x56" -crop "56x56+26+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1kbmloy-020101009-87161-5q8pf9-020101009-87161-1820vgw-0' 2>/dev/null + Photo Create (1.0ms) 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-09 09:52:55', 'Croagh Patrick Sunset', '', 'Croagh Patrick Sunset.jpg', '2010-10-09 09:52:55', 'image/jpeg', '2010-10-09 09:52:37', '', NULL) +[paperclip] Saving attachments. +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/16/size11/Croagh Patrick Sunset.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/16/size8/Croagh Patrick Sunset.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/16/size5/Croagh Patrick Sunset.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/16/size3/Croagh Patrick Sunset.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/16/original/Croagh Patrick Sunset.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/16/size2/Croagh Patrick Sunset.jpg +Redirected to http://localhost:3000/admin/photos/edit/16 +Completed in 17854ms (DB: 2) | 302 Found [http://localhost/admin/photos/create] + + +Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-09 05:52:55) [GET] + Parameters: {"action"=>"edit", "id"=>"16", "controller"=>"admin/photos"} + TypusUser Load (0.6ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."id" = 16)  +Rendering template within layouts/admin +Rendering admin/resources/edit +Rendered admin/helpers/_list (0.6ms) +Rendered admin/helpers/_search (3.8ms) +Rendered admin/helpers/_preview (1.3ms) +Rendered admin/templates/_file (10.7ms) +Rendered admin/templates/_string (1.4ms) +Rendered admin/templates/_string (0.8ms) +Rendered admin/templates/_text (1.0ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/resources/_form (30.4ms) + 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 = 16 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 16)  + 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 = 16 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 16)  + Category Load (0.1ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 16 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_header (0.7ms) +Rendered admin/helpers/_login_info (1.1ms) +Rendered admin/helpers/_flash_message (19.7ms) +Rendered admin/shared/_footer (0.7ms) +Completed in 261ms (View: 230, DB: 2) | 200 OK [http://localhost/admin/photos/edit/16] + + +Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-09 05:53:56) [GET] + Parameters: {"action"=>"edit", "id"=>"16", "controller"=>"admin/photos"} + TypusUser Load (1.1ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."id" = 16)  +Rendering template within layouts/admin +Rendering admin/resources/edit +Rendered admin/helpers/_list (0.1ms) +Rendered admin/helpers/_search (0.6ms) +Rendered admin/helpers/_preview (0.2ms) +Rendered admin/templates/_file (4.7ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/templates/_string (0.8ms) +Rendered admin/templates/_text (0.5ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/resources/_form (10.9ms) + 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 = 16 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 16)  + 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 = 16 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 16)  + Category Load (0.2ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 16 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 58ms (View: 33, DB: 3) | 200 OK [http://localhost/admin/photos/edit/16] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:53:57) [GET] + Photo Load (1.8ms) SELECT * FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 134ms (View: 60, DB: 2) | 200 OK [http://localhost/photos] + + +Processing Admin::PhotosController#show (for 127.0.0.1 at 2010-10-09 05:54:01) [GET] + Parameters: {"action"=>"show", "id"=>"16", "controller"=>"admin/photos"} + TypusUser Load (0.6ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.4ms) SELECT * FROM "photos" WHERE ("photos"."id" = 16)  +Rendering template within layouts/admin +Rendering admin/resources/show +Rendered admin/helpers/_list (0.1ms) +Rendered admin/helpers/_search (0.5ms) + 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 = 16 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 16)  + 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 = 16 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 16)  + Category Load (0.1ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 16 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 70ms (View: 44, DB: 2) | 200 OK [http://localhost/admin/photos/show/16] + + +Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-09 05:54:03) [GET] + Parameters: {"action"=>"index", "controller"=>"admin/photos"} + 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.2ms) + Photo Load (1.5ms) SELECT "photos".* FROM "photos" ORDER BY photos.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_table_header (1.1ms) + Category Load (0.6ms) 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.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.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.4ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 13 )  + Category Load (0.1ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 14 )  + Category Load (0.1ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 15 )  + Category Load (0.1ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 16 )  +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 179ms (View: 95, DB: 7) | 200 OK [http://localhost/admin/photos] + + +Processing Admin::PhotosController#destroy (for 127.0.0.1 at 2010-10-09 05:54:07) [GET] + Parameters: {"action"=>"destroy", "id"=>"16", "controller"=>"admin/photos"} + TypusUser Load (0.6ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."id" = 16)  +[paperclip] Deleting attachments. +[paperclip] deleting /Users/danbee/Sites/rails/photos/public/system/photos/16/original/Croagh Patrick Sunset.jpg +[paperclip] deleting /Users/danbee/Sites/rails/photos/public/system/photos/16/size11/Croagh Patrick Sunset.jpg +[paperclip] deleting /Users/danbee/Sites/rails/photos/public/system/photos/16/size8/Croagh Patrick Sunset.jpg +[paperclip] deleting /Users/danbee/Sites/rails/photos/public/system/photos/16/size5/Croagh Patrick Sunset.jpg +[paperclip] deleting /Users/danbee/Sites/rails/photos/public/system/photos/16/size3/Croagh Patrick Sunset.jpg +[paperclip] deleting /Users/danbee/Sites/rails/photos/public/system/photos/16/size2/Croagh Patrick Sunset.jpg + Category Load (0.2ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 16 )  + Photo Destroy (0.2ms) DELETE FROM "photos" WHERE "id" = 16 +Redirected to http://localhost:3000/admin/photos +Completed in 103ms (DB: 1) | 302 Found [http://localhost/admin/photos/destroy/16] + + +Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-09 05:54:07) [GET] + Parameters: {"action"=>"index", "controller"=>"admin/photos"} + TypusUser Load (0.7ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + SQL (0.3ms) 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.3ms) 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.4ms) 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.5ms) 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.1ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 14 )  + Category Load (0.1ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 15 )  +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/helpers/_flash_message (0.1ms) +Rendered admin/shared/_footer (59.3ms) +Completed in 151ms (View: 115, DB: 6) | 200 OK [http://localhost/admin/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:54:09) [GET] + Photo Load (2.3ms) SELECT * FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 27ms (View: 17, DB: 2) | 200 OK [http://localhost/photos] + + +Processing Admin::PhotosController#new (for 127.0.0.1 at 2010-10-09 05:54:13) [GET] + Parameters: {"action"=>"new", "controller"=>"admin/photos"} + TypusUser Load (0.7ms) 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 (1.2ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_text (0.5ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/resources/_form (65.9ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 105ms (View: 80, DB: 1) | 200 OK [http://localhost/admin/photos/new] + + +Processing Admin::PhotosController#create (for 127.0.0.1 at 2010-10-09 05:54:36) [POST] + Parameters: {"photo"=>{"photo"=>#, "title"=>"Doolough", "flickr_url"=>"", "sort"=>"", "description"=>""}, "commit"=>"Create Photo", "action"=>"create", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "controller"=>"admin/photos"} + TypusUser Load (0.6ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-sa3tl0-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-sa3tl0-0.jpg[0]' -resize "308x" -crop "308x308+0+77" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-sa3tl0-020101009-87161-16e1jgc-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-sa3tl0-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-sa3tl0-0.jpg[0]' -resize "224x" -crop "224x224+0+56" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-sa3tl0-020101009-87161-a8zovc-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-sa3tl0-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-sa3tl0-0.jpg[0]' -resize "140x" -crop "140x140+0+35" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-sa3tl0-020101009-87161-1sk5m9t-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-sa3tl0-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-sa3tl0-0.jpg[0]' -resize "1024x1024>" '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-sa3tl0-020101009-87161-yx3dmp-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-sa3tl0-020101009-87161-yx3dmp-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-sa3tl0-020101009-87161-yx3dmp-0[0]' -resize "84x" -crop "84x84+0+20" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-sa3tl0-020101009-87161-yx3dmp-020101009-87161-oqj40b-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-sa3tl0-020101009-87161-yx3dmp-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-sa3tl0-020101009-87161-yx3dmp-0[0]' -resize "56x" -crop "56x56+0+13" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-sa3tl0-020101009-87161-yx3dmp-020101009-87161-19v0m20-0' 2>/dev/null + Photo Create (1.1ms) 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(284028, '2010-10-09 09:54:39', 'Doolough', '', 'Doolough.jpg', '2010-10-09 09:54:39', 'image/jpeg', '2010-10-09 09:54:36', '', NULL) +[paperclip] Saving attachments. +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/17/size11/Doolough.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/17/size8/Doolough.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/17/size5/Doolough.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/17/size3/Doolough.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/17/original/Doolough.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/17/size2/Doolough.jpg +Redirected to http://localhost:3000/admin/photos/edit/17 +Completed in 12004ms (DB: 2) | 302 Found [http://localhost/admin/photos/create] + + +Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-09 05:54:48) [GET] + Parameters: {"action"=>"edit", "id"=>"17", "controller"=>"admin/photos"} + TypusUser Load (0.7ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."id" = 17)  +Rendering template within layouts/admin +Rendering admin/resources/edit +Rendered admin/helpers/_list (0.1ms) +Rendered admin/helpers/_search (0.6ms) +Rendered admin/helpers/_preview (0.2ms) +Rendered admin/templates/_file (6.2ms) +Rendered admin/templates/_string (0.8ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/templates/_text (0.5ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/resources/_form (13.7ms) + SQL (0.2ms) SELECT count(*) AS count_all FROM "categories"  + Category Load (0.5ms) 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 = 17 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 17)  + 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 = 17 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."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 = 17 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/helpers/_flash_message (0.1ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 244ms (View: 216, DB: 2) | 200 OK [http://localhost/admin/photos/edit/17] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 05:55:18) [GET] + Photo Load (2.0ms) SELECT * FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 30ms (View: 20, DB: 2) | 200 OK [http://localhost/photos] + + +Processing Admin::PhotosController#new (for 127.0.0.1 at 2010-10-09 05:55:34) [GET] + Parameters: {"action"=>"new", "controller"=>"admin/photos"} + 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 (2.2ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/templates/_text (0.6ms) +Rendered admin/templates/_string (0.9ms) +Rendered admin/resources/_form (9.5ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 100ms (View: 21, DB: 1) | 200 OK [http://localhost/admin/photos/new] + + +Processing Admin::PhotosController#create (for 127.0.0.1 at 2010-10-09 05:55:45) [POST] + Parameters: {"photo"=>{"photo"=>#, "title"=>"Dragonfly", "flickr_url"=>"", "sort"=>"", "description"=>""}, "commit"=>"Create Photo", "action"=>"create", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "controller"=>"admin/photos"} + TypusUser Load (0.6ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-auwv40-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-auwv40-0.jpg[0]' -resize "x308" -crop "308x308+82+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-auwv40-020101009-87161-1d3ctm8-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-auwv40-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-auwv40-0.jpg[0]' -resize "x224" -crop "224x224+59+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-auwv40-020101009-87161-171x8eu-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-auwv40-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-auwv40-0.jpg[0]' -resize "x140" -crop "140x140+37+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-auwv40-020101009-87161-1sdmlje-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-auwv40-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-auwv40-0.jpg[0]' -resize "1024x1024>" '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-auwv40-020101009-87161-sjzmz7-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-auwv40-020101009-87161-sjzmz7-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-auwv40-020101009-87161-sjzmz7-0[0]' -resize "x84" -crop "84x84+22+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-auwv40-020101009-87161-sjzmz7-020101009-87161-140rl5u-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-auwv40-020101009-87161-sjzmz7-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-auwv40-020101009-87161-sjzmz7-0[0]' -resize "x56" -crop "56x56+14+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-auwv40-020101009-87161-sjzmz7-020101009-87161-3cvai-0' 2>/dev/null + 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(262475, '2010-10-09 09:55:47', 'Dragonfly', '', 'Dragonfly.jpg', '2010-10-09 09:55:47', 'image/jpeg', '2010-10-09 09:55:45', '', NULL) +[paperclip] Saving attachments. +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/18/size11/Dragonfly.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/18/size8/Dragonfly.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/18/size5/Dragonfly.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/18/size3/Dragonfly.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/18/original/Dragonfly.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/18/size2/Dragonfly.jpg +Redirected to http://localhost:3000/admin/photos/edit/18 +Completed in 33067ms (DB: 1) | 302 Found [http://localhost/admin/photos/create] + + +Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-09 05:56:18) [GET] + Parameters: {"action"=>"edit", "id"=>"18", "controller"=>"admin/photos"} + TypusUser Load (0.8ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."id" = 18)  +Rendering template within layouts/admin +Rendering admin/resources/edit +Rendered admin/helpers/_list (0.1ms) +Rendered admin/helpers/_search (0.6ms) +Rendered admin/helpers/_preview (0.2ms) +Rendered admin/templates/_file (6.0ms) +Rendered admin/templates/_string (1.0ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/templates/_text (0.5ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/resources/_form (13.1ms) + 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 = 18 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 18)  + 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 = 18 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 18)  + Category Load (0.2ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 18 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/helpers/_flash_message (0.1ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 123ms (View: 95, DB: 3) | 200 OK [http://localhost/admin/photos/edit/18] + + +Processing Admin::PhotosController#new (for 127.0.0.1 at 2010-10-09 05:56:58) [GET] + Parameters: {"action"=>"new", "controller"=>"admin/photos"} + TypusUser Load (0.7ms) 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 (2.0ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/templates/_text (0.5ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/resources/_form (8.6ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 45ms (View: 21, DB: 1) | 200 OK [http://localhost/admin/photos/new] + + +Processing Admin::PhotosController#create (for 127.0.0.1 at 2010-10-09 05:57:15) [POST] + Parameters: {"photo"=>{"photo"=>#, "title"=>"Famine Monument at Murrisk", "flickr_url"=>"", "sort"=>"", "description"=>""}, "commit"=>"Create Photo", "action"=>"create", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "controller"=>"admin/photos"} + TypusUser Load (0.9ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-15p81zu-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-15p81zu-0.jpg[0]' -resize "x308" -crop "308x308+77+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-15p81zu-020101009-87161-knf8e3-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-15p81zu-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-15p81zu-0.jpg[0]' -resize "x224" -crop "224x224+56+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-15p81zu-020101009-87161-afs9fn-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-15p81zu-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-15p81zu-0.jpg[0]' -resize "x140" -crop "140x140+35+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-15p81zu-020101009-87161-1eiv2gu-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-15p81zu-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-15p81zu-0.jpg[0]' -resize "1024x1024>" '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-15p81zu-020101009-87161-1sv0wg1-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-15p81zu-020101009-87161-1sv0wg1-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-15p81zu-020101009-87161-1sv0wg1-0[0]' -resize "x84" -crop "84x84+20+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-15p81zu-020101009-87161-1sv0wg1-020101009-87161-427c6n-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-15p81zu-020101009-87161-1sv0wg1-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-15p81zu-020101009-87161-1sv0wg1-0[0]' -resize "x56" -crop "56x56+13+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-15p81zu-020101009-87161-1sv0wg1-020101009-87161-1ephlxk-0' 2>/dev/null + Photo Create (0.6ms) 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(238370, '2010-10-09 09:57:18', 'Famine Monument at Murrisk', '', 'Famine Monument at Murrisk.jpg', '2010-10-09 09:57:18', 'image/jpeg', '2010-10-09 09:57:15', '', NULL) +[paperclip] Saving attachments. +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/19/size11/Famine Monument at Murrisk.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/19/size8/Famine Monument at Murrisk.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/19/size5/Famine Monument at Murrisk.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/19/size3/Famine Monument at Murrisk.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/19/original/Famine Monument at Murrisk.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/19/size2/Famine Monument at Murrisk.jpg +Redirected to http://localhost:3000/admin/photos/edit/19 +Completed in 3267ms (DB: 1) | 302 Found [http://localhost/admin/photos/create] + + +Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-09 05:57:18) [GET] + Parameters: {"action"=>"edit", "id"=>"19", "controller"=>"admin/photos"} + TypusUser Load (0.7ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.5ms) SELECT * FROM "photos" WHERE ("photos"."id" = 19)  +Rendering template within layouts/admin +Rendering admin/resources/edit +Rendered admin/helpers/_list (0.2ms) +Rendered admin/helpers/_search (0.9ms) +Rendered admin/helpers/_preview (0.2ms) +Rendered admin/templates/_file (8.4ms) +Rendered admin/templates/_string (0.8ms) +Rendered admin/templates/_string (0.8ms) +Rendered admin/templates/_text (0.6ms) +Rendered admin/templates/_string (1.2ms) +Rendered admin/resources/_form (17.5ms) + SQL (0.2ms) SELECT count(*) AS count_all FROM "categories"  + Category Load (0.5ms) 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 = 19 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 19)  + 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 = 19 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 19)  + Category Load (0.2ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 19 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.8ms) +Rendered admin/helpers/_flash_message (0.1ms) +Rendered admin/shared/_footer (0.4ms) +Completed in 81ms (View: 47, DB: 3) | 200 OK [http://localhost/admin/photos/edit/19] + + +Processing Admin::PhotosController#new (for 127.0.0.1 at 2010-10-09 05:57:20) [GET] + Parameters: {"action"=>"new", "controller"=>"admin/photos"} + 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.2ms) +Rendered admin/templates/_file (2.0ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_text (0.5ms) +Rendered admin/templates/_string (1.0ms) +Rendered admin/resources/_form (9.0ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 103ms (View: 81, DB: 1) | 200 OK [http://localhost/admin/photos/new] + + +Processing Admin::PhotosController#new (for 127.0.0.1 at 2010-10-09 06:04:10) [GET] + Parameters: {"action"=>"new", "controller"=>"admin/photos"} + 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 (2.0ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_text (0.5ms) +Rendered admin/templates/_string (0.5ms) +Rendered admin/resources/_form (8.5ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 53ms (View: 21, DB: 1) | 200 OK [http://localhost/admin/photos/new] + + +Processing Admin::PhotosController#new (for 127.0.0.1 at 2010-10-09 06:04:14) [GET] + Parameters: {"action"=>"new", "controller"=>"admin/photos"} + 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.5ms) +Rendered admin/templates/_text (0.5ms) +Rendered admin/templates/_string (0.5ms) +Rendered admin/resources/_form (7.9ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 100ms (View: 19, DB: 1) | 200 OK [http://localhost/admin/photos/new] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 06:04:39) [GET] + Photo Load (1.8ms) SELECT * FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 26ms (View: 17, DB: 2) | 200 OK [http://localhost/photos] + + +Processing Admin::PhotosController#create (for 127.0.0.1 at 2010-10-09 06:04:54) [POST] + Parameters: {"photo"=>{"photo"=>#, "title"=>"Halfway There", "flickr_url"=>"", "sort"=>"", "description"=>""}, "commit"=>"Create Photo", "action"=>"create", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "controller"=>"admin/photos"} + TypusUser Load (0.6ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1opp1ql-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1opp1ql-0.jpg[0]' -resize "308x" -crop "308x308+0+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1opp1ql-020101009-87161-1bpiiql-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1opp1ql-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1opp1ql-0.jpg[0]' -resize "224x" -crop "224x224+0+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1opp1ql-020101009-87161-vdoyqs-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1opp1ql-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1opp1ql-0.jpg[0]' -resize "140x" -crop "140x140+0+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1opp1ql-020101009-87161-5bc6zt-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1opp1ql-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1opp1ql-0.jpg[0]' -resize "1024x1024>" '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1opp1ql-020101009-87161-j4oaql-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1opp1ql-020101009-87161-j4oaql-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1opp1ql-020101009-87161-j4oaql-0[0]' -resize "84x" -crop "84x84+0+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1opp1ql-020101009-87161-j4oaql-020101009-87161-1kh0hig-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1opp1ql-020101009-87161-j4oaql-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1opp1ql-020101009-87161-j4oaql-0[0]' -resize "56x" -crop "56x56+0+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1opp1ql-020101009-87161-j4oaql-020101009-87161-17qmczv-0' 2>/dev/null + Photo Create (0.6ms) 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(539439, '2010-10-09 10:04:57', 'Halfway There', '', 'Halfway There.jpg', '2010-10-09 10:04:57', 'image/jpeg', '2010-10-09 10:04:55', '', NULL) +[paperclip] Saving attachments. +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/20/size11/Halfway There.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/20/size8/Halfway There.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/20/size5/Halfway There.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/20/size3/Halfway There.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/20/original/Halfway There.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/20/size2/Halfway There.jpg +Redirected to http://localhost:3000/admin/photos/edit/20 +Completed in 2396ms (DB: 1) | 302 Found [http://localhost/admin/photos/create] + + +Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-09 06:04:57) [GET] + Parameters: {"action"=>"edit", "id"=>"20", "controller"=>"admin/photos"} + TypusUser Load (0.6ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.5ms) SELECT * FROM "photos" WHERE ("photos"."id" = 20)  +Rendering template within layouts/admin +Rendering admin/resources/edit +Rendered admin/helpers/_list (0.1ms) +Rendered admin/helpers/_search (0.7ms) +Rendered admin/helpers/_preview (0.2ms) +Rendered admin/templates/_file (5.4ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_text (0.5ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/resources/_form (11.4ms) + 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 = 20 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 20)  + 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 = 20 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 20)  + Category Load (0.2ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 20 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/helpers/_flash_message (0.1ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 70ms (View: 36, DB: 2) | 200 OK [http://localhost/admin/photos/edit/20] + + +Processing Admin::PhotosController#new (for 127.0.0.1 at 2010-10-09 06:05:05) [GET] + Parameters: {"action"=>"new", "controller"=>"admin/photos"} + TypusUser Load (0.7ms) 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.6ms) +Rendered admin/templates/_string (0.9ms) +Rendered admin/templates/_text (0.5ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/resources/_form (8.8ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 45ms (View: 22, DB: 1) | 200 OK [http://localhost/admin/photos/new] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 06:05:07) [GET] + Photo Load (2.1ms) SELECT * FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 29ms (View: 19, DB: 2) | 200 OK [http://localhost/photos] + + +Processing Admin::PhotosController#create (for 127.0.0.1 at 2010-10-09 06:05:24) [POST] + Parameters: {"photo"=>{"photo"=>#, "title"=>"House on the Hill", "flickr_url"=>"", "sort"=>"", "description"=>""}, "commit"=>"Create Photo", "action"=>"create", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "controller"=>"admin/photos"} + TypusUser Load (0.9ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-bhlem9-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-bhlem9-0.jpg[0]' -resize "308x" -crop "308x308+0+47" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-bhlem9-020101009-87161-1xzv54d-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-bhlem9-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-bhlem9-0.jpg[0]' -resize "224x" -crop "224x224+0+34" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-bhlem9-020101009-87161-1qh1dqd-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-bhlem9-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-bhlem9-0.jpg[0]' -resize "140x" -crop "140x140+0+21" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-bhlem9-020101009-87161-iiflyl-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-bhlem9-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-bhlem9-0.jpg[0]' -resize "1024x1024>" '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-bhlem9-020101009-87161-geq4fa-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-bhlem9-020101009-87161-geq4fa-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-bhlem9-020101009-87161-geq4fa-0[0]' -resize "84x" -crop "84x84+0+12" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-bhlem9-020101009-87161-geq4fa-020101009-87161-qf3jlt-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-bhlem9-020101009-87161-geq4fa-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-bhlem9-020101009-87161-geq4fa-0[0]' -resize "56x" -crop "56x56+0+8" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-bhlem9-020101009-87161-geq4fa-020101009-87161-1o92nef-0' 2>/dev/null + 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(377139, '2010-10-09 10:05:26', 'House on the Hill', '', 'House on the HIll.jpg', '2010-10-09 10:05:26', 'image/jpeg', '2010-10-09 10:05:24', '', NULL) +[paperclip] Saving attachments. +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/21/size11/House on the HIll.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/21/size8/House on the HIll.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/21/size5/House on the HIll.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/21/size3/House on the HIll.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/21/original/House on the HIll.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/21/size2/House on the HIll.jpg +Redirected to http://localhost:3000/admin/photos/edit/21 +Completed in 1883ms (DB: 1) | 302 Found [http://localhost/admin/photos/create] + + +Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-09 06:05:26) [GET] + Parameters: {"action"=>"edit", "id"=>"21", "controller"=>"admin/photos"} + TypusUser Load (0.9ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.4ms) SELECT * FROM "photos" WHERE ("photos"."id" = 21)  +Rendering template within layouts/admin +Rendering admin/resources/edit +Rendered admin/helpers/_list (0.2ms) +Rendered admin/helpers/_search (0.6ms) +Rendered admin/helpers/_preview (0.2ms) +Rendered admin/templates/_file (5.3ms) +Rendered admin/templates/_string (1.3ms) +Rendered admin/templates/_string (1.1ms) +Rendered admin/templates/_text (1.0ms) +Rendered admin/templates/_string (1.2ms) +Rendered admin/resources/_form (15.2ms) + SQL (0.2ms) SELECT count(*) AS count_all FROM "categories"  + Category Load (0.6ms) 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 = 21 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 21)  + SQL (0.4ms) SELECT count(*) AS count_all FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 21 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 21)  + Category Load (0.3ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 21 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.7ms) +Rendered admin/helpers/_flash_message (0.1ms) +Rendered admin/shared/_footer (0.3ms) +Completed in 157ms (View: 121, DB: 3) | 200 OK [http://localhost/admin/photos/edit/21] + + +Processing Admin::PhotosController#new (for 127.0.0.1 at 2010-10-09 06:05:57) [GET] + Parameters: {"action"=>"new", "controller"=>"admin/photos"} + 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 (2.0ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_text (0.6ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/resources/_form (8.5ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 42ms (View: 20, DB: 1) | 200 OK [http://localhost/admin/photos/new] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 06:05:58) [GET] + Photo Load (2.1ms) SELECT * FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 30ms (View: 21, DB: 2) | 200 OK [http://localhost/photos] + + +Processing Admin::PhotosController#create (for 127.0.0.1 at 2010-10-09 06:06:15) [POST] + Parameters: {"photo"=>{"photo"=>#, "title"=>"House through the Doorway", "flickr_url"=>"", "sort"=>"", "description"=>""}, "commit"=>"Create Photo", "action"=>"create", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "controller"=>"admin/photos"} + TypusUser Load (1.0ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-m7gni5-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-m7gni5-0.jpg[0]' -resize "308x" -crop "308x308+0+63" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-m7gni5-020101009-87161-7xhz8u-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-m7gni5-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-m7gni5-0.jpg[0]' -resize "224x" -crop "224x224+0+46" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-m7gni5-020101009-87161-18mwr03-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-m7gni5-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-m7gni5-0.jpg[0]' -resize "140x" -crop "140x140+0+28" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-m7gni5-020101009-87161-1ia5l3l-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-m7gni5-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-m7gni5-0.jpg[0]' -resize "1024x1024>" '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-m7gni5-020101009-87161-1hsc2d0-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-m7gni5-020101009-87161-1hsc2d0-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-m7gni5-020101009-87161-1hsc2d0-0[0]' -resize "84x" -crop "84x84+0+17" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-m7gni5-020101009-87161-1hsc2d0-020101009-87161-1d2n0mw-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-m7gni5-020101009-87161-1hsc2d0-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-m7gni5-020101009-87161-1hsc2d0-0[0]' -resize "56x" -crop "56x56+0+11" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-m7gni5-020101009-87161-1hsc2d0-020101009-87161-1wev9y4-0' 2>/dev/null + 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(183360, '2010-10-09 10:06:17', 'House through the Doorway', '', 'House through the Doorway.jpg', '2010-10-09 10:06:17', 'image/jpeg', '2010-10-09 10:06:15', '', NULL) +[paperclip] Saving attachments. +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/22/size11/House through the Doorway.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/22/size8/House through the Doorway.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/22/size5/House through the Doorway.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/22/size3/House through the Doorway.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/22/original/House through the Doorway.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/22/size2/House through the Doorway.jpg +Redirected to http://localhost:3000/admin/photos/edit/22 +Completed in 2324ms (DB: 1) | 302 Found [http://localhost/admin/photos/create] + + +Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-09 06:06:17) [GET] + Parameters: {"action"=>"edit", "id"=>"22", "controller"=>"admin/photos"} + TypusUser Load (0.7ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.6ms) SELECT * FROM "photos" WHERE ("photos"."id" = 22)  +Rendering template within layouts/admin +Rendering admin/resources/edit +Rendered admin/helpers/_list (0.1ms) +Rendered admin/helpers/_search (0.7ms) +Rendered admin/helpers/_preview (0.2ms) +Rendered admin/templates/_file (5.7ms) +Rendered admin/templates/_string (0.8ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/templates/_text (0.5ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/resources/_form (12.6ms) + SQL (0.2ms) SELECT count(*) AS count_all FROM "categories"  + Category Load (0.6ms) 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 = 22 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 22)  + 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 = 22 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 22)  + Category Load (0.2ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 22 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/helpers/_flash_message (0.1ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 66ms (View: 37, DB: 3) | 200 OK [http://localhost/admin/photos/edit/22] + + +Processing Admin::PhotosController#new (for 127.0.0.1 at 2010-10-09 06:06:19) [GET] + Parameters: {"action"=>"new", "controller"=>"admin/photos"} + 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.7ms) +Rendered admin/templates/_text (0.5ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/resources/_form (8.2ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 41ms (View: 19, DB: 1) | 200 OK [http://localhost/admin/photos/new] + + +Processing Admin::PhotosController#create (for 127.0.0.1 at 2010-10-09 06:06:35) [POST] + Parameters: {"photo"=>{"photo"=>#, "title"=>"Light & Shade", "flickr_url"=>"", "sort"=>"", "description"=>""}, "commit"=>"Create Photo", "action"=>"create", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "controller"=>"admin/photos"} + TypusUser Load (1.0ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1hm2sjn-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1hm2sjn-0.jpg[0]' -resize "308x" -crop "308x308+0+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1hm2sjn-020101009-87161-7pypq9-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1hm2sjn-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1hm2sjn-0.jpg[0]' -resize "224x" -crop "224x224+0+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1hm2sjn-020101009-87161-39qfsg-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1hm2sjn-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1hm2sjn-0.jpg[0]' -resize "140x" -crop "140x140+0+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1hm2sjn-020101009-87161-138ugb6-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1hm2sjn-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1hm2sjn-0.jpg[0]' -resize "1024x1024>" '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1hm2sjn-020101009-87161-1x757t4-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1hm2sjn-020101009-87161-1x757t4-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1hm2sjn-020101009-87161-1x757t4-0[0]' -resize "84x" -crop "84x84+0+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1hm2sjn-020101009-87161-1x757t4-020101009-87161-1sbpfm6-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1hm2sjn-020101009-87161-1x757t4-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1hm2sjn-020101009-87161-1x757t4-0[0]' -resize "56x" -crop "56x56+0+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-1hm2sjn-020101009-87161-1x757t4-020101009-87161-1rdc02u-0' 2>/dev/null + Photo Create (0.7ms) 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(935147, '2010-10-09 10:06:37', 'Light & Shade', '', 'Light and Shade.jpg', '2010-10-09 10:06:37', 'image/jpeg', '2010-10-09 10:06:35', '', NULL) +[paperclip] Saving attachments. +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/23/size11/Light and Shade.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/23/size8/Light and Shade.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/23/size5/Light and Shade.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/23/size3/Light and Shade.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/23/original/Light and Shade.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/23/size2/Light and Shade.jpg +Redirected to http://localhost:3000/admin/photos/edit/23 +Completed in 2373ms (DB: 2) | 302 Found [http://localhost/admin/photos/create] + + +Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-09 06:06:38) [GET] + Parameters: {"action"=>"edit", "id"=>"23", "controller"=>"admin/photos"} + TypusUser Load (0.7ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.5ms) SELECT * FROM "photos" WHERE ("photos"."id" = 23)  +Rendering template within layouts/admin +Rendering admin/resources/edit +Rendered admin/helpers/_list (0.1ms) +Rendered admin/helpers/_search (0.6ms) +Rendered admin/helpers/_preview (0.2ms) +Rendered admin/templates/_file (5.2ms) +Rendered admin/templates/_string (1.3ms) +Rendered admin/templates/_string (1.1ms) +Rendered admin/templates/_text (0.8ms) +Rendered admin/templates/_string (1.0ms) +Rendered admin/resources/_form (14.4ms) + 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 = 23 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 23)  + 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 = 23 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."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 = 23 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.7ms) +Rendered admin/helpers/_flash_message (0.1ms) +Rendered admin/shared/_footer (0.4ms) +Completed in 77ms (View: 43, DB: 3) | 200 OK [http://localhost/admin/photos/edit/23] + + +Processing Admin::PhotosController#new (for 127.0.0.1 at 2010-10-09 06:06:41) [GET] + Parameters: {"action"=>"new", "controller"=>"admin/photos"} + 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 (2.0ms) +Rendered admin/templates/_string (1.0ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_text (0.5ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/resources/_form (8.6ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 43ms (View: 21, DB: 1) | 200 OK [http://localhost/admin/photos/new] + + +Processing Admin::PhotosController#create (for 127.0.0.1 at 2010-10-09 06:06:59) [POST] + Parameters: {"photo"=>{"photo"=>#, "title"=>"Moody Me", "flickr_url"=>"", "sort"=>"", "description"=>""}, "commit"=>"Create Photo", "action"=>"create", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "controller"=>"admin/photos"} + TypusUser Load (0.8ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-ip5vdn-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-ip5vdn-0.jpg[0]' -resize "308x" -crop "308x308+0+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-ip5vdn-020101009-87161-1pxj2kk-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-ip5vdn-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-ip5vdn-0.jpg[0]' -resize "224x" -crop "224x224+0+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-ip5vdn-020101009-87161-eombi2-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-ip5vdn-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-ip5vdn-0.jpg[0]' -resize "140x" -crop "140x140+0+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-ip5vdn-020101009-87161-zb0fg8-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-ip5vdn-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-ip5vdn-0.jpg[0]' -resize "1024x1024>" '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-ip5vdn-020101009-87161-1fngl66-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-ip5vdn-020101009-87161-1fngl66-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-ip5vdn-020101009-87161-1fngl66-0[0]' -resize "84x" -crop "84x84+0+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-ip5vdn-020101009-87161-1fngl66-020101009-87161-1f8xgon-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-ip5vdn-020101009-87161-1fngl66-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-ip5vdn-020101009-87161-1fngl66-0[0]' -resize "56x" -crop "56x56+0+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101009-87161-ip5vdn-020101009-87161-1fngl66-020101009-87161-uj60q-0' 2>/dev/null + 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(510990, '2010-10-09 10:07:01', 'Moody Me', '', 'Moody Me.jpg', '2010-10-09 10:07:01', 'image/jpeg', '2010-10-09 10:06:59', '', NULL) +[paperclip] Saving attachments. +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/24/size11/Moody Me.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/24/size8/Moody Me.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/24/size5/Moody Me.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/24/size3/Moody Me.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/24/original/Moody Me.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/24/size2/Moody Me.jpg +Redirected to http://localhost:3000/admin/photos/edit/24 +Completed in 1918ms (DB: 1) | 302 Found [http://localhost/admin/photos/create] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 06:07:01) [GET] + Photo Load (4.1ms) SELECT * FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 45ms (View: 31, DB: 4) | 200 OK [http://localhost/photos] + + +Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-09 06:07:01) [GET] + Parameters: {"action"=>"edit", "id"=>"24", "controller"=>"admin/photos"} + TypusUser Load (0.9ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."id" = 24)  +Rendering template within layouts/admin +Rendering admin/resources/edit +Rendered admin/helpers/_list (0.1ms) +Rendered admin/helpers/_search (0.7ms) +Rendered admin/helpers/_preview (0.2ms) +Rendered admin/templates/_file (6.1ms) +Rendered admin/templates/_string (1.4ms) +Rendered admin/templates/_string (1.0ms) +Rendered admin/templates/_text (0.7ms) +Rendered admin/templates/_string (1.0ms) +Rendered admin/resources/_form (16.9ms) + SQL (0.2ms) SELECT count(*) AS count_all FROM "categories"  + Category Load (0.6ms) 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 = 24 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 24)  + 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 = 24 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 24)  + Category Load (0.2ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 24 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/helpers/_flash_message (0.1ms) +Rendered admin/shared/_footer (0.4ms) +Completed in 95ms (View: 46, DB: 3) | 200 OK [http://localhost/admin/photos/edit/24] + + +Processing TypusController#dashboard (for 127.0.0.1 at 2010-10-09 06:07:13) [GET] + Parameters: {"action"=>"dashboard", "controller"=>"typus"} + 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 (0.6ms) +Rendered admin/helpers/_applications (5.3ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 46ms (View: 39, DB: 1) | 200 OK [http://localhost/admin] + + +Processing Admin::CategoriesController#index (for 127.0.0.1 at 2010-10-09 06:07:17) [GET] + Parameters: {"action"=>"index", "controller"=>"admin/categories"} + TypusUser Load (0.6ms) 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.1ms) +Rendered admin/helpers/_search (0.5ms) + 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.2ms) +Rendered admin/helpers/_login_info (0.6ms) +Rendered admin/shared/_footer (0.3ms) +Completed in 119ms (View: 98, DB: 1) | 200 OK [http://localhost/admin/categories] + + +Processing Admin::CategoriesController#edit (for 127.0.0.1 at 2010-10-09 06:07:21) [GET] + Parameters: {"action"=>"edit", "id"=>"1", "controller"=>"admin/categories"} + 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.1ms) +Rendered admin/helpers/_search (0.6ms) +Rendered admin/templates/_string (1.8ms) +Rendered admin/templates/_text (0.5ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/resources/_form (8.1ms) + SQL (0.2ms) SELECT count(*) AS count_all FROM "photos"  + Photo Load (2.0ms) SELECT * FROM "photos"  + Photo Load (1.1ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 )  + 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 (0.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.1ms) +Rendered admin/helpers/_login_info (0.5ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 75ms (View: 50, DB: 5) | 200 OK [http://localhost/admin/categories/edit/1] + + +Processing Admin::CategoriesController#index (for 127.0.0.1 at 2010-10-09 06:07:32) [GET] + Parameters: {"action"=>"index", "controller"=>"admin/categories"} + TypusUser Load (0.6ms) 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.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.1ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 49ms (View: 26, DB: 1) | 200 OK [http://localhost/admin/categories] + + +Processing TypusController#dashboard (for 127.0.0.1 at 2010-10-09 06:07:34) [GET] + Parameters: {"action"=>"dashboard", "controller"=>"typus"} + 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 (0.2ms) +Rendered admin/helpers/_applications (2.6ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 31ms (View: 25, DB: 1) | 200 OK [http://localhost/admin] + + +Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-09 06:07:35) [GET] + Parameters: {"action"=>"index", "controller"=>"admin/photos"} + 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.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.6ms) 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.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.4ms) 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.1ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 14 )  + Category Load (0.1ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 15 )  + Category Load (0.1ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 17 )  +Rendered admin/helpers/_pagination (25.2ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.5ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 116ms (View: 86, DB: 7) | 200 OK [http://localhost/admin/photos] + + +Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-09 06:07:39) [GET] + Parameters: {"action"=>"edit", "id"=>"14", "controller"=>"admin/photos"} + 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.6ms) +Rendered admin/helpers/_preview (0.2ms) +Rendered admin/templates/_file (4.6ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/templates/_text (0.5ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/resources/_form (10.9ms) + SQL (0.2ms) SELECT count(*) AS count_all FROM "categories"  + Category Load (0.6ms) 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 = 14 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 14)  + 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 = 14 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 14)  + Category Load (0.1ms) 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/_header (0.1ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 56ms (View: 33, DB: 2) | 200 OK [http://localhost/admin/photos/edit/14] + + +Processing Admin::PhotosController#relate (for 127.0.0.1 at 2010-10-09 06:07:46) [POST] + Parameters: {"commit"=>"Add", "related"=>{"model"=>"Category", "relation"=>"categories", "id"=>"1"}, "action"=>"relate", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "id"=>"14", "controller"=>"admin/photos"} + TypusUser Load (0.6ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."id" = 14)  + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = 1)  + SQL (0.3ms) INSERT INTO "categories_photos" ("category_id", "photo_id") VALUES (1, 14) +Redirected to http://localhost:3000/admin/photos/edit/14 +Completed in 100ms (DB: 1) | 302 Found [http://localhost/admin/photos/relate/14] + + +Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-09 06:07:46) [GET] + Parameters: {"action"=>"edit", "id"=>"14", "controller"=>"admin/photos"} + 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.6ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_text (0.5ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/resources/_form (10.7ms) + 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.2ms) 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.5ms) 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.2ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.5ms) +Rendered admin/helpers/_flash_message (0.1ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 64ms (View: 39, DB: 2) | 200 OK [http://localhost/admin/photos/edit/14] + + +Processing TypusController#dashboard (for 127.0.0.1 at 2010-10-09 06:07:50) [GET] + Parameters: {"action"=>"dashboard", "controller"=>"typus"} + 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 (0.2ms) +Rendered admin/helpers/_applications (61.8ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 91ms (View: 84, DB: 1) | 200 OK [http://localhost/admin] + + +Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-09 06:07:53) [GET] + Parameters: {"action"=>"index", "controller"=>"admin/photos"} + 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.4ms) SELECT "photos".* FROM "photos" ORDER BY photos.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_table_header (0.1ms) + Category Load (0.6ms) 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.4ms) 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.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.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.3ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 14 )  + Category Load (0.1ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 15 )  + Category Load (0.1ms) 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.6ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 86ms (View: 57, DB: 7) | 200 OK [http://localhost/admin/photos] + + +Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-09 06:07:56) [GET] + Parameters: {"action"=>"edit", "id"=>"15", "controller"=>"admin/photos"} + TypusUser Load (0.6ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."id" = 15)  +Rendering template within layouts/admin +Rendering admin/resources/edit +Rendered admin/helpers/_list (0.1ms) +Rendered admin/helpers/_search (0.6ms) +Rendered admin/helpers/_preview (0.2ms) +Rendered admin/templates/_file (4.7ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/templates/_text (0.5ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/resources/_form (10.7ms) + 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 = 15 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 15)  + 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 = 15 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 15)  + Category Load (0.1ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 15 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.5ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 56ms (View: 33, DB: 2) | 200 OK [http://localhost/admin/photos/edit/15] + + +Processing Admin::PhotosController#relate (for 127.0.0.1 at 2010-10-09 06:08:00) [POST] + Parameters: {"commit"=>"Add", "related"=>{"model"=>"Category", "relation"=>"categories", "id"=>"1"}, "action"=>"relate", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "id"=>"15", "controller"=>"admin/photos"} + TypusUser Load (0.6ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."id" = 15)  + Category Load (0.4ms) SELECT * FROM "categories" WHERE ("categories"."id" = 1)  + SQL (0.3ms) INSERT INTO "categories_photos" ("category_id", "photo_id") VALUES (1, 15) +Redirected to http://localhost:3000/admin/photos/edit/15 +Completed in 98ms (DB: 2) | 302 Found [http://localhost/admin/photos/relate/15] + + +Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-09 06:08:01) [GET] + Parameters: {"action"=>"edit", "id"=>"15", "controller"=>"admin/photos"} + TypusUser Load (0.6ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."id" = 15)  +Rendering template within layouts/admin +Rendering admin/resources/edit +Rendered admin/helpers/_list (0.1ms) +Rendered admin/helpers/_search (0.6ms) +Rendered admin/helpers/_preview (0.2ms) +Rendered admin/templates/_file (7.2ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/templates/_text (0.5ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/resources/_form (13.7ms) + 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 = 15 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 15)  + 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 = 15 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 15)  + Category Load (0.3ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 15 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_table_header (0.1ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/helpers/_flash_message (0.1ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 68ms (View: 41, DB: 2) | 200 OK [http://localhost/admin/photos/edit/15] + + +Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-09 06:08:02) [GET] + Parameters: {"action"=>"index", "controller"=>"admin/photos"} + 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 (2.2ms) 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.3ms) 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.3ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 4 )  + Category Load (0.2ms) 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.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.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.1ms) 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 (0.1ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 149ms (View: 60, DB: 7) | 200 OK [http://localhost/admin/photos] + + +Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-09 06:08:03) [GET] + Parameters: {"action"=>"edit", "id"=>"17", "controller"=>"admin/photos"} + TypusUser Load (0.6ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."id" = 17)  +Rendering template within layouts/admin +Rendering admin/resources/edit +Rendered admin/helpers/_list (0.1ms) +Rendered admin/helpers/_search (0.5ms) +Rendered admin/helpers/_preview (0.2ms) +Rendered admin/templates/_file (5.5ms) +Rendered admin/templates/_string (0.8ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_text (0.5ms) +Rendered admin/templates/_string (1.1ms) +Rendered admin/resources/_form (12.2ms) + SQL (0.3ms) 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 = 17 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 17)  + 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 = 17 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."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 = 17 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 120ms (View: 96, DB: 2) | 200 OK [http://localhost/admin/photos/edit/17] + + +Processing Admin::PhotosController#relate (for 127.0.0.1 at 2010-10-09 06:08:06) [POST] + Parameters: {"commit"=>"Add", "related"=>{"model"=>"Category", "relation"=>"categories", "id"=>"1"}, "action"=>"relate", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "id"=>"17", "controller"=>"admin/photos"} + TypusUser Load (0.5ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."id" = 17)  + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = 1)  + SQL (0.3ms) INSERT INTO "categories_photos" ("category_id", "photo_id") VALUES (1, 17) +Redirected to http://localhost:3000/admin/photos/edit/17 +Completed in 31ms (DB: 1) | 302 Found [http://localhost/admin/photos/relate/17] + + +Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-09 06:08:06) [GET] + Parameters: {"action"=>"edit", "id"=>"17", "controller"=>"admin/photos"} + TypusUser Load (1.1ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."id" = 17)  +Rendering template within layouts/admin +Rendering admin/resources/edit +Rendered admin/helpers/_list (0.1ms) +Rendered admin/helpers/_search (0.6ms) +Rendered admin/helpers/_preview (0.2ms) +Rendered admin/templates/_file (4.8ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/templates/_text (0.5ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/resources/_form (10.9ms) + 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 = 17 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 17)  + 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 = 17 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."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 = 17 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_table_header (0.1ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/helpers/_flash_message (0.1ms) +Rendered admin/shared/_footer (0.3ms) +Completed in 130ms (View: 37, DB: 3) | 200 OK [http://localhost/admin/photos/edit/17] + + +Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-09 06:08:08) [GET] + Parameters: {"action"=>"index", "controller"=>"admin/photos"} + 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.3ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 2 )  + Category Load (0.7ms) 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.5ms) 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.4ms) 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.2ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 15 )  + Category Load (0.3ms) 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 (0.1ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 146ms (View: 116, DB: 7) | 200 OK [http://localhost/admin/photos] + + +Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-09 06:08:09) [GET] + Parameters: {"action"=>"index", "sort_order"=>"desc", "page"=>"2", "controller"=>"admin/photos"} + 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) +Rendered admin/helpers/_remove_filter_link (20.2ms) + Photo Load (0.9ms) SELECT "photos".* FROM "photos" ORDER BY photos.id ASC LIMIT 15 OFFSET 15 +Rendered admin/helpers/_table_header (0.1ms) + Category Load (0.2ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 18 )  + Category Load (0.1ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 19 )  + Category Load (0.1ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 20 )  + Category Load (0.2ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 21 )  + Category Load (0.2ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 22 )  + Category Load (0.1ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 23 )  + Category Load (0.1ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 24 )  +Rendered admin/helpers/_pagination (63.1ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 148ms (View: 123, DB: 3) | 200 OK [http://localhost/admin/photos?page=2&sort_order=desc] + + +Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-09 06:08:14) [GET] + Parameters: {"action"=>"edit", "id"=>"18", "controller"=>"admin/photos"} + TypusUser Load (0.7ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."id" = 18)  +Rendering template within layouts/admin +Rendering admin/resources/edit +Rendered admin/helpers/_list (0.1ms) +Rendered admin/helpers/_search (0.5ms) +Rendered admin/helpers/_preview (0.3ms) +Rendered admin/templates/_file (5.3ms) +Rendered admin/templates/_string (1.5ms) +Rendered admin/templates/_string (1.0ms) +Rendered admin/templates/_text (0.5ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/resources/_form (13.6ms) + 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 = 18 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 18)  + 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 = 18 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 18)  + Category Load (0.1ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 18 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 59ms (View: 35, DB: 2) | 200 OK [http://localhost/admin/photos/edit/18] + + +Processing Admin::PhotosController#relate (for 127.0.0.1 at 2010-10-09 06:08:17) [POST] + Parameters: {"commit"=>"Add", "related"=>{"model"=>"Category", "relation"=>"categories", "id"=>"2"}, "action"=>"relate", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "id"=>"18", "controller"=>"admin/photos"} + TypusUser Load (0.6ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."id" = 18)  + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = 2)  + SQL (0.3ms) INSERT INTO "categories_photos" ("category_id", "photo_id") VALUES (2, 18) +Redirected to http://localhost:3000/admin/photos/edit/18 +Completed in 91ms (DB: 1) | 302 Found [http://localhost/admin/photos/relate/18] + + +Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-09 06:08:17) [GET] + Parameters: {"action"=>"edit", "id"=>"18", "controller"=>"admin/photos"} + TypusUser Load (1.0ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."id" = 18)  +Rendering template within layouts/admin +Rendering admin/resources/edit +Rendered admin/helpers/_list (0.1ms) +Rendered admin/helpers/_search (0.7ms) +Rendered admin/helpers/_preview (0.2ms) +Rendered admin/templates/_file (4.8ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_text (0.4ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/resources/_form (11.0ms) + 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 = 18 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 18)  + 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 = 18 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."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 = 18 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_table_header (0.1ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.5ms) +Rendered admin/helpers/_flash_message (0.1ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 74ms (View: 40, DB: 3) | 200 OK [http://localhost/admin/photos/edit/18] + + +Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-09 06:08:19) [GET] + Parameters: {"action"=>"index", "controller"=>"admin/photos"} + 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.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.4ms) 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.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.4ms) 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.2ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 15 )  + Category Load (0.3ms) 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 (0.1ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 88ms (View: 58, DB: 7) | 200 OK [http://localhost/admin/photos] + + +Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-09 06:08:22) [GET] + Parameters: {"action"=>"index", "sort_order"=>"desc", "page"=>"2", "controller"=>"admin/photos"} + 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 (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.3ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 18 )  + Category Load (0.2ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 19 )  + Category Load (0.2ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 20 )  + Category Load (0.2ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 21 )  + Category Load (0.2ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 22 )  + Category Load (0.1ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 23 )  + Category Load (0.1ms) 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.5ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.6ms) +Rendered admin/shared/_footer (0.5ms) +Completed in 134ms (View: 45, DB: 3) | 200 OK [http://localhost/admin/photos?page=2&sort_order=desc] + + +Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-09 06:08:24) [GET] + Parameters: {"action"=>"edit", "id"=>"19", "controller"=>"admin/photos"} + TypusUser Load (0.6ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."id" = 19)  +Rendering template within layouts/admin +Rendering admin/resources/edit +Rendered admin/helpers/_list (0.1ms) +Rendered admin/helpers/_search (0.5ms) +Rendered admin/helpers/_preview (0.2ms) +Rendered admin/templates/_file (4.7ms) +Rendered admin/templates/_string (0.8ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/templates/_text (0.5ms) +Rendered admin/templates/_string (1.0ms) +Rendered admin/resources/_form (69.8ms) + 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 = 19 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 19)  + 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 = 19 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 19)  + Category Load (0.1ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 19 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/shared/_footer (0.5ms) +Completed in 117ms (View: 93, DB: 2) | 200 OK [http://localhost/admin/photos/edit/19] + + +Processing Admin::PhotosController#relate (for 127.0.0.1 at 2010-10-09 06:08:30) [POST] + Parameters: {"commit"=>"Add", "related"=>{"model"=>"Category", "relation"=>"categories", "id"=>"6"}, "action"=>"relate", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "id"=>"19", "controller"=>"admin/photos"} + TypusUser Load (0.6ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."id" = 19)  + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = 6)  + SQL (0.6ms) INSERT INTO "categories_photos" ("category_id", "photo_id") VALUES (6, 19) +Redirected to http://localhost:3000/admin/photos/edit/19 +Completed in 31ms (DB: 2) | 302 Found [http://localhost/admin/photos/relate/19] + + +Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-09 06:08:30) [GET] + Parameters: {"action"=>"edit", "id"=>"19", "controller"=>"admin/photos"} + TypusUser Load (0.8ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."id" = 19)  +Rendering template within layouts/admin +Rendering admin/resources/edit +Rendered admin/helpers/_list (0.1ms) +Rendered admin/helpers/_search (0.9ms) +Rendered admin/helpers/_preview (0.2ms) +Rendered admin/templates/_file (76.2ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/templates/_text (0.5ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/resources/_form (82.6ms) + SQL (0.3ms) SELECT count(*) AS count_all FROM "categories"  + Category Load (0.6ms) 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 = 19 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 19)  + 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 = 19 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."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 = 19 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_table_header (0.1ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/helpers/_flash_message (0.1ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 143ms (View: 111, DB: 3) | 200 OK [http://localhost/admin/photos/edit/19] + + +Processing Admin::PhotosController#relate (for 127.0.0.1 at 2010-10-09 06:08:35) [POST] + Parameters: {"commit"=>"Add", "related"=>{"model"=>"Category", "relation"=>"categories", "id"=>"4"}, "action"=>"relate", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "id"=>"19", "controller"=>"admin/photos"} + TypusUser Load (0.5ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."id" = 19)  + Category Load (0.3ms) SELECT * FROM "categories" WHERE ("categories"."id" = 4)  + SQL (0.3ms) INSERT INTO "categories_photos" ("category_id", "photo_id") VALUES (4, 19) +Redirected to http://localhost:3000/admin/photos/edit/19 +Completed in 31ms (DB: 1) | 302 Found [http://localhost/admin/photos/relate/19] + + +Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-09 06:08:35) [GET] + Parameters: {"action"=>"edit", "id"=>"19", "controller"=>"admin/photos"} + TypusUser Load (0.7ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."id" = 19)  +Rendering template within layouts/admin +Rendering admin/resources/edit +Rendered admin/helpers/_list (0.1ms) +Rendered admin/helpers/_search (0.5ms) +Rendered admin/helpers/_preview (0.2ms) +Rendered admin/templates/_file (4.6ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_text (0.5ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/resources/_form (10.6ms) + 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 = 19 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 19)  + 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 = 19 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."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 = 19 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_table_header (0.1ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.8ms) +Rendered admin/helpers/_flash_message (0.1ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 129ms (View: 39, DB: 3) | 200 OK [http://localhost/admin/photos/edit/19] + + +Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-09 06:08:42) [GET] + Parameters: {"action"=>"index", "controller"=>"admin/photos"} + 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) + 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.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.4ms) 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.4ms) 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.6ms) 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.3ms) 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 = 15 )  + Category Load (0.3ms) 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 (0.1ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 150ms (View: 119, DB: 8) | 200 OK [http://localhost/admin/photos] + + +Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-09 06:08:43) [GET] + Parameters: {"action"=>"index", "sort_order"=>"desc", "page"=>"2", "controller"=>"admin/photos"} + TypusUser Load (0.6ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + SQL (0.3ms) 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.3ms) 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.1ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 20 )  + Category Load (0.1ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 21 )  + Category Load (0.1ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 22 )  + Category Load (0.1ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 23 )  + Category Load (0.2ms) 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.7ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.5ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 65ms (View: 40, DB: 3) | 200 OK [http://localhost/admin/photos?page=2&sort_order=desc] + + +Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-09 06:08:45) [GET] + Parameters: {"action"=>"edit", "id"=>"20", "controller"=>"admin/photos"} + TypusUser Load (0.6ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."id" = 20)  +Rendering template within layouts/admin +Rendering admin/resources/edit +Rendered admin/helpers/_list (0.1ms) +Rendered admin/helpers/_search (0.5ms) +Rendered admin/helpers/_preview (0.2ms) +Rendered admin/templates/_file (4.8ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_text (0.5ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/resources/_form (10.8ms) + SQL (0.2ms) SELECT count(*) AS count_all FROM "categories"  + Category Load (0.6ms) 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 = 20 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 20)  + 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 = 20 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 20)  + Category Load (0.2ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 20 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 57ms (View: 33, DB: 2) | 200 OK [http://localhost/admin/photos/edit/20] + + +Processing Admin::PhotosController#relate (for 127.0.0.1 at 2010-10-09 06:08:48) [POST] + Parameters: {"commit"=>"Add", "related"=>{"model"=>"Category", "relation"=>"categories", "id"=>"4"}, "action"=>"relate", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "id"=>"20", "controller"=>"admin/photos"} + TypusUser Load (0.6ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."id" = 20)  + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = 4)  + SQL (0.3ms) INSERT INTO "categories_photos" ("category_id", "photo_id") VALUES (4, 20) +Redirected to http://localhost:3000/admin/photos/edit/20 +Completed in 90ms (DB: 1) | 302 Found [http://localhost/admin/photos/relate/20] + + +Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-09 06:08:48) [GET] + Parameters: {"action"=>"edit", "id"=>"20", "controller"=>"admin/photos"} + TypusUser Load (1.3ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.4ms) SELECT * FROM "photos" WHERE ("photos"."id" = 20)  +Rendering template within layouts/admin +Rendering admin/resources/edit +Rendered admin/helpers/_list (0.1ms) +Rendered admin/helpers/_search (0.6ms) +Rendered admin/helpers/_preview (0.2ms) +Rendered admin/templates/_file (5.0ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_text (0.7ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/resources/_form (11.4ms) + SQL (0.3ms) 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 = 20 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 20)  + 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 = 20 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."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 = 20 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_table_header (0.1ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/helpers/_flash_message (0.1ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 72ms (View: 39, DB: 3) | 200 OK [http://localhost/admin/photos/edit/20] + + +Processing Admin::PhotosController#relate (for 127.0.0.1 at 2010-10-09 06:08:51) [POST] + Parameters: {"commit"=>"Add", "related"=>{"model"=>"Category", "relation"=>"categories", "id"=>"1"}, "action"=>"relate", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "id"=>"20", "controller"=>"admin/photos"} + TypusUser Load (0.6ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.5ms) SELECT * FROM "photos" WHERE ("photos"."id" = 20)  + Category Load (0.3ms) SELECT * FROM "categories" WHERE ("categories"."id" = 1)  + SQL (0.3ms) INSERT INTO "categories_photos" ("category_id", "photo_id") VALUES (1, 20) +Redirected to http://localhost:3000/admin/photos/edit/20 +Completed in 34ms (DB: 2) | 302 Found [http://localhost/admin/photos/relate/20] + + +Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-09 06:08:51) [GET] + Parameters: {"action"=>"edit", "id"=>"20", "controller"=>"admin/photos"} + TypusUser Load (0.8ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."id" = 20)  +Rendering template within layouts/admin +Rendering admin/resources/edit +Rendered admin/helpers/_list (0.1ms) +Rendered admin/helpers/_search (0.5ms) +Rendered admin/helpers/_preview (0.2ms) +Rendered admin/templates/_file (4.9ms) +Rendered admin/templates/_string (0.8ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_text (0.5ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/resources/_form (10.9ms) + 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 = 20 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 20)  + 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 = 20 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."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 = 20 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_table_header (0.1ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/helpers/_flash_message (0.1ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 73ms (View: 41, DB: 3) | 200 OK [http://localhost/admin/photos/edit/20] + + +Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-09 06:08:53) [GET] + Parameters: {"action"=>"index", "controller"=>"admin/photos"} + 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.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.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.2ms) 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.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.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 (0.7ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 86ms (View: 57, DB: 7) | 200 OK [http://localhost/admin/photos] + + +Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-09 06:08:54) [GET] + Parameters: {"action"=>"index", "sort_order"=>"desc", "page"=>"2", "controller"=>"admin/photos"} + TypusUser Load (0.5ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + SQL (0.3ms) 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.3ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 18 )  + Category Load (0.5ms) 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.1ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 21 )  + Category Load (0.1ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 22 )  + Category Load (0.1ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 23 )  + Category Load (0.1ms) 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.5ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 65ms (View: 40, DB: 3) | 200 OK [http://localhost/admin/photos?page=2&sort_order=desc] + + +Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-09 06:08:56) [GET] + Parameters: {"action"=>"edit", "id"=>"21", "controller"=>"admin/photos"} + TypusUser Load (0.5ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."id" = 21)  +Rendering template within layouts/admin +Rendering admin/resources/edit +Rendered admin/helpers/_list (0.1ms) +Rendered admin/helpers/_search (0.7ms) +Rendered admin/helpers/_preview (0.2ms) +Rendered admin/templates/_file (62.1ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/templates/_text (0.5ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/resources/_form (68.4ms) + 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 = 21 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 21)  + 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 = 21 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 21)  + Category Load (0.2ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 21 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 115ms (View: 91, DB: 2) | 200 OK [http://localhost/admin/photos/edit/21] + + +Processing Admin::PhotosController#relate (for 127.0.0.1 at 2010-10-09 06:08:58) [POST] + Parameters: {"commit"=>"Add", "related"=>{"model"=>"Category", "relation"=>"categories", "id"=>"1"}, "action"=>"relate", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "id"=>"21", "controller"=>"admin/photos"} + TypusUser Load (0.5ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."id" = 21)  + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = 1)  + SQL (0.2ms) INSERT INTO "categories_photos" ("category_id", "photo_id") VALUES (1, 21) +Redirected to http://localhost:3000/admin/photos/edit/21 +Completed in 31ms (DB: 1) | 302 Found [http://localhost/admin/photos/relate/21] + + +Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-09 06:08:58) [GET] + Parameters: {"action"=>"edit", "id"=>"21", "controller"=>"admin/photos"} + TypusUser Load (1.0ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."id" = 21)  +Rendering template within layouts/admin +Rendering admin/resources/edit +Rendered admin/helpers/_list (0.1ms) +Rendered admin/helpers/_search (0.6ms) +Rendered admin/helpers/_preview (0.2ms) +Rendered admin/templates/_file (5.1ms) +Rendered admin/templates/_string (0.8ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_text (0.5ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/resources/_form (11.6ms) + SQL (0.3ms) 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 = 21 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 21)  + 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 = 21 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 21)  + Category Load (0.3ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 21 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_table_header (0.1ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/helpers/_flash_message (0.1ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 133ms (View: 38, DB: 3) | 200 OK [http://localhost/admin/photos/edit/21] + + +Processing Admin::PhotosController#relate (for 127.0.0.1 at 2010-10-09 06:09:01) [POST] + Parameters: {"commit"=>"Add", "related"=>{"model"=>"Category", "relation"=>"categories", "id"=>"4"}, "action"=>"relate", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "id"=>"21", "controller"=>"admin/photos"} + TypusUser Load (0.5ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.4ms) SELECT * FROM "photos" WHERE ("photos"."id" = 21)  + Category Load (0.3ms) SELECT * FROM "categories" WHERE ("categories"."id" = 4)  + SQL (0.5ms) INSERT INTO "categories_photos" ("category_id", "photo_id") VALUES (4, 21) +Redirected to http://localhost:3000/admin/photos/edit/21 +Completed in 39ms (DB: 2) | 302 Found [http://localhost/admin/photos/relate/21] + + +Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-09 06:09:01) [GET] + Parameters: {"action"=>"edit", "id"=>"21", "controller"=>"admin/photos"} + TypusUser Load (0.6ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."id" = 21)  +Rendering template within layouts/admin +Rendering admin/resources/edit +Rendered admin/helpers/_list (0.1ms) +Rendered admin/helpers/_search (0.7ms) +Rendered admin/helpers/_preview (0.2ms) +Rendered admin/templates/_file (5.0ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/templates/_string (0.8ms) +Rendered admin/templates/_text (0.5ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/resources/_form (11.3ms) + 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 = 21 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 21)  + 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 = 21 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."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 = 21 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_table_header (0.1ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/helpers/_flash_message (0.1ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 130ms (View: 39, DB: 3) | 200 OK [http://localhost/admin/photos/edit/21] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 06:09:03) [GET] + Parameters: {"category_id"=>"5"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '5') LIMIT 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 = 5 )  +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.4ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 )  +Completed in 40ms (View: 8, DB: 1) | 200 OK [http://localhost/categories/5/photos] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 06:09:05) [GET] + Category Load (0.9ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 109ms (View: 104, DB: 1) | 200 OK [http://localhost/categories] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 06:09:06) [GET] + Parameters: {"category_id"=>"4"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '4') LIMIT 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 = 4 )  +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.9ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 4 )  +Completed in 24ms (View: 11, DB: 1) | 200 OK [http://localhost/categories/4/photos] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 06:09:09) [GET] + Category Load (0.8ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 10ms (View: 5, DB: 1) | 200 OK [http://localhost/categories] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 06:09:11) [GET] + Parameters: {"category_id"=>"6"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '6') LIMIT 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 = 6 )  +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.5ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 6 )  +Completed in 23ms (View: 9, DB: 1) | 200 OK [http://localhost/categories/6/photos] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 06:09:12) [GET] + Category Load (0.9ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 12ms (View: 5, DB: 1) | 200 OK [http://localhost/categories] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 06:09:13) [GET] + Parameters: {"category_id"=>"3"} + Category Load (0.3ms) SELECT * FROM "categories" WHERE ("categories"."id" = '3') LIMIT 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 = 3 )  +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.5ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 3 )  +Completed in 21ms (View: 7, DB: 1) | 200 OK [http://localhost/categories/3/photos] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 06:09:15) [GET] + Category Load (0.8ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 10ms (View: 5, DB: 1) | 200 OK [http://localhost/categories] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 06:09:15) [GET] + Parameters: {"category_id"=>"2"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '2') LIMIT 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 = 2 )  +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.7ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 2 )  +Completed in 23ms (View: 10, DB: 1) | 200 OK [http://localhost/categories/2/photos] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 06:09:20) [GET] + Category Load (0.9ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 12ms (View: 5, DB: 1) | 200 OK [http://localhost/categories] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 06:09:21) [GET] + Parameters: {"category_id"=>"5"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '5') LIMIT 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 = 5 )  +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.3ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 )  +Completed in 19ms (View: 7, DB: 1) | 200 OK [http://localhost/categories/5/photos] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 06:09:23) [GET] + Category Load (1.0ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 12ms (View: 5, DB: 1) | 200 OK [http://localhost/categories] + + +Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-09 06:09:26) [GET] + Parameters: {"action"=>"index", "controller"=>"admin/photos"} + 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.5ms) + 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.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.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.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 = 15 )  + Category Load (0.3ms) 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 (0.1ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 162ms (View: 60, DB: 7) | 200 OK [http://localhost/admin/photos] + + +Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-09 06:09:28) [GET] + Parameters: {"action"=>"index", "sort_order"=>"desc", "page"=>"2", "controller"=>"admin/photos"} + 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.3ms) 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.4ms) 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.1ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 22 )  + Category Load (0.2ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 23 )  + Category Load (0.1ms) 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.5ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 126ms (View: 41, DB: 4) | 200 OK [http://localhost/admin/photos?page=2&sort_order=desc] + + +Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-09 06:09:30) [GET] + Parameters: {"action"=>"edit", "id"=>"22", "controller"=>"admin/photos"} + TypusUser Load (0.6ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."id" = 22)  +Rendering template within layouts/admin +Rendering admin/resources/edit +Rendered admin/helpers/_list (0.1ms) +Rendered admin/helpers/_search (0.6ms) +Rendered admin/helpers/_preview (0.2ms) +Rendered admin/templates/_file (5.0ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/templates/_text (0.5ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/resources/_form (11.0ms) + SQL (0.3ms) SELECT count(*) AS count_all FROM "categories"  + Category Load (0.6ms) 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 = 22 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 22)  + 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 = 22 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 22)  + Category Load (0.2ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 22 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 117ms (View: 93, DB: 2) | 200 OK [http://localhost/admin/photos/edit/22] + + +Processing Admin::PhotosController#relate (for 127.0.0.1 at 2010-10-09 06:09:34) [POST] + Parameters: {"commit"=>"Add", "related"=>{"model"=>"Category", "relation"=>"categories", "id"=>"3"}, "action"=>"relate", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "id"=>"22", "controller"=>"admin/photos"} + TypusUser Load (0.6ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."id" = 22)  + Category Load (0.3ms) SELECT * FROM "categories" WHERE ("categories"."id" = 3)  + SQL (0.3ms) INSERT INTO "categories_photos" ("category_id", "photo_id") VALUES (3, 22) +Redirected to http://localhost:3000/admin/photos/edit/22 +Completed in 32ms (DB: 1) | 302 Found [http://localhost/admin/photos/relate/22] + + +Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-09 06:09:34) [GET] + Parameters: {"action"=>"edit", "id"=>"22", "controller"=>"admin/photos"} + TypusUser Load (0.6ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.4ms) SELECT * FROM "photos" WHERE ("photos"."id" = 22)  +Rendering template within layouts/admin +Rendering admin/resources/edit +Rendered admin/helpers/_list (0.1ms) +Rendered admin/helpers/_search (0.6ms) +Rendered admin/helpers/_preview (0.2ms) +Rendered admin/templates/_file (6.5ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_text (0.5ms) +Rendered admin/templates/_string (62.5ms) +Rendered admin/resources/_form (74.5ms) + 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 = 22 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 22)  + 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 = 22 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."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 = 22 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_table_header (0.1ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/helpers/_flash_message (0.1ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 134ms (View: 103, DB: 2) | 200 OK [http://localhost/admin/photos/edit/22] + + +Processing Admin::PhotosController#relate (for 127.0.0.1 at 2010-10-09 06:09:38) [POST] + Parameters: {"commit"=>"Add", "related"=>{"model"=>"Category", "relation"=>"categories", "id"=>"4"}, "action"=>"relate", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "id"=>"22", "controller"=>"admin/photos"} + TypusUser Load (0.6ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."id" = 22)  + Category Load (0.3ms) SELECT * FROM "categories" WHERE ("categories"."id" = 4)  + SQL (0.3ms) INSERT INTO "categories_photos" ("category_id", "photo_id") VALUES (4, 22) +Redirected to http://localhost:3000/admin/photos/edit/22 +Completed in 32ms (DB: 1) | 302 Found [http://localhost/admin/photos/relate/22] + + +Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-09 06:09:38) [GET] + Parameters: {"action"=>"edit", "id"=>"22", "controller"=>"admin/photos"} + TypusUser Load (1.3ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.4ms) SELECT * FROM "photos" WHERE ("photos"."id" = 22)  +Rendering template within layouts/admin +Rendering admin/resources/edit +Rendered admin/helpers/_list (0.1ms) +Rendered admin/helpers/_search (0.5ms) +Rendered admin/helpers/_preview (0.2ms) +Rendered admin/templates/_file (4.7ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/templates/_text (0.5ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/resources/_form (11.0ms) + SQL (0.2ms) SELECT count(*) AS count_all FROM "categories"  + Category Load (0.6ms) 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 = 22 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 22)  + 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 = 22 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 22)  + Category Load (0.4ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 22 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_table_header (0.1ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/helpers/_flash_message (0.1ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 127ms (View: 98, DB: 3) | 200 OK [http://localhost/admin/photos/edit/22] + + +Processing Admin::PhotosController#relate (for 127.0.0.1 at 2010-10-09 06:09:43) [POST] + Parameters: {"commit"=>"Add", "related"=>{"model"=>"Category", "relation"=>"categories", "id"=>"1"}, "action"=>"relate", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "id"=>"22", "controller"=>"admin/photos"} + TypusUser Load (0.6ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."id" = 22)  + Category Load (0.3ms) SELECT * FROM "categories" WHERE ("categories"."id" = 1)  + SQL (0.3ms) INSERT INTO "categories_photos" ("category_id", "photo_id") VALUES (1, 22) +Redirected to http://localhost:3000/admin/photos/edit/22 +Completed in 31ms (DB: 1) | 302 Found [http://localhost/admin/photos/relate/22] + + +Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-09 06:09:43) [GET] + Parameters: {"action"=>"edit", "id"=>"22", "controller"=>"admin/photos"} + TypusUser Load (1.3ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."id" = 22)  +Rendering template within layouts/admin +Rendering admin/resources/edit +Rendered admin/helpers/_list (0.1ms) +Rendered admin/helpers/_search (0.6ms) +Rendered admin/helpers/_preview (0.2ms) +Rendered admin/templates/_file (5.0ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_text (0.5ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/resources/_form (11.1ms) + SQL (0.2ms) SELECT count(*) AS count_all FROM "categories"  + Category Load (0.5ms) SELECT * FROM "categories"  + Category Load (0.5ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 22 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 22)  + 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 = 22 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 22)  + Category Load (0.4ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 22 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_table_header (0.1ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/helpers/_flash_message (0.1ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 139ms (View: 41, DB: 4) | 200 OK [http://localhost/admin/photos/edit/22] + + +Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-09 06:09:44) [GET] + Parameters: {"action"=>"index", "controller"=>"admin/photos"} + 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.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.4ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 2 )  + Category Load (0.5ms) 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.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 = 15 )  + Category Load (0.3ms) 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 (0.1ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 149ms (View: 119, DB: 7) | 200 OK [http://localhost/admin/photos] + + +Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-09 06:09:46) [GET] + Parameters: {"action"=>"index", "sort_order"=>"desc", "page"=>"2", "controller"=>"admin/photos"} + 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 (0.9ms) SELECT "photos".* FROM "photos" ORDER BY photos.id ASC LIMIT 15 OFFSET 15 +Rendered admin/helpers/_table_header (0.2ms) + Category Load (0.3ms) 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.4ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 22 )  + Category Load (0.1ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 23 )  + Category Load (0.2ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 24 )  +Rendered admin/helpers/_pagination (61.5ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 129ms (View: 102, DB: 4) | 200 OK [http://localhost/admin/photos?page=2&sort_order=desc] + + +Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-09 06:09:48) [GET] + Parameters: {"action"=>"edit", "id"=>"23", "controller"=>"admin/photos"} + TypusUser Load (0.7ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."id" = 23)  +Rendering template within layouts/admin +Rendering admin/resources/edit +Rendered admin/helpers/_list (0.1ms) +Rendered admin/helpers/_search (0.5ms) +Rendered admin/helpers/_preview (0.2ms) +Rendered admin/templates/_file (4.7ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_text (0.4ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/resources/_form (10.6ms) + SQL (0.2ms) SELECT count(*) AS count_all FROM "categories"  + Category Load (0.5ms) 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 = 23 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 23)  + 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 = 23 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 23)  + Category Load (0.2ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 23 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 59ms (View: 34, DB: 2) | 200 OK [http://localhost/admin/photos/edit/23] + + +Processing Admin::PhotosController#relate (for 127.0.0.1 at 2010-10-09 06:09:50) [POST] + Parameters: {"commit"=>"Add", "related"=>{"model"=>"Category", "relation"=>"categories", "id"=>"1"}, "action"=>"relate", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "id"=>"23", "controller"=>"admin/photos"} + TypusUser Load (0.6ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."id" = 23)  + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = 1)  + SQL (0.3ms) INSERT INTO "categories_photos" ("category_id", "photo_id") VALUES (1, 23) +Redirected to http://localhost:3000/admin/photos/edit/23 +Completed in 91ms (DB: 1) | 302 Found [http://localhost/admin/photos/relate/23] + + +Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-09 06:09:51) [GET] + Parameters: {"action"=>"edit", "id"=>"23", "controller"=>"admin/photos"} + TypusUser Load (0.6ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."id" = 23)  +Rendering template within layouts/admin +Rendering admin/resources/edit +Rendered admin/helpers/_list (0.1ms) +Rendered admin/helpers/_search (0.6ms) +Rendered admin/helpers/_preview (0.2ms) +Rendered admin/templates/_file (4.9ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_text (0.5ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/resources/_form (11.3ms) + 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 = 23 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 23)  + 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 = 23 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."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 = 23 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_table_header (0.1ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.7ms) +Rendered admin/helpers/_flash_message (0.1ms) +Rendered admin/shared/_footer (0.4ms) +Completed in 71ms (View: 40, DB: 2) | 200 OK [http://localhost/admin/photos/edit/23] + + +Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-09 06:09:52) [GET] + Parameters: {"action"=>"index", "controller"=>"admin/photos"} + 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) + 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.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.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.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.4ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 11 )  + Category Load (0.4ms) 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.3ms) 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 (0.1ms) +Rendered admin/helpers/_login_info (0.5ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 92ms (View: 61, DB: 7) | 200 OK [http://localhost/admin/photos] + + +Processing Admin::PhotosController#index (for 127.0.0.1 at 2010-10-09 06:09:53) [GET] + Parameters: {"action"=>"index", "sort_order"=>"desc", "page"=>"2", "controller"=>"admin/photos"} + 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 (1.1ms) 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.5ms) 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.3ms) 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.2ms) 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.1ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 135ms (View: 45, DB: 4) | 200 OK [http://localhost/admin/photos?page=2&sort_order=desc] + + +Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-09 06:09:55) [GET] + Parameters: {"action"=>"edit", "id"=>"24", "controller"=>"admin/photos"} + TypusUser Load (0.5ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."id" = 24)  +Rendering template within layouts/admin +Rendering admin/resources/edit +Rendered admin/helpers/_list (0.1ms) +Rendered admin/helpers/_search (0.5ms) +Rendered admin/helpers/_preview (0.2ms) +Rendered admin/templates/_file (4.6ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_text (0.8ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/resources/_form (70.6ms) + SQL (0.2ms) SELECT count(*) AS count_all FROM "categories"  + Category Load (0.5ms) 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 = 24 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 24)  + 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 = 24 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 24)  + Category Load (0.2ms) SELECT * FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 24 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.5ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 118ms (View: 94, DB: 2) | 200 OK [http://localhost/admin/photos/edit/24] + + +Processing Admin::PhotosController#relate (for 127.0.0.1 at 2010-10-09 06:09:58) [POST] + Parameters: {"commit"=>"Add", "related"=>{"model"=>"Category", "relation"=>"categories", "id"=>"4"}, "action"=>"relate", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "id"=>"24", "controller"=>"admin/photos"} + TypusUser Load (0.5ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."id" = 24)  + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = 4)  + SQL (0.2ms) INSERT INTO "categories_photos" ("category_id", "photo_id") VALUES (4, 24) +Redirected to http://localhost:3000/admin/photos/edit/24 +Completed in 3662ms (DB: 1) | 302 Found [http://localhost/admin/photos/relate/24] + + +Processing Admin::PhotosController#edit (for 127.0.0.1 at 2010-10-09 06:10:02) [GET] + Parameters: {"action"=>"edit", "id"=>"24", "controller"=>"admin/photos"} + TypusUser Load (0.6ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."id" = 24)  +Rendering template within layouts/admin +Rendering admin/resources/edit +Rendered admin/helpers/_list (0.1ms) +Rendered admin/helpers/_search (0.5ms) +Rendered admin/helpers/_preview (0.2ms) +Rendered admin/templates/_file (66.6ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/templates/_text (0.5ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/resources/_form (73.1ms) + 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 = 24 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."id" = 24)  + 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 = 24 )  + CACHE (0.0ms) SELECT * FROM "photos" WHERE ("photos"."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 = 24 ) ORDER BY categories.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_table_header (0.1ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/helpers/_flash_message (0.1ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 124ms (View: 99, DB: 2) | 200 OK [http://localhost/admin/photos/edit/24] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 06:10:04) [GET] + Parameters: {"category_id"=>"4"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '4') LIMIT 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 = 4 )  +Rendering template within layouts/photos +Rendering photos/index + Photo Load (1.1ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 4 )  +Completed in 27ms (View: 13, DB: 2) | 200 OK [http://localhost/categories/4/photos] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 06:10:33) [GET] + Category Load (0.8ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 11ms (View: 5, DB: 1) | 200 OK [http://localhost/categories] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 06:10:35) [GET] + Parameters: {"category_id"=>"2"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '2') LIMIT 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 = 2 )  +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.7ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 2 )  +Completed in 23ms (View: 9, DB: 1) | 200 OK [http://localhost/categories/2/photos] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 06:10:37) [GET] + Category Load (0.8ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 11ms (View: 5, DB: 1) | 200 OK [http://localhost/categories] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 06:10:38) [GET] + Parameters: {"category_id"=>"5"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '5') LIMIT 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 = 5 )  +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.3ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 )  +Completed in 74ms (View: 7, DB: 1) | 200 OK [http://localhost/categories/5/photos] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 06:10:39) [GET] + Category Load (1.3ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 14ms (View: 7, DB: 1) | 200 OK [http://localhost/categories] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 06:10:52) [GET] + Parameters: {"category_id"=>"6"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '6') LIMIT 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 = 6 )  +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.5ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 6 )  +Completed in 22ms (View: 9, DB: 1) | 200 OK [http://localhost/categories/6/photos] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 06:10:57) [GET] + Category Load (0.8ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 10ms (View: 5, DB: 1) | 200 OK [http://localhost/categories] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 06:10:59) [GET] + Parameters: {"category_id"=>"3"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '3') LIMIT 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 = 3 )  +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.4ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 3 )  +Completed in 20ms (View: 7, DB: 1) | 200 OK [http://localhost/categories/3/photos] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 06:11:06) [GET] + Category Load (0.9ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 10ms (View: 5, DB: 1) | 200 OK [http://localhost/categories] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 06:11:08) [GET] + Parameters: {"category_id"=>"4"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '4') LIMIT 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 = 4 )  +Rendering template within layouts/photos +Rendering photos/index + Photo Load (1.2ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 4 )  +Completed in 27ms (View: 13, DB: 2) | 200 OK [http://localhost/categories/4/photos] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 06:11:10) [GET] + Category Load (1.0ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 10ms (View: 5, DB: 1) | 200 OK [http://localhost/categories] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 06:11:16) [GET] + Parameters: {"category_id"=>"4"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '4') LIMIT 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 = 4 )  +Rendering template within layouts/photos +Rendering photos/index + Photo Load (1.0ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 4 )  +Completed in 27ms (View: 13, DB: 1) | 200 OK [http://localhost/categories/4/photos] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 06:34:21) [GET] + Category Load (0.8ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 92ms (View: 66, DB: 1) | 200 OK [http://localhost/categories] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 06:48:38) [GET] + Parameters: {"category_id"=>"4"} + Category Load (0.3ms) SELECT * FROM "categories" WHERE ("categories"."id" = '4') LIMIT 1 + SQL (22.4ms) SELECT count(*) AS count_all FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 4 )  +Rendering template within layouts/photos +Rendering photos/index + Photo Load (1.2ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 4 )  +Completed in 192ms (View: 105, DB: 24) | 200 OK [http://localhost/categories/4/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 06:48:41) [GET] + Parameters: {"category_id"=>"2"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '2') LIMIT 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 = 2 )  +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.6ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 2 )  +Completed in 22ms (View: 9, DB: 1) | 200 OK [http://localhost/categories/2/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 06:48:44) [GET] + Parameters: {"category_id"=>"5"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '5') LIMIT 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 = 5 )  +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.3ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 5 )  +Completed in 21ms (View: 7, DB: 1) | 200 OK [http://localhost/categories/5/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 06:48:45) [GET] + Parameters: {"category_id"=>"6"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '6') LIMIT 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 = 6 )  +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.5ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 6 )  +Completed in 78ms (View: 65, DB: 1) | 200 OK [http://localhost/categories/6/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 06:48:47) [GET] + Parameters: {"category_id"=>"3"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '3') LIMIT 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 = 3 )  +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.4ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 3 )  +Completed in 20ms (View: 8, DB: 1) | 200 OK [http://localhost/categories/3/photos] + + +Processing TypusController#dashboard (for 127.0.0.1 at 2010-10-09 06:49:53) [GET] + Parameters: {"action"=>"dashboard", "controller"=>"typus"} + 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 (0.2ms) +Rendered admin/helpers/_applications (2.7ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 102ms (View: 73, DB: 1) | 200 OK [http://localhost/admin] + + +Processing Admin::CategoriesController#index (for 127.0.0.1 at 2010-10-09 06:49:55) [GET] + Parameters: {"action"=>"index", "controller"=>"admin/categories"} + TypusUser Load (0.7ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + SQL (0.3ms) 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.7ms) + Category Load (0.8ms) 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.2ms) +Rendered admin/helpers/_login_info (0.7ms) +Rendered admin/shared/_footer (0.3ms) +Completed in 128ms (View: 36, DB: 2) | 200 OK [http://localhost/admin/categories] + + +Processing Admin::CategoriesController#edit (for 127.0.0.1 at 2010-10-09 06:49:58) [GET] + Parameters: {"action"=>"edit", "id"=>"6", "controller"=>"admin/categories"} + TypusUser Load (0.6ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Category Load (0.3ms) SELECT * FROM "categories" WHERE ("categories"."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/templates/_string (1.7ms) +Rendered admin/templates/_text (0.5ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/resources/_form (7.7ms) + SQL (0.2ms) SELECT count(*) AS count_all FROM "photos"  + Photo Load (1.8ms) SELECT * FROM "photos"  + Photo Load (0.5ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 6 )  + CACHE (0.0ms) SELECT * FROM "categories" WHERE ("categories"."id" = 6)  + 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 = 6 )  + CACHE (0.0ms) SELECT * FROM "categories" WHERE ("categories"."id" = 6)  + Photo Load (0.6ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 6 ) ORDER BY photos.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_table_header (0.1ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/shared/_footer (0.2ms) +Completed in 124ms (View: 100, DB: 4) | 200 OK [http://localhost/admin/categories/edit/6] + + +Processing Admin::CategoriesController#update (for 127.0.0.1 at 2010-10-09 06:50:01) [PUT] + Parameters: {"category"=>{"name"=>"Abstract", "sort"=>"", "base_colour"=>"#24aabe", "photo_id"=>"", "description"=>""}, "commit"=>"Save Category", "action"=>"update", "_method"=>"put", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "id"=>"6", "controller"=>"admin/categories"} + TypusUser Load (0.6ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Category Load (0.3ms) SELECT * FROM "categories" WHERE ("categories"."id" = 6)  + Category Update (0.3ms) UPDATE "categories" SET "updated_at" = '2010-10-09 10:50:01', "base_colour" = '#24aabe' WHERE "id" = 6 +Redirected to http://localhost:3000/admin/categories/edit/6 +Completed in 26ms (DB: 1) | 302 Found [http://localhost/admin/categories/update/6] + + +Processing Admin::CategoriesController#edit (for 127.0.0.1 at 2010-10-09 06:50:01) [GET] + Parameters: {"action"=>"edit", "id"=>"6", "controller"=>"admin/categories"} + TypusUser Load (0.7ms) SELECT * FROM "typus_users" WHERE ("typus_users"."id" = 1)  + Category Load (0.3ms) SELECT * FROM "categories" WHERE ("categories"."id" = 6)  +Rendering template within layouts/admin +Rendering admin/resources/edit +Rendered admin/helpers/_list (0.1ms) +Rendered admin/helpers/_search (0.5ms) +Rendered admin/templates/_string (2.0ms) +Rendered admin/templates/_text (0.6ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/templates/_string (0.7ms) +Rendered admin/templates/_string (0.6ms) +Rendered admin/resources/_form (9.0ms) + SQL (0.3ms) SELECT count(*) AS count_all FROM "photos"  + Photo Load (2.9ms) SELECT * FROM "photos"  + Photo Load (0.5ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 6 )  + CACHE (0.0ms) SELECT * FROM "categories" WHERE ("categories"."id" = 6)  + 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 = 6 )  + CACHE (0.0ms) SELECT * FROM "categories" WHERE ("categories"."id" = 6)  + Photo Load (0.9ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 6 ) ORDER BY photos.id ASC LIMIT 15 OFFSET 0 +Rendered admin/helpers/_table_header (0.1ms) +Rendered admin/helpers/_header (0.1ms) +Rendered admin/helpers/_login_info (0.4ms) +Rendered admin/helpers/_flash_message (0.1ms) +Rendered admin/shared/_footer (0.3ms) +Completed in 143ms (View: 116, DB: 6) | 200 OK [http://localhost/admin/categories/edit/6] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 06:50:02) [GET] + Category Load (0.8ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 47ms (View: 41, DB: 1) | 200 OK [http://localhost/categories] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 06:50:31) [GET] + Parameters: {"category_id"=>"4"} + Category Load (0.3ms) SELECT * FROM "categories" WHERE ("categories"."id" = '4') LIMIT 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 = 4 )  +Rendering template within layouts/photos +Rendering photos/index + Photo Load (1.2ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 4 )  +Completed in 71ms (View: 55, DB: 2) | 200 OK [http://localhost/categories/4/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 06:55:51) [GET] + Photo Load (82.0ms) SELECT * FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 116ms (View: 27, DB: 82) | 200 OK [http://localhost/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 06:56:21) [GET] + Photo Load (2.7ms) SELECT * FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 38ms (View: 27, DB: 3) | 200 OK [http://localhost/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 06:56:24) [GET] + Parameters: {"category_id"=>"1"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 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 )  +Rendering template within layouts/photos +Rendering photos/index + Photo Load (1.5ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 )  +Completed in 31ms (View: 17, DB: 2) | 200 OK [http://localhost/categories/1/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 06:56:28) [GET] + Parameters: {"category_id"=>"2"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '2') LIMIT 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 = 2 )  +Rendering template within layouts/photos +Rendering photos/index + Photo Load (0.6ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 2 )  +Completed in 22ms (View: 9, DB: 1) | 200 OK [http://localhost/categories/2/photos] + + +Processing ApplicationController#index (for 127.0.0.1 at 2010-10-09 06:59:32) [GET] + +SyntaxError (/Users/danbee/Sites/rails/photos/app/controllers/photos_controller.rb:13: syntax error, unexpected '=', expecting kEND + @photos = Photo.paginate :all, :page = params[:page] + ^): + + +Rendered rescues/_trace (81.7ms) +Rendered rescues/_request_and_response (0.3ms) +Rendering rescues/layout (internal_server_error) + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 06:59:39) [GET] + SQL (0.5ms)  SELECT name + FROM sqlite_master + WHERE type = 'table' AND NOT name = 'sqlite_sequence' + + +NoMethodError (undefined method `paginate' for #): + app/controllers/photos_controller.rb:13:in `index' + +Rendered rescues/_trace (27.3ms) +Rendered rescues/_request_and_response (0.3ms) +Rendering rescues/layout (internal_server_error) + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 06:59:59) [GET] + SQL (0.6ms)  SELECT name + FROM sqlite_master + WHERE type = 'table' AND NOT name = 'sqlite_sequence' + + +NoMethodError (undefined method `paginate' for #): + app/controllers/photos_controller.rb:13:in `index' + +Rendered rescues/_trace (90.8ms) +Rendered rescues/_request_and_response (0.3ms) +Rendering rescues/layout (internal_server_error) + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:00:15) [GET] + Photo Load (2.3ms) SELECT * FROM "photos" LIMIT 30 OFFSET 0 +Rendering template within layouts/photos +Rendering photos/index +Completed in 73ms (View: 52, DB: 2) | 200 OK [http://localhost/photos] + + +Processing ApplicationController#index (for 127.0.0.1 at 2010-10-09 07:01:00) [GET] + +SyntaxError (/Users/danbee/Sites/rails/photos/app/controllers/photos_controller.rb:13: syntax error, unexpected '=', expecting tASSOC +... => params[:page], :per_page = 11 + ^): + + +Rendered rescues/_trace (28.9ms) +Rendered rescues/_request_and_response (1.2ms) +Rendering rescues/layout (internal_server_error) + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:01:05) [GET] + Photo Load (1.5ms) SELECT * FROM "photos" LIMIT 11 OFFSET 0 + SQL (0.1ms) SELECT count(*) AS count_all FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 23ms (View: 13, DB: 2) | 200 OK [http://localhost/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:01:44) [GET] + Parameters: {"category_id"=>"1"} + Category Load (0.4ms) SELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 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 )  +Rendering template within layouts/photos +Rendering photos/index + Photo Load (1.6ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 )  +Completed in 90ms (View: 18, DB: 2) | 200 OK [http://localhost/categories/1/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:02:05) [GET] + Parameters: {"category_id"=>"1"} + 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] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 07:02:08) [GET] + Category Load (0.9ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 73ms (View: 67, DB: 1) | 200 OK [http://localhost/categories] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:02:08) [GET] + Parameters: {"category_id"=>"5"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '5') LIMIT 1 + Photo Load (0.4ms) 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 19ms (View: 7, DB: 1) | 200 OK [http://localhost/categories/5/photos] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 07:02:09) [GET] + Category Load (0.8ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 10ms (View: 5, DB: 1) | 200 OK [http://localhost/categories] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:02:10) [GET] + Parameters: {"category_id"=>"4"} + 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 25ms (View: 12, DB: 1) | 200 OK [http://localhost/categories/4/photos] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 07:02:11) [GET] + Category Load (0.9ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 11ms (View: 5, DB: 1) | 200 OK [http://localhost/categories] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:02:13) [GET] + Parameters: {"category_id"=>"1"} + 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 29ms (View: 13, DB: 2) | 200 OK [http://localhost/categories/1/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:02:29) [GET] + Parameters: {"category_id"=>"1", "page"=>"2"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '1') 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 = 1 ) LIMIT 11 OFFSET 11 +Rendering template within layouts/photos +Rendering photos/index +Completed in 22ms (View: 8, DB: 1) | 200 OK [http://localhost/categories/1/photos?page=2] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:02:34) [GET] + Parameters: {"category_id"=>"1"} + Category Load (0.3ms) SELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1 + Photo Load (2.1ms) 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.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 )  +Rendering template within layouts/photos +Rendering photos/index +Completed in 37ms (View: 17, DB: 3) | 200 OK [http://localhost/categories/1/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:06:22) [GET] + Photo Load (1.5ms) SELECT * FROM "photos" LIMIT 11 OFFSET 0 + SQL (0.1ms) SELECT count(*) AS count_all FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index + +ActionView::TemplateError (undefined method `previous_page' for #) on line #29 of app/views/photos/index.html.erb: +26: +27: +28:
+29: <%= link_to '←', previous_page(@photos) %> +30: <%= link_to '→', next_page(@photos) %> +31:
+ + app/views/photos/index.html.erb:29 + +Rendered rescues/_trace (34.3ms) +Rendered rescues/_request_and_response (0.3ms) +Rendering rescues/layout (internal_server_error) + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:06:35) [GET] + Parameters: {"category_id"=>"1"} + 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 + +ActionView::TemplateError (undefined method `previous_page' for #) on line #29 of app/views/photos/index.html.erb: +26: +27: +28:
+29: <%= link_to '←', will_paginate.previous_page(@photos) %> +30: <%= link_to '→', will_paginate.next_page(@photos) %> +31:
+ + app/views/photos/index.html.erb:29 + +Rendered rescues/_trace (35.2ms) +Rendered rescues/_request_and_response (0.3ms) +Rendering rescues/layout (internal_server_error) + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:06:47) [GET] + Parameters: {"category_id"=>"1"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '1') 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 = 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-09 07:06:51) [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 30ms (View: 13, DB: 2) | 200 OK [http://localhost/categories/1/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:07:03) [GET] + Parameters: {"category_id"=>"1"} + 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 + +ActionView::TemplateError (undefined method `fixnum_path' for #) on line #30 of app/views/photos/index.html.erb: +27: +28:
+29: <%= link_to '←', @photos.previous_page %> +30: <%= link_to '→', @photos.next_page %> +31:
+ + app/views/photos/index.html.erb:30 + +Rendered rescues/_trace (95.8ms) +Rendered rescues/_request_and_response (0.3ms) +Rendering rescues/layout (internal_server_error) + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:07:46) [GET] + Parameters: {"category_id"=>"1"} + 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 31ms (View: 17, DB: 2) | 200 OK [http://localhost/categories/1/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:07:49) [GET] + Parameters: {"category_id"=>"1", "page"=>"2"} + 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 + +ActionView::TemplateError (undefined method `fixnum_path' for #) on line #29 of app/views/photos/index.html.erb: +26: +27: +28:
+29: <%= link_to '←', @photos.previous_page %> +30: <%= link_to '→', :page => @photos.next_page %> +31:
+ + app/views/photos/index.html.erb:29 + +Rendered rescues/_trace (39.0ms) +Rendered rescues/_request_and_response (0.4ms) +Rendering rescues/layout (internal_server_error) + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:07:56) [GET] + Parameters: {"category_id"=>"1", "page"=>"2"} + 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 26ms (View: 14, DB: 1) | 200 OK [http://localhost/categories/1/photos?page=2] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:07:58) [GET] + Parameters: {"category_id"=>"1", "page"=>"1"} + 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://localhost/categories/1/photos?page=1] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:07:59) [GET] + Parameters: {"category_id"=>"1", "page"=>"2"} + 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 20ms (View: 9, DB: 1) | 200 OK [http://localhost/categories/1/photos?page=2] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:08:05) [GET] + Parameters: {"category_id"=>"1", "page"=>"1"} + 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 PhotosController#index (for 127.0.0.1 at 2010-10-09 07:09:31) [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 80ms (View: 9, DB: 1) | 200 OK [http://localhost/categories/1/photos?page=2] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:09:37) [GET] + Parameters: {"category_id"=>"1", "page"=>"1"} + 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 29ms (View: 13, DB: 2) | 200 OK [http://localhost/categories/1/photos?page=1] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:09:42) [GET] + Photo Load (1.3ms) SELECT * FROM "photos" LIMIT 11 OFFSET 0 + SQL (0.1ms) SELECT count(*) AS count_all FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 21ms (View: 12, DB: 1) | 200 OK [http://localhost/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:09:43) [GET] + Parameters: {"page"=>"2"} + Photo Load (1.5ms) SELECT * FROM "photos" LIMIT 11 OFFSET 11 + SQL (0.1ms) SELECT count(*) AS count_all FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 21ms (View: 12, DB: 2) | 200 OK [http://localhost/photos?page=2] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:09:44) [GET] + Photo Load (1.4ms) SELECT * FROM "photos" LIMIT 11 OFFSET 0 + SQL (0.1ms) SELECT count(*) AS count_all FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 21ms (View: 12, DB: 1) | 200 OK [http://localhost/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:09:45) [GET] + Parameters: {"page"=>"2"} + Photo Load (1.5ms) SELECT * FROM "photos" LIMIT 11 OFFSET 11 + SQL (0.1ms) SELECT count(*) AS count_all FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 75ms (View: 65, DB: 2) | 200 OK [http://localhost/photos?page=2] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:09:46) [GET] + Photo Load (1.4ms) SELECT * FROM "photos" LIMIT 11 OFFSET 0 + SQL (0.1ms) SELECT count(*) AS count_all FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 22ms (View: 12, DB: 2) | 200 OK [http://localhost/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:09:48) [GET] + Parameters: {"page"=>"2"} + Photo Load (1.4ms) SELECT * FROM "photos" LIMIT 11 OFFSET 11 + SQL (0.1ms) SELECT count(*) AS count_all FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 22ms (View: 12, DB: 2) | 200 OK [http://localhost/photos?page=2] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:09:52) [GET] + Parameters: {"page"=>"1"} + Photo Load (1.3ms) SELECT * FROM "photos" LIMIT 11 OFFSET 0 + SQL (0.1ms) SELECT count(*) AS count_all FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 21ms (View: 12, DB: 1) | 200 OK [http://localhost/photos?page=1] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:09:53) [GET] + Parameters: {"page"=>"2"} + Photo Load (1.3ms) SELECT * FROM "photos" LIMIT 11 OFFSET 11 + SQL (0.1ms) SELECT count(*) AS count_all FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 24ms (View: 13, DB: 1) | 200 OK [http://localhost/photos?page=2] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:09:57) [GET] + Parameters: {"page"=>"1"} + Photo Load (1.3ms) SELECT * FROM "photos" LIMIT 11 OFFSET 0 + SQL (0.1ms) SELECT count(*) AS count_all FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 21ms (View: 12, DB: 1) | 200 OK [http://localhost/photos?page=1] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:09:58) [GET] + Parameters: {"page"=>"2"} + Photo Load (1.3ms) SELECT * FROM "photos" LIMIT 11 OFFSET 11 + SQL (0.1ms) SELECT count(*) AS count_all FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 22ms (View: 12, DB: 1) | 200 OK [http://localhost/photos?page=2] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:10:01) [GET] + Parameters: {"page"=>"3"} + Photo Load (0.4ms) SELECT * FROM "photos" LIMIT 11 OFFSET 22 + SQL (0.2ms) SELECT count(*) AS count_all FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 12ms (View: 3, DB: 1) | 200 OK [http://localhost/photos?page=3] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:10:06) [GET] + Parameters: {"page"=>"1"} + Photo Load (1.5ms) SELECT * FROM "photos" LIMIT 11 OFFSET 0 + SQL (0.1ms) SELECT count(*) AS count_all FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 23ms (View: 13, DB: 2) | 200 OK [http://localhost/photos?page=1] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:10:26) [GET] + Parameters: {"category_id"=>"1", "page"=>"1"} + 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 34ms (View: 19, DB: 2) | 200 OK [http://localhost/categories/1/photos?page=1] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 07:10:31) [GET] + Category Load (0.8ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 65ms (View: 60, DB: 1) | 200 OK [http://localhost/categories] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:10:31) [GET] + Parameters: {"category_id"=>"2"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '2') 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 = 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 07:10:34) [GET] + Category Load (0.8ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 10ms (View: 5, DB: 1) | 200 OK [http://localhost/categories] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:10:35) [GET] + Parameters: {"category_id"=>"4"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '4') LIMIT 1 + Photo Load (1.1ms) 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 27ms (View: 13, DB: 1) | 200 OK [http://localhost/categories/4/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:11:46) [GET] + Parameters: {"category_id"=>"4"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '4') LIMIT 1 + Photo Load (1.1ms) 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: 17, DB: 1) | 200 OK [http://localhost/categories/4/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:11:55) [GET] + Parameters: {"category_id"=>"4"} + Category Load (0.3ms) 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 32ms (View: 18, DB: 1) | 200 OK [http://localhost/categories/4/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:12:07) [GET] + Parameters: {"category_id"=>"4"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '4') 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 = 4 ) LIMIT 11 OFFSET 0 +Rendering template within layouts/photos +Rendering photos/index +Completed in 86ms (View: 17, DB: 1) | 200 OK [http://localhost/categories/4/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:12:21) [GET] + Parameters: {"category_id"=>"4"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '4') LIMIT 1 + Photo Load (1.1ms) 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 29ms (View: 17, DB: 1) | 200 OK [http://localhost/categories/4/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:12:36) [GET] + Parameters: {"category_id"=>"4"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '4') LIMIT 1 + Photo Load (1.1ms) 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 84ms (View: 72, DB: 1) | 200 OK [http://localhost/categories/4/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:13:02) [GET] + Parameters: {"category_id"=>"4"} + 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 30ms (View: 17, DB: 1) | 200 OK [http://localhost/categories/4/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:13:04) [GET] + Parameters: {"category_id"=>"4"} + 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 81ms (View: 69, DB: 1) | 200 OK [http://localhost/categories/4/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:13:06) [GET] + Parameters: {"category_id"=>"4"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '4') LIMIT 1 + Photo Load (1.1ms) 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 PhotosController#index (for 127.0.0.1 at 2010-10-09 07:13:12) [GET] + Parameters: {"page"=>"1"} + Photo Load (1.5ms) SELECT * FROM "photos" LIMIT 11 OFFSET 0 + SQL (0.1ms) SELECT count(*) AS count_all FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 23ms (View: 13, DB: 2) | 200 OK [http://localhost/photos?page=1] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:13:14) [GET] + Parameters: {"page"=>"2"} + Photo Load (1.5ms) SELECT * FROM "photos" LIMIT 11 OFFSET 11 + SQL (0.1ms) SELECT count(*) AS count_all FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 78ms (View: 69, DB: 2) | 200 OK [http://localhost/photos?page=2] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:13:15) [GET] + Parameters: {"page"=>"1"} + Photo Load (1.3ms) SELECT * FROM "photos" LIMIT 11 OFFSET 0 + SQL (0.1ms) SELECT count(*) AS count_all FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 21ms (View: 12, DB: 1) | 200 OK [http://localhost/photos?page=1] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:13:18) [GET] + Parameters: {"page"=>"2"} + Photo Load (1.5ms) SELECT * FROM "photos" LIMIT 11 OFFSET 11 + SQL (0.1ms) SELECT count(*) AS count_all FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 22ms (View: 12, DB: 2) | 200 OK [http://localhost/photos?page=2] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:13:20) [GET] + Photo Load (1.4ms) SELECT * FROM "photos" LIMIT 11 OFFSET 0 + SQL (0.1ms) SELECT count(*) AS count_all FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 22ms (View: 12, DB: 2) | 200 OK [http://localhost/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:13:21) [GET] + Photo Load (1.3ms) SELECT * FROM "photos" LIMIT 11 OFFSET 0 + SQL (0.1ms) SELECT count(*) AS count_all FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 23ms (View: 13, DB: 1) | 200 OK [http://localhost/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:13:21) [GET] + Photo Load (1.5ms) SELECT * FROM "photos" LIMIT 11 OFFSET 0 + SQL (0.1ms) SELECT count(*) AS count_all FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 23ms (View: 13, DB: 2) | 200 OK [http://localhost/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:13:23) [GET] + Parameters: {"page"=>"2"} + Photo Load (1.3ms) SELECT * FROM "photos" LIMIT 11 OFFSET 11 + SQL (0.1ms) SELECT count(*) AS count_all FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 21ms (View: 12, DB: 1) | 200 OK [http://localhost/photos?page=2] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:13:23) [GET] + Photo Load (1.4ms) SELECT * FROM "photos" LIMIT 11 OFFSET 0 + SQL (0.1ms) SELECT count(*) AS count_all FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 77ms (View: 12, DB: 2) | 200 OK [http://localhost/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:13:24) [GET] + Parameters: {"page"=>"2"} + Photo Load (1.3ms) SELECT * FROM "photos" LIMIT 11 OFFSET 11 + SQL (0.2ms) SELECT count(*) AS count_all FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 27ms (View: 17, DB: 2) | 200 OK [http://localhost/photos?page=2] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:13:25) [GET] + Photo Load (1.4ms) SELECT * FROM "photos" LIMIT 11 OFFSET 0 + SQL (0.1ms) SELECT count(*) AS count_all FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 22ms (View: 12, DB: 1) | 200 OK [http://localhost/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:13:26) [GET] + Photo Load (1.8ms) SELECT * FROM "photos" LIMIT 11 OFFSET 0 + SQL (0.1ms) SELECT count(*) AS count_all FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 29ms (View: 18, DB: 2) | 200 OK [http://localhost/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:13:26) [GET] + Photo Load (1.3ms) SELECT * FROM "photos" LIMIT 11 OFFSET 0 + SQL (0.1ms) SELECT count(*) AS count_all FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 22ms (View: 13, DB: 1) | 200 OK [http://localhost/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:13:27) [GET] + Parameters: {"page"=>"2"} + Photo Load (1.5ms) SELECT * FROM "photos" LIMIT 11 OFFSET 11 + SQL (0.1ms) SELECT count(*) AS count_all FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 23ms (View: 13, DB: 2) | 200 OK [http://localhost/photos?page=2] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:13:28) [GET] + Parameters: {"page"=>"1"} + Photo Load (1.3ms) SELECT * FROM "photos" LIMIT 11 OFFSET 0 + SQL (0.2ms) SELECT count(*) AS count_all FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 21ms (View: 12, DB: 1) | 200 OK [http://localhost/photos?page=1] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:13:28) [GET] + Parameters: {"page"=>"2"} + Photo Load (1.4ms) SELECT * FROM "photos" LIMIT 11 OFFSET 11 + SQL (0.2ms) SELECT count(*) AS count_all FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 80ms (View: 69, DB: 2) | 200 OK [http://localhost/photos?page=2] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:13:29) [GET] + Parameters: {"page"=>"1"} + Photo Load (1.4ms) SELECT * FROM "photos" LIMIT 11 OFFSET 0 + SQL (0.1ms) SELECT count(*) AS count_all FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 23ms (View: 12, DB: 2) | 200 OK [http://localhost/photos?page=1] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:14:06) [GET] + Parameters: {"category_id"=>"4"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '4') LIMIT 1 + Photo Load (1.1ms) 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 30ms (View: 16, DB: 1) | 200 OK [http://localhost/categories/4/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:14:35) [GET] + Parameters: {"category_id"=>"4"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '4') 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 = 4 ) LIMIT 11 OFFSET 0 +Rendering template within layouts/photos +Rendering photos/index +Completed in 94ms (View: 19, DB: 2) | 200 OK [http://localhost/categories/4/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:14:40) [GET] + Parameters: {"class"=>"next-link", "category_id"=>"4"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '4') 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 = 4 ) LIMIT 11 OFFSET 0 +Rendering template within layouts/photos +Rendering photos/index +Completed in 27ms (View: 14, DB: 2) | 200 OK [http://localhost/categories/4/photos?class=next-link] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:15:23) [GET] + Parameters: {"class"=>"next-link", "category_id"=>"4"} + 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 +ERROR: compiling _run_erb_app47views47photos47index46html46erb RAISED compile error +/Users/danbee/Sites/rails/photos/app/views/photos/index.html.erb:4: syntax error, unexpected ')', expecting tASSOC +...e, { :class => 'prev-link' } ).to_s); @output_buffer.concat ... + ^ +/Users/danbee/Sites/rails/photos/app/views/photos/index.html.erb:5: syntax error, unexpected ')', expecting tASSOC +...e, { :class => 'next-link' } ).to_s); @output_buffer.concat ... + ^ +Function body: def _run_erb_app47views47photos47index46html46erb(local_assigns) + old_output_buffer = output_buffer;;@output_buffer = ''; __in_erb_template=true ; @output_buffer.concat "\t
\n\t
\n\t
\n\t\t" + + +; @output_buffer.concat(( link_to '←', :page => @photos.previous_page, { :class => 'prev-link' } ).to_s); @output_buffer.concat "\n\t\t" +; @output_buffer.concat(( link_to '→', :page => @photos.next_page, { :class => 'next-link' } ).to_s); @output_buffer.concat "\n\t
\n\n\n
\n\n" + + + + + +; if @category ; @output_buffer.concat "\n\t
\n\t\t" +; @output_buffer.concat(( link_to '

'+h(@category.name.downcase)+'

', categories_url ).to_s); @output_buffer.concat "\n\t
\n" + +; else ; @output_buffer.concat "\n\t
\n\t\t

all photos

\n\t
\n" + + + +; end ; @output_buffer.concat "\n\n" + +; @num_blank = 11 - @num_photos +@output_buffer.concat "\n" +; @photos.each do |photo| ; @output_buffer.concat "\n\n
"; @output_buffer.concat(( link_to ' ', photo.photo.url, :rel => 'photo', :class => 'fancy' ).to_s); @output_buffer.concat "
\n\n" + +; end ; @output_buffer.concat "\n\n" + +; @num_blank.times do ; @output_buffer.concat "\n\t
\n\t
\n" + + +; end ; @output_buffer.concat "\n\n
\n" + + +; @output_buffer + ensure + self.output_buffer = old_output_buffer + end +Backtrace: /Users/danbee/Sites/rails/photos/app/views/photos/index.html.erb:38:in `compile!' +/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_view/renderable.rb:61:in `compile' +/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_view/renderable.rb:28:in `render' +/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_view/template.rb:205:in `render_template' +/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_view/base.rb:265:in `render_without_parent' +/Users/danbee/Sites/rails/photos/vendor/plugins/typus/lib/vendor/inherit_views.rb:193:in `render' +/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_view/base.rb:348:in `_render_with_layout' +/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_view/base.rb:262:in `render_without_parent' +/Users/danbee/Sites/rails/photos/vendor/plugins/typus/lib/vendor/inherit_views.rb:193:in `render' +/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/base.rb:1250:in `render_for_file' +/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/base.rb:936:in `render_without_benchmark' +/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/benchmarking.rb:51:in `render' +/Library/Ruby/Gems/1.8/gems/activesupport-2.3.8/lib/active_support/core_ext/benchmark.rb:17:in `ms' +/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/benchmark.rb:308:in `realtime' +/Library/Ruby/Gems/1.8/gems/activesupport-2.3.8/lib/active_support/core_ext/benchmark.rb:17:in `ms' +/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/benchmarking.rb:51:in `render' +/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/base.rb:1326:in `default_render' +/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/base.rb:1332:in `perform_action_without_filters' +/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/filters.rb:617:in `call_filters' +/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/filters.rb:610:in `perform_action_without_benchmark' +/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue' +/Library/Ruby/Gems/1.8/gems/activesupport-2.3.8/lib/active_support/core_ext/benchmark.rb:17:in `ms' +/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/benchmark.rb:308:in `realtime' +/Library/Ruby/Gems/1.8/gems/activesupport-2.3.8/lib/active_support/core_ext/benchmark.rb:17:in `ms' +/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue' +/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/rescue.rb:160:in `perform_action_without_flash' +/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/flash.rb:151:in `perform_action' +/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/base.rb:532:in `send' +/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/base.rb:532:in `process_without_filters' +/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/filters.rb:606:in `process' +/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/base.rb:391:in `process' +/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/base.rb:386:in `call' +/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/routing/route_set.rb:438:in `call' +/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/dispatcher.rb:87:in `dispatch' +/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/dispatcher.rb:121:in `_call' +/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/dispatcher.rb:130:in `build_middleware_stack' +/Library/Ruby/Gems/1.8/gems/activerecord-2.3.8/lib/active_record/query_cache.rb:29:in `call' +/Library/Ruby/Gems/1.8/gems/activerecord-2.3.8/lib/active_record/query_cache.rb:29:in `call' +/Library/Ruby/Gems/1.8/gems/activerecord-2.3.8/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in `cache' +/Library/Ruby/Gems/1.8/gems/activerecord-2.3.8/lib/active_record/query_cache.rb:9:in `cache' +/Library/Ruby/Gems/1.8/gems/activerecord-2.3.8/lib/active_record/query_cache.rb:28:in `call' +/Library/Ruby/Gems/1.8/gems/activerecord-2.3.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in `call' +/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/string_coercion.rb:25:in `call' +/Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/head.rb:9:in `call' +/Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/methodoverride.rb:24:in `call' +/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/params_parser.rb:15:in `call' +/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/session/cookie_store.rb:99:in `call' +/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/failsafe.rb:26:in `call' +/Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/lock.rb:11:in `call' +/Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/lock.rb:11:in `synchronize' +/Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/lock.rb:11:in `call' +/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/dispatcher.rb:114:in `call' +/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/reloader.rb:34:in `run' +/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/dispatcher.rb:108:in `call' +/Library/Ruby/Gems/1.8/gems/rails-2.3.8/lib/rails/rack/static.rb:31:in `call' +/Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/urlmap.rb:47:in `call' +/Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/urlmap.rb:41:in `each' +/Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/urlmap.rb:41:in `call' +/Library/Ruby/Gems/1.8/gems/rails-2.3.8/lib/rails/rack/debugger.rb:19:in `call' +/Library/Ruby/Gems/1.8/gems/rails-2.3.8/lib/rails/rack/log_tailer.rb:17:in `call' +/Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/content_length.rb:13:in `call' +/Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/chunked.rb:15:in `call' +/Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/handler/mongrel.rb:67:in `process' +/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:159:in `process_client' +/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `each' +/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `process_client' +/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run' +/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `initialize' +/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `new' +/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run' +/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `initialize' +/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `new' +/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `run' +/Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/handler/mongrel.rb:38:in `run' +/Library/Ruby/Gems/1.8/gems/rails-2.3.8/lib/commands/server.rb:111 +/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require' +/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require' +script/server:3 + +ActionView::TemplateError (compile error +/Users/danbee/Sites/rails/photos/app/views/photos/index.html.erb:4: syntax error, unexpected ')', expecting tASSOC +...e, { :class => 'prev-link' } ).to_s); @output_buffer.concat ... + ^ +/Users/danbee/Sites/rails/photos/app/views/photos/index.html.erb:5: syntax error, unexpected ')', expecting tASSOC +...e, { :class => 'next-link' } ).to_s); @output_buffer.concat ... + ^) on line #4 of app/views/photos/index.html.erb: +1:
+2:
+3:
+4: <%= link_to '←', :page => @photos.previous_page, { :class => 'prev-link' } %> +5: <%= link_to '→', :page => @photos.next_page, { :class => 'next-link' } %> +6:
+7: + + app/views/photos/index.html.erb:38:in `compile!' + +Rendered rescues/_trace (93.0ms) +Rendered rescues/_request_and_response (0.4ms) +Rendering rescues/layout (internal_server_error) + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:15:53) [GET] + Parameters: {"class"=>"next-link", "category_id"=>"4"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '4') LIMIT 1 + Photo Load (1.1ms) 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 30ms (View: 16, DB: 1) | 200 OK [http://localhost/categories/4/photos?class=next-link] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:16:02) [GET] + Parameters: {"category_id"=>"4"} + Category Load (0.3ms) SELECT * FROM "categories" WHERE ("categories"."id" = '4') 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 = 4 ) LIMIT 11 OFFSET 0 +Rendering template within layouts/photos +Rendering photos/index +Completed in 86ms (View: 71, DB: 2) | 200 OK [http://localhost/categories/4/photos] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 07:16:05) [GET] + Category Load (0.9ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 12ms (View: 5, DB: 1) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 07:16:17) [GET] + Category Load (0.9ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 16ms (View: 10, DB: 1) | 200 OK [http://localhost/categories] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:16:18) [GET] + Parameters: {"category_id"=>"1"} + 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] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:16:20) [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 07:16:22) [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 28ms (View: 13, DB: 2) | 200 OK [http://localhost/categories/1/photos?page=1] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:16:25) [GET] + Parameters: {"category_id"=>"1", "page"=>"2"} + 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: 9, DB: 1) | 200 OK [http://localhost/categories/1/photos?page=2] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:16:28) [GET] + Parameters: {"category_id"=>"1", "page"=>"1"} + 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 89ms (View: 14, DB: 2) | 200 OK [http://localhost/categories/1/photos?page=1] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:16:51) [GET] + Parameters: {"category_id"=>"1", "page"=>"1"} + 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 34ms (View: 18, DB: 2) | 200 OK [http://localhost/categories/1/photos?page=1] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:17:35) [GET] + Parameters: {"category_id"=>"1", "page"=>"1"} + 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 90ms (View: 74, DB: 2) | 200 OK [http://localhost/categories/1/photos?page=1] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:18:12) [GET] + Parameters: {"category_id"=>"1", "page"=>"1"} + 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 29ms (View: 14, DB: 2) | 200 OK [http://localhost/categories/1/photos?page=1] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:18:38) [GET] + Parameters: {"category_id"=>"1", "page"=>"1"} + 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: 14, DB: 2) | 200 OK [http://localhost/categories/1/photos?page=1] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:18:39) [GET] + Parameters: {"category_id"=>"1", "page"=>"1"} + 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 PhotosController#index (for 127.0.0.1 at 2010-10-09 07:19:09) [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 31ms (View: 14, DB: 2) | 200 OK [http://localhost/categories/1/photos?page=1] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:19:48) [GET] + Parameters: {"category_id"=>"1", "page"=>"1"} + 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 31ms (View: 14, DB: 2) | 200 OK [http://localhost/categories/1/photos?page=1] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:20:05) [GET] + Parameters: {"category_id"=>"1", "page"=>"1"} + 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 31ms (View: 14, DB: 2) | 200 OK [http://localhost/categories/1/photos?page=1] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:20:18) [GET] + Parameters: {"category_id"=>"1", "page"=>"1"} + Category Load (0.5ms) 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 36ms (View: 16, DB: 2) | 200 OK [http://localhost/categories/1/photos?page=1] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:20:20) [GET] + Parameters: {"category_id"=>"1", "page"=>"2"} + Category Load (0.2ms) 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 23ms (View: 10, DB: 1) | 200 OK [http://localhost/categories/1/photos?page=2] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:20:21) [GET] + Parameters: {"category_id"=>"1", "page"=>"1"} + 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 84ms (View: 14, DB: 2) | 200 OK [http://localhost/categories/1/photos?page=1] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:20:44) [GET] + Parameters: {"category_id"=>"1", "page"=>"1"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 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 ) 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-09 07:20:49) [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 07:20:55) [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 22ms (View: 9, DB: 1) | 200 OK [http://localhost/categories/1/photos?page=2] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:21:38) [GET] + Parameters: {"category_id"=>"1", "page"=>"2"} + 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 22ms (View: 10, DB: 1) | 200 OK [http://localhost/categories/1/photos?page=2] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:22:12) [GET] + Parameters: {"category_id"=>"1", "page"=>"2"} + Category Load (0.4ms) 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 20ms (View: 9, DB: 1) | 200 OK [http://localhost/categories/1/photos?page=2] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:22:49) [GET] + Parameters: {"category_id"=>"1", "page"=>"2"} + 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://localhost/categories/1/photos?page=2] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:22:58) [GET] + Parameters: {"category_id"=>"1", "page"=>"2"} + 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 20ms (View: 9, DB: 1) | 200 OK [http://localhost/categories/1/photos?page=2] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:24:52) [GET] + Parameters: {"page"=>"1"} + Photo Load (1.5ms) SELECT * FROM "photos" LIMIT 11 OFFSET 0 + SQL (0.2ms) SELECT count(*) AS count_all FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 24ms (View: 13, DB: 2) | 200 OK [http://localhost/photos?page=1] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:24:53) [GET] + Parameters: {"page"=>"2"} + Photo Load (1.4ms) SELECT * FROM "photos" LIMIT 11 OFFSET 11 + SQL (0.1ms) SELECT count(*) AS count_all FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 22ms (View: 13, DB: 2) | 200 OK [http://localhost/photos?page=2] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:24:54) [GET] + Parameters: {"page"=>"1"} + Photo Load (1.3ms) SELECT * FROM "photos" LIMIT 11 OFFSET 0 + SQL (0.1ms) SELECT count(*) AS count_all FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 22ms (View: 13, DB: 1) | 200 OK [http://localhost/photos?page=1] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:24:55) [GET] + Parameters: {"page"=>"2"} + Photo Load (1.3ms) SELECT * FROM "photos" LIMIT 11 OFFSET 11 + SQL (0.1ms) SELECT count(*) AS count_all FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 21ms (View: 12, DB: 1) | 200 OK [http://localhost/photos?page=2] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:24:57) [GET] + Parameters: {"page"=>"1"} + Photo Load (1.3ms) SELECT * FROM "photos" LIMIT 11 OFFSET 0 + SQL (0.1ms) SELECT count(*) AS count_all FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 22ms (View: 12, DB: 1) | 200 OK [http://localhost/photos?page=1] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:24:58) [GET] + Photo Load (1.3ms) SELECT * FROM "photos" LIMIT 11 OFFSET 0 + SQL (0.1ms) SELECT count(*) AS count_all FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 21ms (View: 12, DB: 1) | 200 OK [http://localhost/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:24:59) [GET] + Parameters: {"page"=>"2"} + Photo Load (1.5ms) SELECT * FROM "photos" LIMIT 11 OFFSET 11 + SQL (0.1ms) SELECT count(*) AS count_all FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 22ms (View: 13, DB: 2) | 200 OK [http://localhost/photos?page=2] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:24:59) [GET] + Photo Load (1.4ms) SELECT * FROM "photos" LIMIT 11 OFFSET 0 + SQL (0.2ms) SELECT count(*) AS count_all FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 79ms (View: 12, DB: 2) | 200 OK [http://localhost/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:25:00) [GET] + Parameters: {"page"=>"2"} + Photo Load (1.4ms) SELECT * FROM "photos" LIMIT 11 OFFSET 11 + SQL (0.1ms) SELECT count(*) AS count_all FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 23ms (View: 13, DB: 2) | 200 OK [http://localhost/photos?page=2] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:25:00) [GET] + Parameters: {"page"=>"1"} + Photo Load (1.3ms) SELECT * FROM "photos" LIMIT 11 OFFSET 0 + SQL (0.1ms) SELECT count(*) AS count_all FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 22ms (View: 13, DB: 1) | 200 OK [http://localhost/photos?page=1] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:25:02) [GET] + Photo Load (1.3ms) SELECT * FROM "photos" LIMIT 11 OFFSET 0 + SQL (0.1ms) SELECT count(*) AS count_all FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 21ms (View: 12, DB: 1) | 200 OK [http://localhost/photos] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 07:25:08) [GET] + Category Load (0.8ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 10ms (View: 5, DB: 1) | 200 OK [http://localhost/categories] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:25:09) [GET] + Parameters: {"category_id"=>"1"} + 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] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 07:25:10) [GET] + Category Load (0.9ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 11ms (View: 5, DB: 1) | 200 OK [http://localhost/categories] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:25:11) [GET] + Parameters: {"category_id"=>"2"} + 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 75ms (View: 63, DB: 1) | 200 OK [http://localhost/categories/2/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:25:12) [GET] + Parameters: {"category_id"=>"2"} + 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 07:25:18) [GET] + Category Load (0.9ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 10ms (View: 5, DB: 1) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 07:25:19) [GET] + Category Load (0.9ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 12ms (View: 6, DB: 1) | 200 OK [http://localhost/categories] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:25:22) [GET] + Parameters: {"category_id"=>"1"} + 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] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 07:25:31) [GET] + Category Load (0.8ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 10ms (View: 5, DB: 1) | 200 OK [http://localhost/categories] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:25:32) [GET] + Parameters: {"category_id"=>"5"} + 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-09 07:25:34) [GET] + Category Load (0.9ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 11ms (View: 5, DB: 1) | 200 OK [http://localhost/categories] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:25:36) [GET] + Parameters: {"category_id"=>"4"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '4') LIMIT 1 + Photo Load (1.1ms) 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 25ms (View: 13, DB: 1) | 200 OK [http://localhost/categories/4/photos] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 07:25:47) [GET] + Category Load (0.8ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 11ms (View: 5, DB: 1) | 200 OK [http://localhost/categories] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:25:49) [GET] + Parameters: {"category_id"=>"1"} + 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.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 )  +Rendering template within layouts/photos +Rendering photos/index +Completed in 81ms (View: 14, DB: 2) | 200 OK [http://localhost/categories/1/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:26:27) [GET] + Parameters: {"category_id"=>"1"} + 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] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:26:51) [GET] + Parameters: {"category_id"=>"1"} + Category Load (0.3ms) SELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1 + Photo Load (2.1ms) 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 31ms (View: 14, DB: 2) | 200 OK [http://localhost/categories/1/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:27:10) [GET] + Parameters: {"category_id"=>"1"} + 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 32ms (View: 14, DB: 2) | 200 OK [http://localhost/categories/1/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:42:34) [GET] + Parameters: {"category_id"=>"1"} + 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 28ms (View: 14, DB: 2) | 200 OK [http://localhost/categories/1/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:42:54) [GET] + Parameters: {"category_id"=>"1"} + 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 35ms (View: 18, DB: 2) | 200 OK [http://localhost/categories/1/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:43:14) [GET] + Parameters: {"category_id"=>"1"} + 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 31ms (View: 14, DB: 2) | 200 OK [http://localhost/categories/1/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:43:28) [GET] + Parameters: {"category_id"=>"1", "page"=>"2"} + 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 07:43:30) [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 29ms (View: 14, DB: 2) | 200 OK [http://localhost/categories/1/photos?page=1] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:44:00) [GET] + Parameters: {"category_id"=>"1", "page"=>"1"} + 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 +ERROR: compiling _run_erb_app47views47photos47index46html46erb RAISED compile error +/Users/danbee/Sites/rails/photos/app/views/photos/index.html.erb:38: syntax error, unexpected kENSURE, expecting kEND +/Users/danbee/Sites/rails/photos/app/views/photos/index.html.erb:40: syntax error, unexpected $end, expecting kEND +Function body: def _run_erb_app47views47photos47index46html46erb(local_assigns) + old_output_buffer = output_buffer;;@output_buffer = ''; __in_erb_template=true ; @output_buffer.concat "\t
\n\t
\n\t
\n\t\t" + + +; if @photos.previous_page do +@output_buffer.concat "\t\t\t"; @output_buffer.concat(( link_to '
', { :page => @photos.previous_page }, :class => 'prev-link' ).to_s); @output_buffer.concat "\n\t\t" +; end ; @output_buffer.concat "\n\t\t" +; @output_buffer.concat(( link_to '
', { :page => @photos.next_page }, :class => 'next-link' ).to_s); @output_buffer.concat "\n\t
\n\n\n
\n\n" + + + + + +; if @category ; @output_buffer.concat "\n\t
\n\t\t" +; @output_buffer.concat(( link_to '

'+h(@category.name.downcase)+'

', categories_url ).to_s); @output_buffer.concat "\n\t
\n" + +; else ; @output_buffer.concat "\n\t
\n\t\t

all photos

\n\t
\n" + + + +; end ; @output_buffer.concat "\n\n" + +; @num_blank = 11 - @num_photos +@output_buffer.concat "\n" +; @photos.each do |photo| ; @output_buffer.concat "\n\n
"; @output_buffer.concat(( link_to ' ', photo.photo.url, :rel => 'photo', :class => 'fancy' ).to_s); @output_buffer.concat "
\n\n" + +; end ; @output_buffer.concat "\n\n" + +; @num_blank.times do ; @output_buffer.concat "\n\t
\n\t
\n" + + +; end ; @output_buffer.concat "\n\n
\n" + + +; @output_buffer + ensure + self.output_buffer = old_output_buffer + end +Backtrace: /Users/danbee/Sites/rails/photos/app/views/photos/index.html.erb:40:in `compile!' +/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_view/renderable.rb:61:in `compile' +/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_view/renderable.rb:28:in `render' +/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_view/template.rb:205:in `render_template' +/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_view/base.rb:265:in `render_without_parent' +/Users/danbee/Sites/rails/photos/vendor/plugins/typus/lib/vendor/inherit_views.rb:193:in `render' +/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_view/base.rb:348:in `_render_with_layout' +/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_view/base.rb:262:in `render_without_parent' +/Users/danbee/Sites/rails/photos/vendor/plugins/typus/lib/vendor/inherit_views.rb:193:in `render' +/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/base.rb:1250:in `render_for_file' +/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/base.rb:936:in `render_without_benchmark' +/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/benchmarking.rb:51:in `render' +/Library/Ruby/Gems/1.8/gems/activesupport-2.3.8/lib/active_support/core_ext/benchmark.rb:17:in `ms' +/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/benchmark.rb:308:in `realtime' +/Library/Ruby/Gems/1.8/gems/activesupport-2.3.8/lib/active_support/core_ext/benchmark.rb:17:in `ms' +/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/benchmarking.rb:51:in `render' +/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/base.rb:1326:in `default_render' +/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/base.rb:1332:in `perform_action_without_filters' +/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/filters.rb:617:in `call_filters' +/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/filters.rb:610:in `perform_action_without_benchmark' +/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue' +/Library/Ruby/Gems/1.8/gems/activesupport-2.3.8/lib/active_support/core_ext/benchmark.rb:17:in `ms' +/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/benchmark.rb:308:in `realtime' +/Library/Ruby/Gems/1.8/gems/activesupport-2.3.8/lib/active_support/core_ext/benchmark.rb:17:in `ms' +/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue' +/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/rescue.rb:160:in `perform_action_without_flash' +/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/flash.rb:151:in `perform_action' +/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/base.rb:532:in `send' +/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/base.rb:532:in `process_without_filters' +/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/filters.rb:606:in `process' +/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/base.rb:391:in `process' +/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/base.rb:386:in `call' +/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/routing/route_set.rb:438:in `call' +/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/dispatcher.rb:87:in `dispatch' +/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/dispatcher.rb:121:in `_call' +/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/dispatcher.rb:130:in `build_middleware_stack' +/Library/Ruby/Gems/1.8/gems/activerecord-2.3.8/lib/active_record/query_cache.rb:29:in `call' +/Library/Ruby/Gems/1.8/gems/activerecord-2.3.8/lib/active_record/query_cache.rb:29:in `call' +/Library/Ruby/Gems/1.8/gems/activerecord-2.3.8/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in `cache' +/Library/Ruby/Gems/1.8/gems/activerecord-2.3.8/lib/active_record/query_cache.rb:9:in `cache' +/Library/Ruby/Gems/1.8/gems/activerecord-2.3.8/lib/active_record/query_cache.rb:28:in `call' +/Library/Ruby/Gems/1.8/gems/activerecord-2.3.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in `call' +/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/string_coercion.rb:25:in `call' +/Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/head.rb:9:in `call' +/Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/methodoverride.rb:24:in `call' +/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/params_parser.rb:15:in `call' +/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/session/cookie_store.rb:99:in `call' +/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/failsafe.rb:26:in `call' +/Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/lock.rb:11:in `call' +/Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/lock.rb:11:in `synchronize' +/Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/lock.rb:11:in `call' +/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/dispatcher.rb:114:in `call' +/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/reloader.rb:34:in `run' +/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/dispatcher.rb:108:in `call' +/Library/Ruby/Gems/1.8/gems/rails-2.3.8/lib/rails/rack/static.rb:31:in `call' +/Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/urlmap.rb:47:in `call' +/Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/urlmap.rb:41:in `each' +/Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/urlmap.rb:41:in `call' +/Library/Ruby/Gems/1.8/gems/rails-2.3.8/lib/rails/rack/debugger.rb:19:in `call' +/Library/Ruby/Gems/1.8/gems/rails-2.3.8/lib/rails/rack/log_tailer.rb:17:in `call' +/Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/content_length.rb:13:in `call' +/Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/chunked.rb:15:in `call' +/Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/handler/mongrel.rb:67:in `process' +/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:159:in `process_client' +/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `each' +/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `process_client' +/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run' +/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `initialize' +/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `new' +/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run' +/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `initialize' +/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `new' +/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `run' +/Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/handler/mongrel.rb:38:in `run' +/Library/Ruby/Gems/1.8/gems/rails-2.3.8/lib/commands/server.rb:111 +/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require' +/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require' +script/server:3 + +ActionView::TemplateError (compile error +/Users/danbee/Sites/rails/photos/app/views/photos/index.html.erb:38: syntax error, unexpected kENSURE, expecting kEND +/Users/danbee/Sites/rails/photos/app/views/photos/index.html.erb:40: syntax error, unexpected $end, expecting kEND) on line #38 of app/views/photos/index.html.erb: +35: +36: + + app/views/photos/index.html.erb:40:in `compile!' + +Rendered rescues/_trace (36.8ms) +Rendered rescues/_request_and_response (0.3ms) +Rendering rescues/layout (internal_server_error) + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:44:08) [GET] + Parameters: {"category_id"=>"1", "page"=>"1"} + Category Load (0.3ms) SELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 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 ) LIMIT 11 OFFSET 0 + 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 )  +Rendering template within layouts/photos +Rendering photos/index +Completed in 44ms (View: 22, DB: 2) | 200 OK [http://localhost/categories/1/photos?page=1] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:44:10) [GET] + Parameters: {"category_id"=>"1", "page"=>"2"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '1') 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 = 1 ) LIMIT 11 OFFSET 11 +Rendering template within layouts/photos +Rendering photos/index +Completed in 92ms (View: 11, DB: 1) | 200 OK [http://localhost/categories/1/photos?page=2] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:44:12) [GET] + Parameters: {"category_id"=>"1", "page"=>"1"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1 + Photo Load (2.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.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 )  +Rendering template within layouts/photos +Rendering photos/index +Completed in 39ms (View: 19, DB: 3) | 200 OK [http://localhost/categories/1/photos?page=1] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:44:30) [GET] + Parameters: {"category_id"=>"1", "page"=>"1"} + Category Load (0.3ms) SELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 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 ) LIMIT 11 OFFSET 0 + 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 )  +Rendering template within layouts/photos +Rendering photos/index +Completed in 40ms (View: 20, DB: 2) | 200 OK [http://localhost/categories/1/photos?page=1] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:44:31) [GET] + Parameters: {"category_id"=>"1", "page"=>"2"} + Category Load (0.4ms) SELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1 + Photo Load (1.1ms) 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 35ms (View: 15, DB: 1) | 200 OK [http://localhost/categories/1/photos?page=2] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:44:33) [GET] + Parameters: {"category_id"=>"1", "page"=>"1"} + Category Load (0.5ms) SELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1 + Photo Load (3.1ms) 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.4ms) 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 56ms (View: 24, DB: 4) | 200 OK [http://localhost/categories/1/photos?page=1] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:44:35) [GET] + Photo Load (15.4ms) SELECT * FROM "photos" LIMIT 11 OFFSET 0 + SQL (0.2ms) SELECT count(*) AS count_all FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 42ms (View: 18, DB: 16) | 200 OK [http://localhost/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:44:38) [GET] + Parameters: {"page"=>"2"} + Photo Load (1.6ms) SELECT * FROM "photos" LIMIT 11 OFFSET 11 + SQL (0.2ms) SELECT count(*) AS count_all FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 27ms (View: 16, DB: 2) | 200 OK [http://localhost/photos?page=2] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:44:39) [GET] + Parameters: {"page"=>"1"} + Photo Load (1.5ms) SELECT * FROM "photos" LIMIT 11 OFFSET 0 + SQL (0.2ms) SELECT count(*) AS count_all FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 25ms (View: 14, DB: 2) | 200 OK [http://localhost/photos?page=1] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:44:45) [GET] + Parameters: {"category_id"=>"1", "page"=>"2"} + Category Load (0.3ms) 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 25ms (View: 12, DB: 1) | 200 OK [http://localhost/categories/1/photos?page=2] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:44:54) [GET] + Parameters: {"category_id"=>"1", "page"=>"1"} + Category Load (0.3ms) SELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 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 ) LIMIT 11 OFFSET 0 + 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 )  +Rendering template within layouts/photos +Rendering photos/index +Completed in 34ms (View: 14, DB: 2) | 200 OK [http://localhost/categories/1/photos?page=1] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 07:45:19) [GET] + Category Load (0.9ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 52ms (View: 46, DB: 1) | 200 OK [http://localhost/categories] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:45:20) [GET] + Parameters: {"category_id"=>"4"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '4') LIMIT 1 + Photo Load (1.1ms) 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 25ms (View: 13, DB: 1) | 200 OK [http://localhost/categories/4/photos] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 07:45:40) [GET] + Category Load (0.9ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 12ms (View: 5, DB: 1) | 200 OK [http://localhost/categories] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:45:41) [GET] + Parameters: {"category_id"=>"5"} + Category Load (0.4ms) SELECT * FROM "categories" WHERE ("categories"."id" = '5') 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 = 5 ) LIMIT 11 OFFSET 0 +Rendering template within layouts/photos +Rendering photos/index +Completed in 26ms (View: 9, DB: 1) | 200 OK [http://localhost/categories/5/photos] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 07:45:43) [GET] + Category Load (1.0ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 12ms (View: 5, DB: 1) | 200 OK [http://localhost/categories] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:45:44) [GET] + Parameters: {"category_id"=>"1"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 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 ) 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 PhotosController#index (for 127.0.0.1 at 2010-10-09 07:45:45) [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 07:45:46) [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 28ms (View: 13, DB: 2) | 200 OK [http://localhost/categories/1/photos?page=1] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 07:45:48) [GET] + Category Load (0.8ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 11ms (View: 5, DB: 1) | 200 OK [http://localhost/categories] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:45:50) [GET] + Parameters: {"category_id"=>"6"} + Category Load (0.2ms) 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 20ms (View: 8, DB: 1) | 200 OK [http://localhost/categories/6/photos] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 07:45:56) [GET] + Category Load (0.9ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 10ms (View: 5, DB: 1) | 200 OK [http://localhost/categories] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:46:19) [GET] + Parameters: {"category_id"=>"4"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '4') 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 = 4 ) LIMIT 11 OFFSET 0 +Rendering template within layouts/photos +Rendering photos/index +Completed in 82ms (View: 14, DB: 1) | 200 OK [http://localhost/categories/4/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:46:21) [GET] + Parameters: {"category_id"=>"4"} + Category Load (0.3ms) 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 33ms (View: 16, DB: 2) | 200 OK [http://localhost/categories/4/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:46:31) [GET] + Parameters: {"category_id"=>"1"} + 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 28ms (View: 13, DB: 2) | 200 OK [http://localhost/categories/1/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:46:41) [GET] + Parameters: {"category_id"=>"1", "page"=>"2"} + 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 07:46:43) [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 29ms (View: 15, DB: 2) | 200 OK [http://localhost/categories/1/photos?page=1] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 07:46:44) [GET] + Category Load (0.8ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 10ms (View: 5, DB: 1) | 200 OK [http://localhost/categories] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:46:59) [GET] + Parameters: {"page"=>"2"} + Photo Load (1.7ms) SELECT * FROM "photos" LIMIT 11 OFFSET 11 + SQL (0.1ms) SELECT count(*) AS count_all FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 79ms (View: 13, DB: 2) | 200 OK [http://localhost/photos?page=2] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:47:01) [GET] + Parameters: {"page"=>"1"} + Photo Load (1.4ms) SELECT * FROM "photos" LIMIT 11 OFFSET 0 + SQL (0.1ms) SELECT count(*) AS count_all FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 22ms (View: 12, DB: 2) | 200 OK [http://localhost/photos?page=1] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:47:01) [GET] + Parameters: {"page"=>"2"} + Photo Load (1.3ms) SELECT * FROM "photos" LIMIT 11 OFFSET 11 + SQL (0.2ms) SELECT count(*) AS count_all FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 22ms (View: 12, DB: 2) | 200 OK [http://localhost/photos?page=2] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:47:02) [GET] + Parameters: {"page"=>"1"} + Photo Load (1.4ms) SELECT * FROM "photos" LIMIT 11 OFFSET 0 + SQL (0.2ms) SELECT count(*) AS count_all FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 21ms (View: 12, DB: 2) | 200 OK [http://localhost/photos?page=1] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:47:09) [GET] + Parameters: {"category_id"=>"1"} + 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] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 07:47:15) [GET] + Category Load (0.9ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 11ms (View: 5, DB: 1) | 200 OK [http://localhost/categories] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:47:16) [GET] + Parameters: {"category_id"=>"5"} + 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-09 07:47:17) [GET] + Category Load (0.9ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 65ms (View: 59, DB: 1) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 07:47:36) [GET] + Category Load (0.8ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 13ms (View: 8, DB: 1) | 200 OK [http://localhost/categories] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:47:39) [GET] + Parameters: {"category_id"=>"1"} + 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 29ms (View: 13, DB: 2) | 200 OK [http://localhost/categories/1/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:47:41) [GET] + Parameters: {"category_id"=>"2"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '2') 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 = 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 PhotosController#index (for 127.0.0.1 at 2010-10-09 07:47:43) [GET] + Parameters: {"category_id"=>"6"} + Category Load (0.3ms) 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 22ms (View: 8, DB: 1) | 200 OK [http://localhost/categories/6/photos] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 07:47:52) [GET] + Category Load (0.8ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 15ms (View: 9, DB: 1) | 200 OK [http://localhost/categories] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:48:17) [GET] + Parameters: {"category_id"=>"1"} + 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 31ms (View: 17, DB: 2) | 200 OK [http://localhost/categories/1/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 07:48:22) [GET] + Parameters: {"category_id"=>"2"} + Category Load (0.3ms) 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 PhotosController#index (for 127.0.0.1 at 2010-10-09 08:01:23) [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 29ms (View: 13, DB: 2) | 200 OK [http://localhost/categories/1/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 08:01:25) [GET] + Parameters: {"category_id"=>"1", "page"=>"2"} + 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 20ms (View: 9, DB: 1) | 200 OK [http://localhost/categories/1/photos?page=2] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 08:01:27) [GET] + Parameters: {"category_id"=>"1", "page"=>"1"} + 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 31ms (View: 15, DB: 2) | 200 OK [http://localhost/categories/1/photos?page=1] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 08:01:29) [GET] + Category Load (1.0ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 11ms (View: 5, DB: 1) | 200 OK [http://localhost/categories] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 08:01:30) [GET] + Parameters: {"category_id"=>"6"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '6') 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 = 6 ) LIMIT 11 OFFSET 0 +Rendering template within layouts/photos +Rendering photos/index +Completed in 20ms (View: 8, DB: 1) | 200 OK [http://localhost/categories/6/photos] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 08:01:32) [GET] + Category Load (0.8ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 10ms (View: 4, DB: 1) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 08:02:04) [GET] + Category Load (0.9ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 17ms (View: 10, DB: 1) | 200 OK [http://localhost/categories] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 08:02:07) [GET] + Parameters: {"category_id"=>"1"} + 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 29ms (View: 14, DB: 2) | 200 OK [http://localhost/categories/1/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 08:02:08) [GET] + Parameters: {"category_id"=>"3"} + Category Load (0.3ms) 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 19ms (View: 7, DB: 1) | 200 OK [http://localhost/categories/3/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 08:03:01) [GET] + Parameters: {"category_id"=>"1"} + 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 87ms (View: 14, DB: 2) | 200 OK [http://localhost/categories/1/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 08:03:02) [GET] + Parameters: {"category_id"=>"1", "page"=>"2"} + 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 20ms (View: 8, DB: 1) | 200 OK [http://localhost/categories/1/photos?page=2] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 08:03:03) [GET] + Parameters: {"category_id"=>"1", "page"=>"1"} + 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.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 )  +Rendering template within layouts/photos +Rendering photos/index +Completed in 33ms (View: 16, DB: 2) | 200 OK [http://localhost/categories/1/photos?page=1] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 08:03:20) [GET] + Parameters: {"category_id"=>"1", "page"=>"2"} + 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 08:03:28) [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 80ms (View: 64, DB: 2) | 200 OK [http://localhost/categories/1/photos?page=1] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 08:03:54) [GET] + Category Load (0.9ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 10ms (View: 5, DB: 1) | 200 OK [http://localhost/categories] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 08:03:57) [GET] + Parameters: {"category_id"=>"5"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '5') LIMIT 1 + Photo Load (0.4ms) 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 19ms (View: 7, DB: 1) | 200 OK [http://localhost/categories/5/photos] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 08:04:00) [GET] + Category Load (0.8ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 10ms (View: 5, DB: 1) | 200 OK [http://localhost/categories] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 08:04:01) [GET] + Parameters: {"category_id"=>"6"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '6') LIMIT 1 + Photo Load (55.0ms) 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 75ms (View: 8, DB: 55) | 200 OK [http://localhost/categories/6/photos] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 08:04:03) [GET] + Category Load (0.8ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 10ms (View: 4, DB: 1) | 200 OK [http://localhost/categories] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 08:09:19) [GET] + Parameters: {"category_id"=>"6"} + 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://localhost/categories/6/photos] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 08:09:28) [GET] + Category Load (0.8ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 11ms (View: 5, DB: 1) | 200 OK [http://localhost/categories] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 08:09:29) [GET] + Parameters: {"category_id"=>"1"} + 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 29ms (View: 14, DB: 2) | 200 OK [http://localhost/categories/1/photos] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 08:09:32) [GET] + Category Load (1.2ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 13ms (View: 5, DB: 1) | 200 OK [http://localhost/categories] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 08:09:33) [GET] + Parameters: {"category_id"=>"2"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '2') 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 = 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 08:09:45) [GET] + Category Load (0.8ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 10ms (View: 4, DB: 1) | 200 OK [http://localhost/categories] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 08:09:46) [GET] + Parameters: {"category_id"=>"5"} + Category Load (0.3ms) SELECT * FROM "categories" WHERE ("categories"."id" = '5') LIMIT 1 + Photo Load (0.4ms) 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 19ms (View: 7, DB: 1) | 200 OK [http://localhost/categories/5/photos] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 08:25:48) [GET] + Category Load (0.8ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 13ms (View: 7, DB: 1) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 08:25:49) [GET] + Category Load (1.0ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 11ms (View: 5, DB: 1) | 200 OK [http://localhost/categories] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 08:26:05) [GET] + Parameters: {"category_id"=>"5"} + Category Load (0.4ms) SELECT * FROM "categories" WHERE ("categories"."id" = '5') LIMIT 1 + Photo Load (0.4ms) 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 21ms (View: 7, DB: 1) | 200 OK [http://localhost/categories/5/photos] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 08:26:10) [GET] + Category Load (0.8ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 11ms (View: 5, DB: 1) | 200 OK [http://localhost/categories] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 08:26:10) [GET] + Parameters: {"category_id"=>"1"} + 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] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-09 08:26:12) [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-09 08:26:13) [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: 13, DB: 2) | 200 OK [http://localhost/categories/1/photos?page=1] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-09 08:26:14) [GET] + Category Load (0.8ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 10ms (View: 5, DB: 1) | 200 OK [http://localhost/categories] diff --git a/public/images/admin/fancybox/blank.gif b/public/images/admin/fancybox/blank.gif new file mode 100644 index 0000000000000000000000000000000000000000..35d42e808f0a8017b8d52a06be2f8fec0b466a66 GIT binary patch literal 43 scmZ?wbhEHbWMp7uXkcLY|NlP&1B2pE7Dgb&paUX6G7L;iE{qJ;0LZEa`2YX_ literal 0 HcmV?d00001 diff --git a/public/images/admin/fancybox/fancy_close.png b/public/images/admin/fancybox/fancy_close.png new file mode 100644 index 0000000000000000000000000000000000000000..07035307ad435f8f2f8eedf0bce50f7ec8a858c2 GIT binary patch literal 1517 zcmV1To%f)hA(E>uTT$~N#GA0orBqo9-jKM;POccZrXJjTzge4|Sa0ca~7y<+{ z2m7~>41(Jqf9L`mBM6zAjf4;hkjP@@B~d6Xz385|dB5iCM=Ro&JZZmk-uHdZd2i=@ zK0a@Md;u9DFE7t8BO^nxckf<*yC?SckUFGmX^jwM@NV80+eiP zQ*s##s^a3}Ldwd@cHO*r^T5i=%Fj}=Cr_R@78e&C((#usU;YFS>C)2Dw4tG)YO=*P zWt;6ZfL46;=u!R1$jGM-hhvcpVyCa+S}Q!T2ALHx;BHe#M~BsHHos=s2iW})#C?}q ztqvud-gYjKsG$zHm2XhmYPB(Bn>kzw z=gS!w6cG`jJ$?H00VK+=!cMnBDn?IFkCkj7KmNq~hrkZvU@n=EP}|7Gxw*M}1_lPI zNx@_?IS^|%_ok<(o3gXBH^f+@(X7_g)K~%n0$gMM{{Ab=%gZ*hH99)_Eo>!VJd8_C zE)WMoNsBB#u&}W3BMEnPby>y64F-cra9>kX)4DJoA0KZ5fitNn`NTT4wY3%+fA;Lz zZ+K4ucJi+Mg!m%<>Ug8kSg^LX_JD-5va;NEM#+V_H)8UHgaj8UJ?LiZVx92t@KxlB zb1oz#Bo|{kAO!IDVfOII$VfwRad8C+y?XV^;VEu~g@tQka>%(zhlYl1p7P=0!-vj9 zYiMYw3l0uW##jWq+eZ-;6r@4F%{+PXGcz;xx78|Q_F7Eb+}ynGO@4TI*h!27r4#SzfR=K~ zhtpe&%-o-olT$}R&!0cHdm}}wbdd`2lO~)PlarHXnm>2$+(ng2^$EtJ+=vwl#Xg-* zSA%x<9|=lJ3CXuACMEY46&1O~{LGm%7HKm8lhZ|+Pv?nF1LcJswy+L%zshO4HzpR4skij zxq<8a{QPpl!oq4$R(*n7$-q`gsjcF2;NWZ?##l9wBW)lu_Bpk)RJgGO&Ey+2dDr3J z*x2~aJFl#)G^5U)q~qh`_b^ru6q9Xf%arlfse$W(T#z5f?cqE0>k)x`c6QcMUS4jN z#$B996B84z1O(|{7{3S{Bb#j7?T~OCi+pq$fP9eGqJ%Evk~i}B@#8tcAnk_QAg)9f z!qn81MJO5W0n6>}?Q|$y25QL`+uU$0x?KbSI<(UOBavf=wCW!^J3Ie)^yty-8!yk& z($YLG4fjwT{k&5mHL@*_7Xi1c4?x$HT^y5qc2zyPPCG3CUKl!f@Zj&~&!7K?fD>&z zDk^G(=74sN=`q$#Wm{gaK5myi7K~vRQ8s=CoB+NC8j<}iKpXzI(SMmt*2r@wST=`s zW7t-}X4hPqXy3W00000NkvXXu0mjftFGKG literal 0 HcmV?d00001 diff --git a/public/images/admin/fancybox/fancy_loading.png b/public/images/admin/fancybox/fancy_loading.png new file mode 100644 index 0000000000000000000000000000000000000000..2503017960b3972499d3aa92f89953935ae40934 GIT binary patch literal 10195 zcmZvCRa6{Z)GRK+A-I#l3GNJT8Egn7KyZS)ySwY)GC**5cXtmOAh^3rfXjE+eY*eu zvb$HWe&}AO&aSFmCtO)c7UKiS2N)O_4A2)TmG>(H3=HfB3ex-CA}8B>rB4S*iGOoj zIbB0`GB%#)yQsNe_Z(XHJVzvTksi>+`6l(%$`7%p5{2L+{tq=VJ?V0JL-5DetdIHF|rZRGiB+~M$cAs!3L4m1WqS5m4Uut{B{sus$nl}9N zp#?4R@YNv8YM{JrwP-Li8Ynr~UO3E8cBsK321T79L4oqq#7><+nH-uo4c3S zzbjdhtN2LE+Wk$ypLztVwTlowGQqng!^I&U`;KFsDxwwAwF4PR(`@g%I}B1@?aN<; z9cJzX7khkNkJG|u_OY88t2=a(9k|tRF|O^~620}B74q3{|Mu}rUKMRU=5i@t4rH}t zWMo)9&m6ObjvNsA;yz~`O>f^l&kjH&j=Aexy0cfmC&I>@QU7`Ql zPU3_q?7Cqi%{r7|wPeZc`_s9mfR2B_K39;>*-yWV=qR41Ls>bqydL@}bse|D>1|L> zSvMFEQ2vnWJKlHRcZAw{ZIfc@+_x^0qqpf`uaLP9OH$Mxyno5YuLvbooxn?EWW9?3 z!YB&gf0xHo{M%6#qA!QwrjFO!Dm~{w(pCL9Z1XeAf)Nj@AQGyB2^*KX+-VJJjiv1` z<4I`VooCdOm?}gf8PD(k+m)s!AE5Z?+0=PkK{!n$OKo*{K2N95Y`L?t*m<`z<@&zR zp~CHRl4dh@$sJ4b-?gm;KP++XcWjfN6N#Qw_o;QATHBKP9&7y-bUDZkt@PRB%5E8d zyIxSjYTf;8+p-~Y-!k=O$;kfFCPu};=7d4N%l)KG@8xK)nb+&}I$Q6pWy;&;g|G86 zI-2s|2J)g^1XG`LO53Wj0gJDEZw-Oyi2)Wft0k{z<}G%H3dQ>?Y(D?CDZ2o#2V1hj zM_=W)_N5IX(aMyXUqh1U_WG#TC%LuB%3bK~)3%|v<)+ah|2DDoR!5Ri1|w~KpZ~C> zj*1KZd%Z~(gdF2RFMx01Wj`AW>Y$yS`Ndy3rPZS*pr6~#`6Q{ z%20=uSgaS;|E%9NE(<&vHm9^dubopg^XZ9&z5b1D ztpelNuc?SSpElb&~gE~4TESBIw z4hXi+ap2YNx8^D{Y~U3Q@Y|(~)|YhqOBukuK1!NNCMG7sGZ6A#)2w8O6Kn zdChi*Bi4O9!Q85-l}W!%4SCss_ceWT5CR9)!>d)k=W(}t8zRG>zPaIpd-bRcl+8}< zyZAFh+)b7i2(xFGQ1NiT*Ss*nf$|V%2{)tO&r?qsL@GB0#g&?RJHuU!w|`-+L=^sL zBkr*m4+?S5Lim?WVQJ4G?3fKVc}Q*JmJmX3?v`M44RD$Chi8S>0a5i2&wbyXSv8dY zyfv7Z{pAwk7MSBUu@ z5G6tLJnE1!1UjyO1R`?s4&aNgugC^{U9o!idxxDc93pcZ7raY)Xn7Pw`)<#e)4& zcN7v?6cRi?#`bl9ECtBz_QVZ0guMA?CDv=_ljYyH*ZV4aa_^g&fXJni?@vAE{G+P77pVW4Tj}s-(;*& z1STX!WHYF!Btlft>2`qz&1ijPaSdm%!UIMua~VRnoET&%1AAf)#vSfWj=q$8;qo|vcK_;z1j(+l2X0@o7C&Rzg8!2h$XZGbenx^q2; zApAgMeMi;{fO?<|f=I--(6#z(IL}cC|D24*dg^rhIE3G^yTJFZF55a-#}tYH=P$~* zb}RzkLIDvK`;ZA4OnYPQQ?;ssg`Ml>vON8NVnk@fl0k&o2W`-r3Bg-8NJYuCo0$rb zAKi(Z+>hRKA>bjOr%LHS@;94B&obY#4yCecQ0pdAnSV&v!vLF&-`Mm?t?}6F z?PaX5mkzFp$i(YKsOTz58Zgc7q)IVxy5hYd;~k@a63_Ja7Z0!ycbH~U&Y;r17f{Z} zwhnd>Xve$Riey{w@OgRi9rKhkQO@>jj2#Py8_PSVvvwxp0HTR7DdE{>K_i9RL= zrPNU6SCAR*HU3BLhMV(aTn;NBJQziUp9-R3QkgnENmN9ZBlJCW?l9$81skWTmD&YK zJ%7bQFP*wlswyu56egGmr!KVx=+KneK+U;f>vSk#hKg0u(yv^fNk=GGdULDg_=itK zp3;*2U!wB8TA$o;k!;o@OA2zx*%c|y0#?BBp?nDDw5rBS_SB_Sbz$6-fYTvnj(ezNfL{$?uz9aa=HGSg$mLTxTf{7e`Oqr?7rp+0`lg6AQpk z9Nsxh5kt+I%$5|50=OZUzms%|OAS{5^$g0~djWjOVxYk^CLD{|njlM2ex}zn9yCa1 zXCSTHoM#Rjq25u6;*Ug2A+S~Y`_kh|<3C=w_~F{9JKTLW^z5D41V2cjL8y+L*0IQ_ z?L+y%E(_`Xj&MzngB*bEt_~znvHKiL&w-ytZ<@L~s{_sdoRaSXOA5{31d;sz#pvvv zgq9-MCupHYRhjX{g`7wlu9(YJkAO)+oP%bGYC{Q>2v4!wD(_QEQe5suxdx(SIXS!9 zV|=hm;s|y$aq8^~zssyzb{|fvQc!Cj#FNH1$?tLP+^0!rIS_gU*h1d?y;X7vm>l>a zwr^N0VzNQ_j$}0!F~;(iG9UmS=QO|XM%w%nK5uQHaLT2-I$_CRCbGr8ymE9J_k{YTcfRFh1nn)R6_X#W#Fg4I=2W=GD|J_UwPwIQsBklSR4`o0$A&X8xn-V`k#d|7nEr9kiD4Dx?q zJBBg6NsFLaJWHtZ+GQr~rb(+STSHpb`9UQ4BbXjmTjDz;@V0H}7=mOf+#fvH-crjF z@uztsU}U)L0`Q{D-mZfkuH|zPNNIKXy+C+QIrQ&23l%VJtwn!M0wNG>wEi_? z``=Fg-bBV*o!jNs*j0n^Sn^x-5T@n{us@koqBnB}HI+tGJ!*iBb=5xNu?gt0oYXmW z8+W9Aca$K535BsvBR3qs~{jn>MoPaD#Aa+9Thdjr^?c!Rm zd+L48(+PM55nZ#`>laDoAVlLUXKyJl;Rm?x@Vv6HMm5<-R6-Z-qq1C{(`EqabpBzG zj;4V!x`7^=;;cYNpRy+iPV>rQAJl)AhcD--7r9MjgEiiV#SR|%E*YZcCryW8uK0m8 zL*X&^7In#HoVp*5gKHN+#O5c>>55A?ba%a_dj$xtqeA|)Js2dMKsh{lLDK@0m9lYa zWh*#0TQ2T27j^N`(t+eEfPUoBbvH_Kxa-u1jcNIe2YA^XT=1{3*Wd)}tKRN&dun&* znJX0Gvn8K!-%j#7%+r_|9qIlzn!o^G{q2MJxsdbiTZx3rG2xVS7HXrp5s;0PD>=hY zBl<_TAVt^N>MxbO(@<=MbHrHR=MZIY*8L>tB_Jja#yQoQZ2U!66gIECXOtndOORap zIR~TG$;oHLIJfQd#!j_3_Qvmx`fn3O*zC1bYC_$3%GfsjXN1z3asw+xTs!lK0I3p~ z7+&tcZUsM&QuO)Rahedf=&&)d1_C6zma`x{C50fHF?zDa=ZblEB;H@x_ z*db{M-tS}6{hx>Au=h4<8bWA8WETt$$|~;BYStwE1pYq48aKuv)4zT2-le|_1FnV@ z&z3AIiy5J{V@~m(2Aps_b7@uMmeTM}Zrs1Cl&)1e*ht|I zj+H9o<}yH3ZLHkB*F?)hWh$+em0HTThaoLx6FA4~msa-#wQzbyJ7ZmQjr#_R2ho^; z^_`?dw}hUR_w8a@8*K8J-lhK2Ot+y`>+{`n0h_lu{26PzN8ov0&f4B@R&y6%I6s2# zaHh%b232N&`aa6F5}eHI$b&SYPEgsOw5r$FS9yGwbRGzrIvbyEgZ9&nFxs0*_O>EKspQWU0tWeX06p%_D|(!O+TmLQ=`cGc+aR*yqXicgOVfS-31*Vth9=M<`>TD z2ecu1@-;8F3cm{pGegNysh5>XjRo{+T&Ak)F?qQ`lGeFVEKm{O*Fh^hd&!`$*H zo5Oc&)hGQS+5HxkD6FQ8nebel#;ty}aAw`K(xh8I_#=)-z$e>p3&-I@Xi7DsewFYp z$O_YrvYr1N$2_XK@wwpD36YvYlkAWY{ImJ=ap?zi$l%xZ*=IqNes{oGZ_d&RUp#M>B0_e>rGRlDA!;QcB^(S{BAOFH9!5r^ucGvwr7zaBu z0nl8=Q**gw{nD9@q{NiDSWk(V7^!=lJ2pWMJjM<6vo&=apq;2<=R}w*8Y1=kz=PCQ z%)%vAD1wFG6WryVg@``Sirh@k%N803_$(=+!8Mvb9?1T!G85NtuNdZnEQyu#A?w`B z)F3b>f5ji+x}KM|Tj2^Y*G*7{b`Tfi5Vo1I10v&)jAXu~zp&^l9_6zJNyTM-8Umo1 z9&95H=Jn67@b=o@EulLxhu9I5NUWA}RT~7aM&6p*w#;#@t_WkoM=N611DP@^AO(5% z_O)wI8+=$Zu|&6GLOI$LM?5!R9z_jmV}oTTbo5w#im;QnduH`c$N zW{BAB52R%1;Rn5cODK_%Sd9)aoctB9zxfjVQ>(H0D(}uy@LHYyAgK3g(>S9( zPtYyFU)v324BQ;?fy(SYzzu)I?S5X)C%oy!_vo35qBl@iLxXeO0=c!$`taf&-nWfH z&;kAR#ny=d^p!J#(|f-;_JYU39P352-lqenf}$VP>n~VNP4fO z7WIbrhM-BLcG@K6C#AME+0)ar)&j3)4d;NqqtG&xvMIB$;{YjyD%@TxXDz(Gn^~Q$ z`{|#$49R1=uT?+cj-swXngY48cUNapbLV7E{z3w$^>d9@EA@w>HM^RNCa!C{AQXMm zpS_ccdl>Gl@TvUqk0?XIXoR{14Qy=kig!<*wYyEI!{IFM!!y{06q1<;ELY*y*mjQT zv-b*OcY}^&CpfUnzo^;VokcN($`aoxgOa2-iM%AbK5g=>;P?fEw9oVMKLygeXnM7D zPtexNCH+(J;~KzQ96%ZTw*j@q*9|u=z0Y-$-X6>%8rAx{yN1?B`D^BfVA-Q>P-Zwe z;|%7ZvMvfrLx6PA)1366l#K`VLUj=^JQGKQr;$;%1P{A3+amuyFpQjUjaj|r5k8@8&dKiV2D0a28K5jva= zscr^-stsDrbQN`~3V1XeM345Wu`L|$V2`1Pl`51 z!sHL}P{WSZ@>@dt0qCwF@)>_sDDUL@v?vgBJUvVtqIV{pdh9z%PiKh$SX?-VD2}@Z6HA6- zt@V4EnoebJo&k^RU@I_2;opR+}*c)nrCI`yn@ErJWz96(SbIVk1>cE!Tka7+3`tF#7q&mOS z`(vja3j^a6Q^nJG3SpdQm0wa<72`6^6xx!7k=(pVAT$qCygHU&2G^*HUT}^RwjJNp zVjsZ-`}x>d3-MAWGZ5r%sw4F*$o{=syLAd8Mu?DV4DF|;2*Jox zqVL%1j1#^%=iX>tz6Qjk3TO);M&rXtl%qgk9grE3>4MXk7Whlg72rmd9g!l$_+3&E z6*h-nCMPb4^T8$kZueK9(P+4T=;!doMXH%k2WDZ$>{4(7lz{?r+!{D2KSt$CV(H_H z09z`;*W-{JA{4V`;ct6^**HAhq-p$yC!Fv{xUAPqWOUMqgwdVO=ShY%=Zt@BDuAe`?$w6~HWQL{`llqWf6s}0s*z#HS;O3a z=ILyMmZ&A@kv(0D+vYjR5o^0XD5avMI0e%)%4(QMuouS5z3U;m`;cPc?0(9-y@U!e z8`cw(kspE<f=vKG@{6#xOuWYLU46A_{#wSGt9nrgw})%Z22yb0fhbwJaqq)%z$PaC_= z3ox7-F_lzT^9!i(CE6 zW<2&Wf2a{(QsxusH!M~2vW)|^uKs)OZ zmI^}fUwIueqDYM}Hp_|Vp>A79nJ8^LR5d1S;Q>w#hmAWb#T`r4AJ~Xv;6gnE-j*Qk zwNw7#)xPg>g$s)62xcF_l*sdm^_NrVX|dvZ&p>qY=srP47z1ewBWITjEe65;a(0E< zsKF5<#?0SAwMHrOG^N5~-08VWNK!`W|E7Jofg`@;V9vxN`V(KMQ7OQ50~f_DqPJi8 z6s(d7BHK|74FG*y=+P~=U{op#TT^k#OBsmpmz7R(n`tLDrm9z&lDKlR$rc{n&Wy_f}H^^xUb{sfU=4ICbJ`(9&;3Z3fCy0rvgB9M zYXJOzI!BVShvjpSRe=NmGVk>cdV`Q015u&=ITQ3#Gp7D;WU9-#Ty@{_tVkMAQNqTD z89X_&nz0hLSxzu+{iZ?fqt!=1tl;^;blU*(sJlZHnmNqp<|A?O8Yqeq>aY}@n1 zBd&ihKHMSw8p9mpUE#S1BM;d0J46}4d<00ZkaWga7oyiz?n2O$_km?HNrL+#l7`D1 zDt>O(bK^#^beJ$Dp;k3Q)+J?E0B-A4flwH2y@}{?;{_nm@P%QMps2J z#`ilc^%ORDrR0HkSAcEzL6MbEuv|s7a0Ar)gMbJT(!}yXkC_|qfJI;E22Fs6`>U2+ zV1&^n-1Dqhq~VvMo!jd|vkg^x@GPMw8SrLWQvGe4@@)xUShf-uDZ8HkE!_>b4{dqT z8096-(q!Ru;Ij<5@|jEX&B4JzS5AqWVG4h+OLc;we*kqEFMhlePe?Xo(mzk0QTAQb zpD2r0t+lznomct39G}wZEMuz0)=dgp3T>?BPsHbx^CB%dqpOboI~ogTn`N9K1hy>{ zDBae4+0e=;4Ed>107Xpg6!O@x>V~|>YdDrp^;g9CF{RNew0I&FVx}{X5%+2=zXe{D z)DMs9SjWl*_A?z_0KcjSCKJ!NP8N(+BX78sW+x%34{ePG(M^UYj%THt zxZ8TL#-|J$Ui@6z9;Yh}Z!tM%V>jJuIJ-?8kmCLBd^|wCgTzGsD_kLyfTJg|Cs%`+8tvvjHT@<@+c88YVruAnGHq;4A%KT z`@dcO=c%}~pTNFPbF|rymrfuW8#gW8GRQQEe8)QF8oAyYmLo%Jv;Y=7EHouB zJQ=5|h)@1}F#B{wX3e#`0jf@ocdnZ;E$5xtwD??6V3z;dPTQBe^HZq-b%{6VCF=FR zL>xf=$+cR=ko_y>!X9j&oZEAcOX#tMNcb;(xuU}kDM|P5mmN<5;map=HhG=w$|}(w z4F*XeZGLzBif3-phMaoKI`4adR)>&}aCKzXy<-RDAU(u_f-$(-Omb^%F>+tQyUWY- z98G`O5ncSRfQ;n3q=LbzbJNk}=XZs1__J63e;DEaOA!A=p#VP2rE}oOH-BMvLgYtc zoAcvckXV;~6fXD|`?DPrCnsupBsl^pc!s>84G60AQrQAUv~pvfJVGH*F3yd1!r-1e zi9&~F;796Dg(Wi1n4+u~#KD>ECTCUiM{t=D!kwPLM7V~k{HGdYq%u(>bX=z9#R zge?YcYjBNZvw0!CXZ)E}yiN$;?-`_vV=weI@%t6E>KQw$qZo?yP7%!-7D}&J;Rd^y z2L}gPL)GDF%_S8P%|t6;LU)8(vhxC{bue%1KQGKL{}`1SxM@5h3BqQW$1UJ=iHVKX z!>q&nVn}oCqRUI42H5o?zjm^4 zhTv#NSZ?tF^7J6}Ds4Id@g55ZMz$AERk7!_lo<;SCuZW33@e=0gl8*tD>!a0k^q_ViXjTmlOQizar{@TPjZ$e(u*)b zl&+l8$FXO3_IyDUh_4-QR3im{;hkU zv{vzd6YBp_9?y3`R?m*xel6XQdQ-D~W%obNJ?_u(^o)Wn2nbCAm5RjF3^UlDjNKOR z{-zm);7^zU^uJ~aeK0&5K7A zk!1|bDtR`F7u}LdQL>XuAiOL)$^!>_q!Rx_qE{et)MEwb@S{@W`+Z4Aw2az8N7*;j z28~WHm*L2qk_1^vZ{qCssnc0&vsCg(7oWohyP@9E!SL}lGkp5Mol&OL@SQWG!*9BR z0qAh(zMth9KCDMQT!@!?YhIMqNDF_IM(>}Gi}a7@vu~0@GO=V5?Pk#Sqt{UE%}PuM{~;(=J78A zSrs-=fTfW`08-7aQ5oi{Ll4And$a}6a7%A+l1f{j62K2!xMxo-1)`o$Id8iOER0N* zxIDeb$xtGU)+USD=qHDg(Y`X~J68tf`TqIO_Tn$%1NaeiYTKadL_2eajT1&)NB+^q2@D9b{MUY_>TNQpZi%SO_bqXjyXHB;Ui$Sf9@s+j;Wb z{id0A9C(t~>E@^vPF(@ScmscJxOc7zNXd^Oh>_aW(3u(xR)buk9$q9y|pmKaV!1QFxCztuHO}!PY}!G@y49mJ z0cZk6!rr+O$%3(;B?-}K84!e8{>9v~L;P_$0eQ4}M1oXBfsT{~ZTR)Ko%2eWMnbKn zb5q1ekkgw_RUy#!uXEEL9eB2&?El4NCZmw3r1hMX#a}lk-dBMCPR4OgqRj$-M;-^< hjOQhwL*8E5RB0mfPrR|R-jC_QfTWeADkby-{tw&r+hqU% literal 0 HcmV?d00001 diff --git a/public/images/admin/fancybox/fancy_nav_left.png b/public/images/admin/fancybox/fancy_nav_left.png new file mode 100644 index 0000000000000000000000000000000000000000..ebaa6a4fd34e51575a01da366312c20618985cbc GIT binary patch literal 1446 zcmV;X1zGxuP)R`@usIzf?P{x4#0gFqr~|(;IJySuwjr=+Ar78e&sHZ(Lu;P)*wKU%|U#jmpg5~Q6= zNl8{#mZGz>Q!_F$qJ8n=#Z9x>Jn_n|ZEtTsSzllOW_Wn`!@Rt_=!l4jAl`tKb-5%L zv7js_CMF<1KR>Fcr{|nbr~AR4Y-MG|y0EZdwI6@^^5yrikSZ}TQ5hH*C?{R4Q{?KT zKD6U2SFWfB2M0g0TCEGD5GUP%Y0a>J0W!M1fVuVU?d@ix(YV91PjUK7@OzY8E)OJ~ z&Q30n%8njA8kC)#t?uvd&xMXHQZzI)WQmTB-n1vQM_gQ-{_*3-7UA?*_bJ9=m|W(F zT+IHE$H&L3T3T8zSS*%BTHM>)YZi;eI#;9uNVch|X-go#ckf=VQmKq2-ORBYaGo52 zejyg&!SS;_ltMX3~N9_#ORsfn&tMTp}T$j*yAd)6-A(_4O6g z0=-^ug|9bVkxorbSsNQ0x9sPG&EF`laq6qgf=!d ztnQGKnVtDqz_Vx1Y=Kr=TU+Vx?;nS;5H`1m#Lv%9fqI)#T3Y%!3C+yRSpE-E!h;77 zwm7Z1{&Y;%TkkIqz&m9sAKBbnCkzsHry#@vbY{a-wI?zu7 zloV4Q9NtQWLUAT7Ev=G-*4EZ6|HZd^F*!MDB>C#<>PDGN_5sGi_Yq4ZlG7@css!ck z9};wyN`LrygSGPaaLVfqXl2Z+Nkm;ygvo12>(Bf+YwDwC`Hbwy5foiCI>(Z2*F z+nZVe;)K}P*aF#9Y8tUS3{lK|w(!NULrkdP#x17leSb zXU`h&IIwaw4`8eqNV6{>BDOh|vjhZ0E{e&QDDu0Pe|>%Zmb;{dg@s0w$z&rPA0K~+ zu^J$UblaCq5g(ljxEe?Y`8AmFYt-vOfqZ&;+Eh?bV07kp3Z#jN34Zfk3!OW_7k zM!Hz%fopN!Lja&lI}y+lIZjBszTeT&@!Ra|?DQ)q4Us*EN5ey8M=zh0NVTlX;X`2G z(+8kuN)-Dfn@v@Ns?$arfE9ks%*_0?uCDGc0&cYN@bK_KngiO{r&oDx0_$@6^x5~= zW5Gx^5k=$2z;)mYpdQiR47B2ZEBzOVMD;v(on_N_Z6xdRarMj=Ped`)=n zv4Dh?$k=SYcJSdjDa(58`F?t%ZzxBbaRs;9zaA#)un(S!5dZ)H07*qoM6N<$g4RXF AD*ylh literal 0 HcmV?d00001 diff --git a/public/images/admin/fancybox/fancy_nav_right.png b/public/images/admin/fancybox/fancy_nav_right.png new file mode 100644 index 0000000000000000000000000000000000000000..873294e969db9160f5ddd4e1ab498ff60b080e3f GIT binary patch literal 1454 zcmV;f1yTBmP)Wa6`&Z+!IVkxf`V#(j>y7#5eg z5*PD+C=wGBwT+F9xi*_^fd=>X_FBba@wz8b0c3ma+OG#c&LYnSBp_4S(*6BG8m#QpsI))yBSw}|WBy?ft)>pk?VIMu|0u-xC@UxO$< zHa9o-0~vR8bXeVyB61x;@W6T@vgyO$TgWvPslhu zJ>BGvFeN3$D2UT9wO!c-2M2E;RvddB6cm(&J}nRg`1!DUaA;_#J})n?kc`&W*6f~w z$XoI8@o`6>)z;Ql1O^7iqc4Qr?IQ^Y2vDQmrd_^#`AagIo}RXO6Tw=o)=2K&OZ?8A zJDVKcH{^2p2j~ms)bf#Ff5Y^8{ZZ7~8Zw%koV0nHJ||9`FbS!%u(0sL`TfAafI}Du zN;}#qfQDkqhr?T=R;!O@W@c89(aOq-SHe5pO)Do4INRL6f8R{+tE;Q)Wir`E=nLN^ zERjf#VBjT`yZ^}0T`IW~brs!I17PDwDHNtJpz(@u7&_Ci&*x`nXGh4eva-_hHlhTo z>wKX6jrLg})!Ef*2q(qH#unh5y~V~`*!#E25W2>+0$@y%jAkE;d^% z7KiBQ=;#CV)c|?K?OZZNymTtyIv@+;=i$b0QLhID@u{gPOF=<_+1^cd)FbceJt|Pr3Z2#UW)pC9hbbpr%#_w3xu>9DucKZSqKjwKC}oa!!=;B zxw)ARh3h~maWUsB$KtMw06>R!GGHKatdM5?eS3TRA2TyEQ!m{-s9LkQG(13d^zuqc z)WBRWF9N%+J^)=)qIgeo*i|*CI?Xfzc;V-hCr|!<<;s9veooizpgD1ug<#0dV!Z literal 0 HcmV?d00001 diff --git a/public/images/admin/fancybox/fancy_shadow_e.png b/public/images/admin/fancybox/fancy_shadow_e.png new file mode 100644 index 0000000000000000000000000000000000000000..2eda0893649371f8d92b92976d8542cdd1b601ed GIT binary patch literal 107 zcmeAS@N?(olHy`uVBq!ia0vp^B0$W@!3HGnP3ltxQbwLGjv*Y^lSRZuwe#}JO|p{EaWGAM`~zK|Yh zF7SQ+m+Ig>B0@o-N8?trihfzZ+Vp1~`{zf0o*#X0$hUAi%N$P)W1wCJ22WQ%mvv4F FO#q)zAp-ya literal 0 HcmV?d00001 diff --git a/public/images/admin/fancybox/fancy_shadow_ne.png b/public/images/admin/fancybox/fancy_shadow_ne.png new file mode 100644 index 0000000000000000000000000000000000000000..79f6980a3ba5c43de120d963dbba2516b8f27ac7 GIT binary patch literal 347 zcmV-h0i^zkP)dR9Yb&V8f!h)aDezHAsc|y@|hdQ zYJb}?8~~zFbQ)ku!Ey)KSukutuvdZ@MKMX|x|A3tPyx?YVhN^6z!Mi4Mj2f#%<;nh z2{>?YAzu|{u^;Oq!;f7Z4tPBpJEmZ+^GZ#$=9nz(K+UmK7}|u&EPi%aRt_C3qOFB_ zHc`~N>51%{?ijG?xsHt>MwRChgk=x_z0gh3O2xSL)-6?+2LKZL74~Q>MZjWtwukkA tvjRC=&j+0R$&bLyT7MhBcTXDISHC&xXU0&5CWHV0002ovPDHLkV1fX+la~Mh literal 0 HcmV?d00001 diff --git a/public/images/admin/fancybox/fancy_shadow_nw.png b/public/images/admin/fancybox/fancy_shadow_nw.png new file mode 100644 index 0000000000000000000000000000000000000000..7182cd938ae98e7e28c65a0bc55df576042ff9f5 GIT binary patch literal 324 zcmV-K0lWT*P)2-&4CO{qhKP$XKD&mgeXEM77>~`RA}h@U^Z##eQZVtM>a-K?QT4 z&(8BFf(rD5V61)2I__wHYuRwoaDIqw5Vdr_JSDVr){#J@r;{vbDL|tRyCiirf~4OF zX-l=Ecm>@yR)1nSMt~dy90Zb`^`)TQbhf8jR@fA!l6V$musRyB9Y{p$SCW}!$3==V zk)fW)Xo{s^ez$t+XhmZj;ts)!kTokvmM>z)zt70000 literal 0 HcmV?d00001 diff --git a/public/images/admin/fancybox/fancy_shadow_se.png b/public/images/admin/fancybox/fancy_shadow_se.png new file mode 100644 index 0000000000000000000000000000000000000000..541e3ffd3e88224b34a4d2097c66a780e6060aeb GIT binary patch literal 352 zcmV-m0iXVfP){pM9=`y8<_IvWD02WY@RZ<9dgjNmAB|sYF}Xw>7Sq@O0000eMf9z;FC21=)67q_`W0*0KnS4AR00W2`RGn3i8UfsEegLO@ zPhds?2e1Tm)FK3=bymIAx?X=YFo3Mdh7W?@I#8s#svp!&PB> zwah@Ngd|l0N4SCfzvjtQnd$dZ0yM)N$X+lqdtN!Pt{Wn*_`0U}m1^#r1 mwpaW{;a?9KKt^WrpTAEd?0j1W(3L*`0000P{ho=rRL|66mGO)=r*Hk83F#~lnc)I$ztaD0e0sy?& B8X5oq literal 0 HcmV?d00001 diff --git a/public/images/admin/fancybox/fancy_title_left.png b/public/images/admin/fancybox/fancy_title_left.png new file mode 100644 index 0000000000000000000000000000000000000000..6049223d1ec6af46e100499c01f6489c9e2c6240 GIT binary patch literal 503 zcmV+)0005LNklqcp9&~$uJw{{rUub~E?-XJ#Upm4Fe%-Gl z!u%tb0N102a|s5;SPlQvJlFCTBbvYaK@wIW6Gjx@?i20AlVDJcHNfh25WRlbF6CIq zv9_ZnqOH`}ppaUR0@%ZcM9zpDt2uQM>f+Z#wIMmyuui3DeoYXWE|hQ{D$te=Yhgkq zIvyj+$t8T|S1wITzUftNOe(E+Qjn$kDotY;I5}1lRgwi=?K26ke)djLR5W2|!7CVH zJ-`tuAq|`lK978y+CnqGNCkUke_%Gig ukvFM-ftpWh!il7Wg7kz7Y?7xB@G*olNlgoj4E_Yv!rmdKI;Vst0Ha3^zyJUM literal 0 HcmV?d00001 diff --git a/public/images/admin/fancybox/fancy_title_right.png b/public/images/admin/fancybox/fancy_title_right.png new file mode 100644 index 0000000000000000000000000000000000000000..e36d9db2a7c6e570aec993d3665cbc13620115e2 GIT binary patch literal 506 zcmV+)0005ONklxjQB-g>5=x46nGBwseihc$zfzvTFh(=tCRj6cJ4M&ASrCAq-HbokPnRBAHVa2(-|l wYU(UxfYLN;K{slJ*G&3>>u+mABlACnJzLDTX_`*G$*cot89%W{AUA^13f>LH;@v@20 z*k^;I{qmZeovq=uO%7HuK)l>$A_9~ zh~UD%_EfI;W_rk=o^4fL*<~KbW8|dR+-Jcsn4%n~5u$E040 zaZV}rz?XCfKt~$SN*Y+Ke#KJMPJxPe018%k*%SaZf1aZ;Fl9Z^vc|r*!kM)^F}-T0 zOwVY_Hd3ekn+Ilobdmm@Sg7m4Dk|6-a#9qyXs#u$vqw11kl#|>QmZU@K3C(GTyeHd z!xL%CxAVJ`B!F&ys{X;K(Dqn^hfzUwT*(h%>Q5!noKgZUJ$(Mcn%0cg`plK4u?Alp z^a?;L;MDJ*LJ@hN)w&xSnl~eFLfpg=Tn10w4_M4=&4u+*e|nQR*|U^+ zwzgcNFY$%b!z)?>Mr|YWgXWPl5{@nVuCx4II8zH36;X{(_v^{(wpHn@#M?jER>`Zg z>yG{8Oi7;273Gg4-m2-ZZ3BwBzf0ZyzLoxSrLUQ4eY$s+jHQcE< zzHx}2!uB?A)HUs$KWXSQy&kxJb*%$-Zj04e&=qF;uCXcIBK>>Q2AX+4ia+0yIdFXt0#G=scM(E93H;DTZ^w; zbngMR0l64+p6>zNAGm0nU9oH6+H?axFHT-@aQ9 zxO$;sFQ-iBE+^K}AxrW8=fvRR_xfoz3nrTMsUA)%mcsYqZ_aTVUCf6ANVziX3q+WJ zNLQo6*#z(CT9;+q_GIYwl5vlAVWLGV`7N;g(s;^UfK6nFC>udw+4`d_(H!Ayr8#d- zV>LP8{_F)Lo8Dn^{PjatBF>QZv7{qAjbW#cJMWxeO(ffMo>-w}%7Am@*GZFB|H&PS z$A5_;%qYdn++GSk@?bdrk6bRK+&_u^2cJf3(WRsZ zpsRlFq-NdI*}}oIGVYk~Qqlw_@}iEvFEX9{^XSTnt_^3*TJxV*_oZV~r;ES-CXl1J z79GNW|K#9|IRlODy5PgYox8+1GDoSoM!CoA*Tp(H| zjMhjPW7nygBFs6%P`Zm>$1g!$H2Vo7NumZ=H88{7(U?TO`_nGQ?KHJYD#*mESu4W{ zLw%&CHW<^7eY7c2jLFXorFUy`23Yo>Ci#q4Wd#q&nEyOL!F8eG=n^9NGlquqyAl*kS8|>OuQPRz%vhFrD?VIL+RyzF4@KSX_ z#wL6H9XhkES3?yHQN7JjH5OXLq4^5#0W5##N!S+fs=HC)OF#64x7)6ch-^VazGM6q zEW)_s{Qe?qJh?uht5WHKT*OzBXerJZE5bKXSozjE(@(z!ULC8Us{H&lry$(Bi!G}z zwUwpz^>yvv;y5}d=gF;FfP1ZdkvH!c>l+tCb^8uq(fbt(T_jP3SJX0vI`-z+G>Lm4 z8|UEap}Ttv*jTcpsYjP8Rgw|5~1j~bu|Ih}Iy%0D+u zn6D>hmyDPr6EvMkTN?lBM@gx9=JGQUr1{0KKr8La4h=0V9`L(e5+bcQ&X)ZoaMvI! zbqvNnCC{#;>ZNQdr@g#^T)?TZ!M$*pe_pv$p+hAc7NDIpR!r-{;WrL1ZHVxXt3cEP zR67jNu@zvxnP5i)Aa+xoU051pTe>P3>voY=s8$lP{chgZ#y`f&sas^g^Do|Y{JriT z>tV_g+_VmT2R_|-KNF0E$dEzpf?${+m+Tyo0vz1t zD8_H{MEC}&G!VUjSp?;&Mf=Z)7I9Rs>q@F_+Hh)rK(AmW{X+^j~dslS~g)2+wRy(qoPS zgw!lid*TBgh(5yGLrertM;ZwU1J8+tTdT3Y8{VIN08vXcvKeeq|8%twT0hqo&D2XI z_(OOtXUyRR7-90-mBa92SYz>jaH;mG*)g{UmOO##p&#O2H1BuDx0^IQ_b;qo-}@h$BBMNF?A0T zyJR_&b+s943LH2fb=07lgy@{Zi$3FeBahC8PAtMV)cG8|%TCpYvV=sltusV{19eA*a5pa+>MA zbDc2c_UX6A_)QqvvTn1{%CS3jMB4^e{Z#b3g;3_ff-IHgmu2X?TVry|9Ag3@vfjT_ zTDc5B$^Bl#bJ4MMu9lEEqvLHhWo)tug@KRv?4T+Ln(;)DyZ;Sxf&F1*yu#*scAGxW zeUCP3x4df>`xANr`3i2|vwXOQH&vucJh8_BwO3n}rB9rMAdaER!R`l&Qy()pfysH!v$C+~7+hnA`n%xTc-Qg<?onQ&wnA>?&NBuQq(i-Y>~)i*Y&4Ll@zFqQ2oFn>Gpz*Cri7ME)Iys zFz3sHJm9?m;Cc*aaKE%Pc=yyfG)dZ*Z`l~X5)QXOw0$k=FWS3tx-{S6G90xdK~u?j zEOes|NOmIS2$d7mt!!*}cCVcXpKXW>?4~Ak(ma<}Y8S2qv_M8CJtlMd?^4?a zh~NHIcLsXnRP=V9mCd@J+jgIgJ?N0O;9r$#G)wK%sv???nbFI4V<|X_Z}!%u5}D>d z{i2Vb75VJ*LQh!b%j%rrW{v|5kNiWhB~OIdM~^r_%;_~SUiG8s9RON2IvbV`;YnzN zH+H^0b-#S3zM88kzkf~YYdq@w*e#sXq#se|w?FcDpMQMxxIdj%{%QW*@ql9~F&2$T z7CS0Mi)qXJ2Z`$zEtGb>n@;<3a!bFREbmpXf#QyOT;Zf1aYmA{gEjqK9&dA#Zkv3M zwX_#`l3(@%18v({$_k~B`_vr@k+2Oh?OpL!Vkzk^m7;`AV|q8&V@7fwVd5L$>(d^GI})g8 z)hJGg?0~}qFfsW@(_i5I93NU%3f6P=i15hsM*!*>`#O3h4T~nqM;&HA@1iotoomMt zst0l_rAtGSVX^ulg4JBO(Ra8oQ{$qMkRNw5d--ayWu5i@*Q2Qnk!hRGce(|w&|I}! zq13jcKekIdQxU5be`hL`kx$fSgdBh!hjZDFdB3vcy=k7z>5ADS3q`=ELFmx)bKI1< zv~5jWDWgIJf{Mq&`BeO}?qXOMT=Bb}%@AiKCz7ABJNf|ox;Utbrd|H9J@%cgKBHKyYU9J>;amY->_(^+;HP%Zp zf~t{t;={qAj$gA-G6e6-?=sC`S&Z&pn=d;WQPo%4Lp~PN^$z>H4Q7uJtCw;ljWQGK z@%w=&nc5<1$3gW@%8RDQw$mWerBKy%(l)ch?-Lc=j_m;jm-Z~OAYRN%AU(=QYZa5K znX#@GWYI>40L;s$=+>ZHGm%phJ^}&Wb_}|OA^Zc4fa{M>IA3Ll64qq>I?Y;kUn_;Y zxUUF`(MpJcUm76|3X~o%!Ge-%=-=BBf z)C9bZg{^Pg(>g22tY%13F9Tx`z_NAd0;3Ue$B1I??SP-&OGzMAScyaQoXgc6K5Ty& z&-!p=qTx<^*y=_@u%tMd9wBzed;f-vBld20o~c*iGfx!(?mdER6$^9A%!5PL`G}JC z>xn@03FS$Mb;Ik__6-^Rfn+(&uVjj~wa@1!j#7#3QHx>pBOSLAnNYP-;vL0g(s+c$ zi2;5ZXws8F+_UC}^K8zfg&XpH(u~`!l|+t#Lz%g0qPbVCZ!KK;7Atd(^9b;*Op*=H zZud9}%!6*L>~Ho-epFZ$hO=tG;|Ua)I2*(I7Ecch->mp8|6w>*qu~2TH+k}mRc9Sw z;w^YhUy5=GfaVwY6u!C84%hCB?T?LwdClRxmiiNZNq#5@^2$U2k0!nuWHWP2^e331 zz4!XHJIcPkwqkMly{IPes^;~>G$Yxt{Iow^ z`VxSi##qd~*eute-u=@n`t$dcRLRo;mG=WS=4@O$thU0R7tjnCmEolE{_S@9Q*Bj4s{Hb5Ee%@no{N*5DS zzF@(X*H3ttA$#5Fuz_@pPfU(nq>tA(XA)nCm{+U6qecFb^Uu*yZC!G5yAO@1&?i@E z?Vo^z6Ox1tQ60zU>h+Hnnh(i$F8~^cQ(ynPK7M8%I=|msAtNmfaSH5P*eFjdtexCc zJiXYDdpjD&bn6O8ci4(q(P74D5P|=KT)=O_w9+W!Srs`yvfE9rO-1){i=j.data;i.beforeFilter&&i.beforeFilter[a.type]&&!i.beforeFilter[a.type](a)||f.push(j.selector)}else delete x[o]}i=c(a.target).closest(f, +a.currentTarget);m=0;for(s=i.length;m)[^>]*$|^#([\w-]+)$/,Qa=/^.[^:#\[\.,]*$/,Ra=/\S/,Sa=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,Ta=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,O=navigator.userAgent, +va=false,P=[],L,$=Object.prototype.toString,aa=Object.prototype.hasOwnProperty,ba=Array.prototype.push,Q=Array.prototype.slice,wa=Array.prototype.indexOf;c.fn=c.prototype={init:function(a,b){var d,f;if(!a)return this;if(a.nodeType){this.context=this[0]=a;this.length=1;return this}if(typeof a==="string")if((d=Pa.exec(a))&&(d[1]||!b))if(d[1]){f=b?b.ownerDocument||b:r;if(a=Ta.exec(a))if(c.isPlainObject(b)){a=[r.createElement(a[1])];c.fn.attr.call(a,b,true)}else a=[f.createElement(a[1])];else{a=ra([d[1]], +[f]);a=(a.cacheable?a.fragment.cloneNode(true):a.fragment).childNodes}}else{if(b=r.getElementById(d[2])){if(b.id!==d[2])return S.find(a);this.length=1;this[0]=b}this.context=r;this.selector=a;return this}else if(!b&&/^\w+$/.test(a)){this.selector=a;this.context=r;a=r.getElementsByTagName(a)}else return!b||b.jquery?(b||S).find(a):c(b).find(a);else if(c.isFunction(a))return S.ready(a);if(a.selector!==v){this.selector=a.selector;this.context=a.context}return c.isArray(a)?this.setArray(a):c.makeArray(a, +this)},selector:"",jquery:"1.4.1",length:0,size:function(){return this.length},toArray:function(){return Q.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this.slice(a)[0]:this[a]},pushStack:function(a,b,d){a=c(a||null);a.prevObject=this;a.context=this.context;if(b==="find")a.selector=this.selector+(this.selector?" ":"")+d;else if(b)a.selector=this.selector+"."+b+"("+d+")";return a},setArray:function(a){this.length=0;ba.apply(this,a);return this},each:function(a,b){return c.each(this, +a,b)},ready:function(a){c.bindReady();if(c.isReady)a.call(r,c);else P&&P.push(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(Q.apply(this,arguments),"slice",Q.call(arguments).join(","))},map:function(a){return this.pushStack(c.map(this,function(b,d){return a.call(b,d,b)}))},end:function(){return this.prevObject||c(null)},push:ba,sort:[].sort,splice:[].splice}; +c.fn.init.prototype=c.fn;c.extend=c.fn.extend=function(){var a=arguments[0]||{},b=1,d=arguments.length,f=false,e,i,j,n;if(typeof a==="boolean"){f=a;a=arguments[1]||{};b=2}if(typeof a!=="object"&&!c.isFunction(a))a={};if(d===b){a=this;--b}for(;b
a";var e=d.getElementsByTagName("*"),i=d.getElementsByTagName("a")[0];if(!(!e||!e.length||!i)){c.support= +{leadingWhitespace:d.firstChild.nodeType===3,tbody:!d.getElementsByTagName("tbody").length,htmlSerialize:!!d.getElementsByTagName("link").length,style:/red/.test(i.getAttribute("style")),hrefNormalized:i.getAttribute("href")==="/a",opacity:/^0.55$/.test(i.style.opacity),cssFloat:!!i.style.cssFloat,checkOn:d.getElementsByTagName("input")[0].value==="on",optSelected:r.createElement("select").appendChild(r.createElement("option")).selected,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null}; +b.type="text/javascript";try{b.appendChild(r.createTextNode("window."+f+"=1;"))}catch(j){}a.insertBefore(b,a.firstChild);if(z[f]){c.support.scriptEval=true;delete z[f]}a.removeChild(b);if(d.attachEvent&&d.fireEvent){d.attachEvent("onclick",function n(){c.support.noCloneEvent=false;d.detachEvent("onclick",n)});d.cloneNode(true).fireEvent("onclick")}d=r.createElement("div");d.innerHTML="";a=r.createDocumentFragment();a.appendChild(d.firstChild); +c.support.checkClone=a.cloneNode(true).cloneNode(true).lastChild.checked;c(function(){var n=r.createElement("div");n.style.width=n.style.paddingLeft="1px";r.body.appendChild(n);c.boxModel=c.support.boxModel=n.offsetWidth===2;r.body.removeChild(n).style.display="none"});a=function(n){var o=r.createElement("div");n="on"+n;var m=n in o;if(!m){o.setAttribute(n,"return;");m=typeof o[n]==="function"}return m};c.support.submitBubbles=a("submit");c.support.changeBubbles=a("change");a=b=d=e=i=null}})();c.props= +{"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var G="jQuery"+J(),Ua=0,xa={},Va={};c.extend({cache:{},expando:G,noData:{embed:true,object:true,applet:true},data:function(a,b,d){if(!(a.nodeName&&c.noData[a.nodeName.toLowerCase()])){a=a==z?xa:a;var f=a[G],e=c.cache;if(!b&&!f)return null;f||(f=++Ua);if(typeof b==="object"){a[G]=f;e=e[f]=c.extend(true, +{},b)}else e=e[f]?e[f]:typeof d==="undefined"?Va:(e[f]={});if(d!==v){a[G]=f;e[b]=d}return typeof b==="string"?e[b]:e}},removeData:function(a,b){if(!(a.nodeName&&c.noData[a.nodeName.toLowerCase()])){a=a==z?xa:a;var d=a[G],f=c.cache,e=f[d];if(b){if(e){delete e[b];c.isEmptyObject(e)&&c.removeData(a)}}else{try{delete a[G]}catch(i){a.removeAttribute&&a.removeAttribute(G)}delete f[d]}}}});c.fn.extend({data:function(a,b){if(typeof a==="undefined"&&this.length)return c.data(this[0]);else if(typeof a==="object")return this.each(function(){c.data(this, +a)});var d=a.split(".");d[1]=d[1]?"."+d[1]:"";if(b===v){var f=this.triggerHandler("getData"+d[1]+"!",[d[0]]);if(f===v&&this.length)f=c.data(this[0],a);return f===v&&d[1]?this.data(d[0]):f}else return this.trigger("setData"+d[1]+"!",[d[0],b]).each(function(){c.data(this,a,b)})},removeData:function(a){return this.each(function(){c.removeData(this,a)})}});c.extend({queue:function(a,b,d){if(a){b=(b||"fx")+"queue";var f=c.data(a,b);if(!d)return f||[];if(!f||c.isArray(d))f=c.data(a,b,c.makeArray(d));else f.push(d); +return f}},dequeue:function(a,b){b=b||"fx";var d=c.queue(a,b),f=d.shift();if(f==="inprogress")f=d.shift();if(f){b==="fx"&&d.unshift("inprogress");f.call(a,function(){c.dequeue(a,b)})}}});c.fn.extend({queue:function(a,b){if(typeof a!=="string"){b=a;a="fx"}if(b===v)return c.queue(this[0],a);return this.each(function(){var d=c.queue(this,a,b);a==="fx"&&d[0]!=="inprogress"&&c.dequeue(this,a)})},dequeue:function(a){return this.each(function(){c.dequeue(this,a)})},delay:function(a,b){a=c.fx?c.fx.speeds[a]|| +a:a;b=b||"fx";return this.queue(b,function(){var d=this;setTimeout(function(){c.dequeue(d,b)},a)})},clearQueue:function(a){return this.queue(a||"fx",[])}});var ya=/[\n\t]/g,ca=/\s+/,Wa=/\r/g,Xa=/href|src|style/,Ya=/(button|input)/i,Za=/(button|input|object|select|textarea)/i,$a=/^(a|area)$/i,za=/radio|checkbox/;c.fn.extend({attr:function(a,b){return X(this,a,b,true,c.attr)},removeAttr:function(a){return this.each(function(){c.attr(this,a,"");this.nodeType===1&&this.removeAttribute(a)})},addClass:function(a){if(c.isFunction(a))return this.each(function(o){var m= +c(this);m.addClass(a.call(this,o,m.attr("class")))});if(a&&typeof a==="string")for(var b=(a||"").split(ca),d=0,f=this.length;d-1)return true;return false},val:function(a){if(a===v){var b=this[0];if(b){if(c.nodeName(b,"option"))return(b.attributes.value|| +{}).specified?b.value:b.text;if(c.nodeName(b,"select")){var d=b.selectedIndex,f=[],e=b.options;b=b.type==="select-one";if(d<0)return null;var i=b?d:0;for(d=b?d+1:e.length;i=0;else if(c.nodeName(this,"select")){var x=c.makeArray(s);c("option",this).each(function(){this.selected=c.inArray(c(this).val(),x)>=0});if(!x.length)this.selectedIndex=-1}else this.value=s}})}});c.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(a,b,d,f){if(!a||a.nodeType===3||a.nodeType===8)return v;if(f&&b in c.attrFn)return c(a)[b](d); +f=a.nodeType!==1||!c.isXMLDoc(a);var e=d!==v;b=f&&c.props[b]||b;if(a.nodeType===1){var i=Xa.test(b);if(b in a&&f&&!i){if(e){b==="type"&&Ya.test(a.nodeName)&&a.parentNode&&c.error("type property can't be changed");a[b]=d}if(c.nodeName(a,"form")&&a.getAttributeNode(b))return a.getAttributeNode(b).nodeValue;if(b==="tabIndex")return(b=a.getAttributeNode("tabIndex"))&&b.specified?b.value:Za.test(a.nodeName)||$a.test(a.nodeName)&&a.href?0:v;return a[b]}if(!c.support.style&&f&&b==="style"){if(e)a.style.cssText= +""+d;return a.style.cssText}e&&a.setAttribute(b,""+d);a=!c.support.hrefNormalized&&f&&i?a.getAttribute(b,2):a.getAttribute(b);return a===null?v:a}return c.style(a,b,d)}});var ab=function(a){return a.replace(/[^\w\s\.\|`]/g,function(b){return"\\"+b})};c.event={add:function(a,b,d,f){if(!(a.nodeType===3||a.nodeType===8)){if(a.setInterval&&a!==z&&!a.frameElement)a=z;if(!d.guid)d.guid=c.guid++;if(f!==v){d=c.proxy(d);d.data=f}var e=c.data(a,"events")||c.data(a,"events",{}),i=c.data(a,"handle"),j;if(!i){j= +function(){return typeof c!=="undefined"&&!c.event.triggered?c.event.handle.apply(j.elem,arguments):v};i=c.data(a,"handle",j)}if(i){i.elem=a;b=b.split(/\s+/);for(var n,o=0;n=b[o++];){var m=n.split(".");n=m.shift();if(o>1){d=c.proxy(d);if(f!==v)d.data=f}d.type=m.slice(0).sort().join(".");var s=e[n],x=this.special[n]||{};if(!s){s=e[n]={};if(!x.setup||x.setup.call(a,f,m,d)===false)if(a.addEventListener)a.addEventListener(n,i,false);else a.attachEvent&&a.attachEvent("on"+n,i)}if(x.add)if((m=x.add.call(a, +d,f,m,s))&&c.isFunction(m)){m.guid=m.guid||d.guid;m.data=m.data||d.data;m.type=m.type||d.type;d=m}s[d.guid]=d;this.global[n]=true}a=null}}},global:{},remove:function(a,b,d){if(!(a.nodeType===3||a.nodeType===8)){var f=c.data(a,"events"),e,i,j;if(f){if(b===v||typeof b==="string"&&b.charAt(0)===".")for(i in f)this.remove(a,i+(b||""));else{if(b.type){d=b.handler;b=b.type}b=b.split(/\s+/);for(var n=0;i=b[n++];){var o=i.split(".");i=o.shift();var m=!o.length,s=c.map(o.slice(0).sort(),ab);s=new RegExp("(^|\\.)"+ +s.join("\\.(?:.*\\.)?")+"(\\.|$)");var x=this.special[i]||{};if(f[i]){if(d){j=f[i][d.guid];delete f[i][d.guid]}else for(var A in f[i])if(m||s.test(f[i][A].type))delete f[i][A];x.remove&&x.remove.call(a,o,j);for(e in f[i])break;if(!e){if(!x.teardown||x.teardown.call(a,o)===false)if(a.removeEventListener)a.removeEventListener(i,c.data(a,"handle"),false);else a.detachEvent&&a.detachEvent("on"+i,c.data(a,"handle"));e=null;delete f[i]}}}}for(e in f)break;if(!e){if(A=c.data(a,"handle"))A.elem=null;c.removeData(a, +"events");c.removeData(a,"handle")}}}},trigger:function(a,b,d,f){var e=a.type||a;if(!f){a=typeof a==="object"?a[G]?a:c.extend(c.Event(e),a):c.Event(e);if(e.indexOf("!")>=0){a.type=e=e.slice(0,-1);a.exclusive=true}if(!d){a.stopPropagation();this.global[e]&&c.each(c.cache,function(){this.events&&this.events[e]&&c.event.trigger(a,b,this.handle.elem)})}if(!d||d.nodeType===3||d.nodeType===8)return v;a.result=v;a.target=d;b=c.makeArray(b);b.unshift(a)}a.currentTarget=d;(f=c.data(d,"handle"))&&f.apply(d, +b);f=d.parentNode||d.ownerDocument;try{if(!(d&&d.nodeName&&c.noData[d.nodeName.toLowerCase()]))if(d["on"+e]&&d["on"+e].apply(d,b)===false)a.result=false}catch(i){}if(!a.isPropagationStopped()&&f)c.event.trigger(a,b,f,true);else if(!a.isDefaultPrevented()){d=a.target;var j;if(!(c.nodeName(d,"a")&&e==="click")&&!(d&&d.nodeName&&c.noData[d.nodeName.toLowerCase()])){try{if(d[e]){if(j=d["on"+e])d["on"+e]=null;this.triggered=true;d[e]()}}catch(n){}if(j)d["on"+e]=j;this.triggered=false}}},handle:function(a){var b, +d;a=arguments[0]=c.event.fix(a||z.event);a.currentTarget=this;d=a.type.split(".");a.type=d.shift();b=!d.length&&!a.exclusive;var f=new RegExp("(^|\\.)"+d.slice(0).sort().join("\\.(?:.*\\.)?")+"(\\.|$)");d=(c.data(this,"events")||{})[a.type];for(var e in d){var i=d[e];if(b||f.test(i.type)){a.handler=i;a.data=i.data;i=i.apply(this,arguments);if(i!==v){a.result=i;if(i===false){a.preventDefault();a.stopPropagation()}}if(a.isImmediatePropagationStopped())break}}return a.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "), +fix:function(a){if(a[G])return a;var b=a;a=c.Event(b);for(var d=this.props.length,f;d;){f=this.props[--d];a[f]=b[f]}if(!a.target)a.target=a.srcElement||r;if(a.target.nodeType===3)a.target=a.target.parentNode;if(!a.relatedTarget&&a.fromElement)a.relatedTarget=a.fromElement===a.target?a.toElement:a.fromElement;if(a.pageX==null&&a.clientX!=null){b=r.documentElement;d=r.body;a.pageX=a.clientX+(b&&b.scrollLeft||d&&d.scrollLeft||0)-(b&&b.clientLeft||d&&d.clientLeft||0);a.pageY=a.clientY+(b&&b.scrollTop|| +d&&d.scrollTop||0)-(b&&b.clientTop||d&&d.clientTop||0)}if(!a.which&&(a.charCode||a.charCode===0?a.charCode:a.keyCode))a.which=a.charCode||a.keyCode;if(!a.metaKey&&a.ctrlKey)a.metaKey=a.ctrlKey;if(!a.which&&a.button!==v)a.which=a.button&1?1:a.button&2?3:a.button&4?2:0;return a},guid:1E8,proxy:c.proxy,special:{ready:{setup:c.bindReady,teardown:c.noop},live:{add:function(a,b){c.extend(a,b||{});a.guid+=b.selector+b.live;b.liveProxy=a;c.event.add(this,b.live,na,b)},remove:function(a){if(a.length){var b= +0,d=new RegExp("(^|\\.)"+a[0]+"(\\.|$)");c.each(c.data(this,"events").live||{},function(){d.test(this.type)&&b++});b<1&&c.event.remove(this,a[0],na)}},special:{}},beforeunload:{setup:function(a,b,d){if(this.setInterval)this.onbeforeunload=d;return false},teardown:function(a,b){if(this.onbeforeunload===b)this.onbeforeunload=null}}}};c.Event=function(a){if(!this.preventDefault)return new c.Event(a);if(a&&a.type){this.originalEvent=a;this.type=a.type}else this.type=a;this.timeStamp=J();this[G]=true}; +c.Event.prototype={preventDefault:function(){this.isDefaultPrevented=Z;var a=this.originalEvent;if(a){a.preventDefault&&a.preventDefault();a.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=Z;var a=this.originalEvent;if(a){a.stopPropagation&&a.stopPropagation();a.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=Z;this.stopPropagation()},isDefaultPrevented:Y,isPropagationStopped:Y,isImmediatePropagationStopped:Y};var Aa=function(a){for(var b= +a.relatedTarget;b&&b!==this;)try{b=b.parentNode}catch(d){break}if(b!==this){a.type=a.data;c.event.handle.apply(this,arguments)}},Ba=function(a){a.type=a.data;c.event.handle.apply(this,arguments)};c.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){c.event.special[a]={setup:function(d){c.event.add(this,b,d&&d.selector?Ba:Aa,a)},teardown:function(d){c.event.remove(this,b,d&&d.selector?Ba:Aa)}}});if(!c.support.submitBubbles)c.event.special.submit={setup:function(a,b,d){if(this.nodeName.toLowerCase()!== +"form"){c.event.add(this,"click.specialSubmit."+d.guid,function(f){var e=f.target,i=e.type;if((i==="submit"||i==="image")&&c(e).closest("form").length)return ma("submit",this,arguments)});c.event.add(this,"keypress.specialSubmit."+d.guid,function(f){var e=f.target,i=e.type;if((i==="text"||i==="password")&&c(e).closest("form").length&&f.keyCode===13)return ma("submit",this,arguments)})}else return false},remove:function(a,b){c.event.remove(this,"click.specialSubmit"+(b?"."+b.guid:""));c.event.remove(this, +"keypress.specialSubmit"+(b?"."+b.guid:""))}};if(!c.support.changeBubbles){var da=/textarea|input|select/i;function Ca(a){var b=a.type,d=a.value;if(b==="radio"||b==="checkbox")d=a.checked;else if(b==="select-multiple")d=a.selectedIndex>-1?c.map(a.options,function(f){return f.selected}).join("-"):"";else if(a.nodeName.toLowerCase()==="select")d=a.selectedIndex;return d}function ea(a,b){var d=a.target,f,e;if(!(!da.test(d.nodeName)||d.readOnly)){f=c.data(d,"_change_data");e=Ca(d);if(a.type!=="focusout"|| +d.type!=="radio")c.data(d,"_change_data",e);if(!(f===v||e===f))if(f!=null||e){a.type="change";return c.event.trigger(a,b,d)}}}c.event.special.change={filters:{focusout:ea,click:function(a){var b=a.target,d=b.type;if(d==="radio"||d==="checkbox"||b.nodeName.toLowerCase()==="select")return ea.call(this,a)},keydown:function(a){var b=a.target,d=b.type;if(a.keyCode===13&&b.nodeName.toLowerCase()!=="textarea"||a.keyCode===32&&(d==="checkbox"||d==="radio")||d==="select-multiple")return ea.call(this,a)},beforeactivate:function(a){a= +a.target;a.nodeName.toLowerCase()==="input"&&a.type==="radio"&&c.data(a,"_change_data",Ca(a))}},setup:function(a,b,d){for(var f in T)c.event.add(this,f+".specialChange."+d.guid,T[f]);return da.test(this.nodeName)},remove:function(a,b){for(var d in T)c.event.remove(this,d+".specialChange"+(b?"."+b.guid:""),T[d]);return da.test(this.nodeName)}};var T=c.event.special.change.filters}r.addEventListener&&c.each({focus:"focusin",blur:"focusout"},function(a,b){function d(f){f=c.event.fix(f);f.type=b;return c.event.handle.call(this, +f)}c.event.special[b]={setup:function(){this.addEventListener(a,d,true)},teardown:function(){this.removeEventListener(a,d,true)}}});c.each(["bind","one"],function(a,b){c.fn[b]=function(d,f,e){if(typeof d==="object"){for(var i in d)this[b](i,f,d[i],e);return this}if(c.isFunction(f)){e=f;f=v}var j=b==="one"?c.proxy(e,function(n){c(this).unbind(n,j);return e.apply(this,arguments)}):e;return d==="unload"&&b!=="one"?this.one(d,f,e):this.each(function(){c.event.add(this,d,j,f)})}});c.fn.extend({unbind:function(a, +b){if(typeof a==="object"&&!a.preventDefault){for(var d in a)this.unbind(d,a[d]);return this}return this.each(function(){c.event.remove(this,a,b)})},trigger:function(a,b){return this.each(function(){c.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0]){a=c.Event(a);a.preventDefault();a.stopPropagation();c.event.trigger(a,b,this[0]);return a.result}},toggle:function(a){for(var b=arguments,d=1;d0){y=t;break}}t=t[g]}l[q]=y}}}var f=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,e=0,i=Object.prototype.toString,j=false,n=true;[0,0].sort(function(){n=false;return 0});var o=function(g,h,k,l){k=k||[];var q=h=h||r;if(h.nodeType!==1&&h.nodeType!==9)return[];if(!g|| +typeof g!=="string")return k;for(var p=[],u,t,y,R,H=true,M=w(h),I=g;(f.exec(""),u=f.exec(I))!==null;){I=u[3];p.push(u[1]);if(u[2]){R=u[3];break}}if(p.length>1&&s.exec(g))if(p.length===2&&m.relative[p[0]])t=fa(p[0]+p[1],h);else for(t=m.relative[p[0]]?[h]:o(p.shift(),h);p.length;){g=p.shift();if(m.relative[g])g+=p.shift();t=fa(g,t)}else{if(!l&&p.length>1&&h.nodeType===9&&!M&&m.match.ID.test(p[0])&&!m.match.ID.test(p[p.length-1])){u=o.find(p.shift(),h,M);h=u.expr?o.filter(u.expr,u.set)[0]:u.set[0]}if(h){u= +l?{expr:p.pop(),set:A(l)}:o.find(p.pop(),p.length===1&&(p[0]==="~"||p[0]==="+")&&h.parentNode?h.parentNode:h,M);t=u.expr?o.filter(u.expr,u.set):u.set;if(p.length>0)y=A(t);else H=false;for(;p.length;){var D=p.pop();u=D;if(m.relative[D])u=p.pop();else D="";if(u==null)u=h;m.relative[D](y,u,M)}}else y=[]}y||(y=t);y||o.error(D||g);if(i.call(y)==="[object Array]")if(H)if(h&&h.nodeType===1)for(g=0;y[g]!=null;g++){if(y[g]&&(y[g]===true||y[g].nodeType===1&&E(h,y[g])))k.push(t[g])}else for(g=0;y[g]!=null;g++)y[g]&& +y[g].nodeType===1&&k.push(t[g]);else k.push.apply(k,y);else A(y,k);if(R){o(R,q,k,l);o.uniqueSort(k)}return k};o.uniqueSort=function(g){if(C){j=n;g.sort(C);if(j)for(var h=1;h":function(g,h){var k=typeof h==="string";if(k&&!/\W/.test(h)){h=h.toLowerCase();for(var l=0,q=g.length;l=0))k||l.push(u);else if(k)h[p]=false;return false},ID:function(g){return g[1].replace(/\\/g,"")},TAG:function(g){return g[1].toLowerCase()},CHILD:function(g){if(g[1]==="nth"){var h=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(g[2]==="even"&&"2n"||g[2]==="odd"&& +"2n+1"||!/\D/.test(g[2])&&"0n+"+g[2]||g[2]);g[2]=h[1]+(h[2]||1)-0;g[3]=h[3]-0}g[0]=e++;return g},ATTR:function(g,h,k,l,q,p){h=g[1].replace(/\\/g,"");if(!p&&m.attrMap[h])g[1]=m.attrMap[h];if(g[2]==="~=")g[4]=" "+g[4]+" ";return g},PSEUDO:function(g,h,k,l,q){if(g[1]==="not")if((f.exec(g[3])||"").length>1||/^\w/.test(g[3]))g[3]=o(g[3],null,null,h);else{g=o.filter(g[3],h,k,true^q);k||l.push.apply(l,g);return false}else if(m.match.POS.test(g[0])||m.match.CHILD.test(g[0]))return true;return g},POS:function(g){g.unshift(true); +return g}},filters:{enabled:function(g){return g.disabled===false&&g.type!=="hidden"},disabled:function(g){return g.disabled===true},checked:function(g){return g.checked===true},selected:function(g){return g.selected===true},parent:function(g){return!!g.firstChild},empty:function(g){return!g.firstChild},has:function(g,h,k){return!!o(k[3],g).length},header:function(g){return/h\d/i.test(g.nodeName)},text:function(g){return"text"===g.type},radio:function(g){return"radio"===g.type},checkbox:function(g){return"checkbox"=== +g.type},file:function(g){return"file"===g.type},password:function(g){return"password"===g.type},submit:function(g){return"submit"===g.type},image:function(g){return"image"===g.type},reset:function(g){return"reset"===g.type},button:function(g){return"button"===g.type||g.nodeName.toLowerCase()==="button"},input:function(g){return/input|select|textarea|button/i.test(g.nodeName)}},setFilters:{first:function(g,h){return h===0},last:function(g,h,k,l){return h===l.length-1},even:function(g,h){return h%2=== +0},odd:function(g,h){return h%2===1},lt:function(g,h,k){return hk[3]-0},nth:function(g,h,k){return k[3]-0===h},eq:function(g,h,k){return k[3]-0===h}},filter:{PSEUDO:function(g,h,k,l){var q=h[1],p=m.filters[q];if(p)return p(g,k,h,l);else if(q==="contains")return(g.textContent||g.innerText||a([g])||"").indexOf(h[3])>=0;else if(q==="not"){h=h[3];k=0;for(l=h.length;k= +0}},ID:function(g,h){return g.nodeType===1&&g.getAttribute("id")===h},TAG:function(g,h){return h==="*"&&g.nodeType===1||g.nodeName.toLowerCase()===h},CLASS:function(g,h){return(" "+(g.className||g.getAttribute("class"))+" ").indexOf(h)>-1},ATTR:function(g,h){var k=h[1];g=m.attrHandle[k]?m.attrHandle[k](g):g[k]!=null?g[k]:g.getAttribute(k);k=g+"";var l=h[2];h=h[4];return g==null?l==="!=":l==="="?k===h:l==="*="?k.indexOf(h)>=0:l==="~="?(" "+k+" ").indexOf(h)>=0:!h?k&&g!==false:l==="!="?k!==h:l==="^="? +k.indexOf(h)===0:l==="$="?k.substr(k.length-h.length)===h:l==="|="?k===h||k.substr(0,h.length+1)===h+"-":false},POS:function(g,h,k,l){var q=m.setFilters[h[2]];if(q)return q(g,k,h,l)}}},s=m.match.POS;for(var x in m.match){m.match[x]=new RegExp(m.match[x].source+/(?![^\[]*\])(?![^\(]*\))/.source);m.leftMatch[x]=new RegExp(/(^(?:.|\r|\n)*?)/.source+m.match[x].source.replace(/\\(\d+)/g,function(g,h){return"\\"+(h-0+1)}))}var A=function(g,h){g=Array.prototype.slice.call(g,0);if(h){h.push.apply(h,g);return h}return g}; +try{Array.prototype.slice.call(r.documentElement.childNodes,0)}catch(B){A=function(g,h){h=h||[];if(i.call(g)==="[object Array]")Array.prototype.push.apply(h,g);else if(typeof g.length==="number")for(var k=0,l=g.length;k";var k=r.documentElement;k.insertBefore(g,k.firstChild);if(r.getElementById(h)){m.find.ID=function(l,q,p){if(typeof q.getElementById!=="undefined"&&!p)return(q=q.getElementById(l[1]))?q.id===l[1]||typeof q.getAttributeNode!=="undefined"&&q.getAttributeNode("id").nodeValue===l[1]?[q]:v:[]};m.filter.ID=function(l,q){var p=typeof l.getAttributeNode!=="undefined"&&l.getAttributeNode("id"); +return l.nodeType===1&&p&&p.nodeValue===q}}k.removeChild(g);k=g=null})();(function(){var g=r.createElement("div");g.appendChild(r.createComment(""));if(g.getElementsByTagName("*").length>0)m.find.TAG=function(h,k){k=k.getElementsByTagName(h[1]);if(h[1]==="*"){h=[];for(var l=0;k[l];l++)k[l].nodeType===1&&h.push(k[l]);k=h}return k};g.innerHTML="";if(g.firstChild&&typeof g.firstChild.getAttribute!=="undefined"&&g.firstChild.getAttribute("href")!=="#")m.attrHandle.href=function(h){return h.getAttribute("href", +2)};g=null})();r.querySelectorAll&&function(){var g=o,h=r.createElement("div");h.innerHTML="

";if(!(h.querySelectorAll&&h.querySelectorAll(".TEST").length===0)){o=function(l,q,p,u){q=q||r;if(!u&&q.nodeType===9&&!w(q))try{return A(q.querySelectorAll(l),p)}catch(t){}return g(l,q,p,u)};for(var k in g)o[k]=g[k];h=null}}();(function(){var g=r.createElement("div");g.innerHTML="
";if(!(!g.getElementsByClassName||g.getElementsByClassName("e").length=== +0)){g.lastChild.className="e";if(g.getElementsByClassName("e").length!==1){m.order.splice(1,0,"CLASS");m.find.CLASS=function(h,k,l){if(typeof k.getElementsByClassName!=="undefined"&&!l)return k.getElementsByClassName(h[1])};g=null}}})();var E=r.compareDocumentPosition?function(g,h){return g.compareDocumentPosition(h)&16}:function(g,h){return g!==h&&(g.contains?g.contains(h):true)},w=function(g){return(g=(g?g.ownerDocument||g:0).documentElement)?g.nodeName!=="HTML":false},fa=function(g,h){var k=[], +l="",q;for(h=h.nodeType?[h]:h;q=m.match.PSEUDO.exec(g);){l+=q[0];g=g.replace(m.match.PSEUDO,"")}g=m.relative[g]?g+"*":g;q=0;for(var p=h.length;q=0===d})};c.fn.extend({find:function(a){for(var b=this.pushStack("","find",a),d=0,f=0,e=this.length;f0)for(var i=d;i0},closest:function(a,b){if(c.isArray(a)){var d=[],f=this[0],e,i={},j;if(f&&a.length){e=0;for(var n=a.length;e +-1:c(f).is(e)){d.push({selector:j,elem:f});delete i[j]}}f=f.parentNode}}return d}var o=c.expr.match.POS.test(a)?c(a,b||this.context):null;return this.map(function(m,s){for(;s&&s.ownerDocument&&s!==b;){if(o?o.index(s)>-1:c(s).is(a))return s;s=s.parentNode}return null})},index:function(a){if(!a||typeof a==="string")return c.inArray(this[0],a?c(a):this.parent().children());return c.inArray(a.jquery?a[0]:a,this)},add:function(a,b){a=typeof a==="string"?c(a,b||this.context):c.makeArray(a);b=c.merge(this.get(), +a);return this.pushStack(pa(a[0])||pa(b[0])?b:c.unique(b))},andSelf:function(){return this.add(this.prevObject)}});c.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return c.dir(a,"parentNode")},parentsUntil:function(a,b,d){return c.dir(a,"parentNode",d)},next:function(a){return c.nth(a,2,"nextSibling")},prev:function(a){return c.nth(a,2,"previousSibling")},nextAll:function(a){return c.dir(a,"nextSibling")},prevAll:function(a){return c.dir(a,"previousSibling")}, +nextUntil:function(a,b,d){return c.dir(a,"nextSibling",d)},prevUntil:function(a,b,d){return c.dir(a,"previousSibling",d)},siblings:function(a){return c.sibling(a.parentNode.firstChild,a)},children:function(a){return c.sibling(a.firstChild)},contents:function(a){return c.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:c.makeArray(a.childNodes)}},function(a,b){c.fn[a]=function(d,f){var e=c.map(this,b,d);bb.test(a)||(f=d);if(f&&typeof f==="string")e=c.filter(f,e);e=this.length>1?c.unique(e): +e;if((this.length>1||db.test(f))&&cb.test(a))e=e.reverse();return this.pushStack(e,a,Q.call(arguments).join(","))}});c.extend({filter:function(a,b,d){if(d)a=":not("+a+")";return c.find.matches(a,b)},dir:function(a,b,d){var f=[];for(a=a[b];a&&a.nodeType!==9&&(d===v||a.nodeType!==1||!c(a).is(d));){a.nodeType===1&&f.push(a);a=a[b]}return f},nth:function(a,b,d){b=b||1;for(var f=0;a;a=a[d])if(a.nodeType===1&&++f===b)break;return a},sibling:function(a,b){for(var d=[];a;a=a.nextSibling)a.nodeType===1&&a!== +b&&d.push(a);return d}});var Fa=/ jQuery\d+="(?:\d+|null)"/g,V=/^\s+/,Ga=/(<([\w:]+)[^>]*?)\/>/g,eb=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,Ha=/<([\w:]+)/,fb=/"},F={option:[1,""],legend:[1,"
","
"],thead:[1,"","
"],tr:[2,"","
"],td:[3,"","
"], +col:[2,"","
"],area:[1,"",""],_default:[0,"",""]};F.optgroup=F.option;F.tbody=F.tfoot=F.colgroup=F.caption=F.thead;F.th=F.td;if(!c.support.htmlSerialize)F._default=[1,"div
","
"];c.fn.extend({text:function(a){if(c.isFunction(a))return this.each(function(b){var d=c(this);d.text(a.call(this,b,d.text()))});if(typeof a!=="object"&&a!==v)return this.empty().append((this[0]&&this[0].ownerDocument||r).createTextNode(a));return c.getText(this)}, +wrapAll:function(a){if(c.isFunction(a))return this.each(function(d){c(this).wrapAll(a.call(this,d))});if(this[0]){var b=c(a,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var d=this;d.firstChild&&d.firstChild.nodeType===1;)d=d.firstChild;return d}).append(this)}return this},wrapInner:function(a){if(c.isFunction(a))return this.each(function(b){c(this).wrapInner(a.call(this,b))});return this.each(function(){var b=c(this),d=b.contents();d.length? +d.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){c(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){c.nodeName(this,"body")||c(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments, +false,function(b){this.parentNode.insertBefore(b,this)});else if(arguments.length){var a=c(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this.nextSibling)});else if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,c(arguments[0]).toArray());return a}},clone:function(a){var b=this.map(function(){if(!c.support.noCloneEvent&& +!c.isXMLDoc(this)){var d=this.outerHTML,f=this.ownerDocument;if(!d){d=f.createElement("div");d.appendChild(this.cloneNode(true));d=d.innerHTML}return c.clean([d.replace(Fa,"").replace(V,"")],f)[0]}else return this.cloneNode(true)});if(a===true){qa(this,b);qa(this.find("*"),b.find("*"))}return b},html:function(a){if(a===v)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(Fa,""):null;else if(typeof a==="string"&&!/ + +

+ +

+ HTML + else + related_items.each do |item| + switch = request.include?("#{related_fk}=#{item.id}") ? 'on' : 'off' + items << (link_to item.to_label, params.merge(related_fk => item.id, :page => nil), :class => switch) + end + end + + if form + html << build_typus_list(items, :attribute => filter, :selector => true) + html << form + else + html << build_typus_list(items, :attribute => filter) + end + + end + + end + + def date_filter(request, filter) + + if !@resource[:class].typus_field_options_for(:filter_by_date_range).include?(filter.to_sym) + items = %w( today last_few_days last_7_days last_30_days ).map do |timeline| + switch = request.include?("#{filter}=#{timeline}") ? 'on' : 'off' + options = { :page => nil } + if switch == 'on' + params.delete(filter) + else + options.merge!(filter.to_sym => timeline) + end + link_to _(timeline.humanize), params.merge(options), :class => switch + end + build_typus_list(items, :attribute => filter) + else + date_params = params.dup + + %w( action controller page id ).each { |p| date_params.delete(p) } + date_params.delete(filter) + + hidden_params = date_params.map { |k, v| hidden_field_tag(k, v) } + render "admin/helpers/date", :hidden_params => hidden_params, :filter => filter, :resource => @resource + end + + end + + def boolean_filter(request, filter) + + item_params = params.dup + + items = @resource[:class].typus_boolean(filter).map do |key, value| + switch = request.include?("#{filter}=#{key}") ? 'on' : 'off' + options = { :page => nil } + if switch == 'on' + item_params.delete(filter) + else + options.merge!(filter.to_sym => key) + end + link_to _(value), item_params.merge(options), :class => switch + end + + build_typus_list(items, :attribute => filter) + + end + + def string_filter(request, filter) + + item_params = params.dup + + values = @resource[:class]::const_get("#{filter.to_s.upcase}") + values = values.invert if values.kind_of?(Hash) + items = values.map do |item| + link_name, link_filter = (values.first.kind_of?(Array)) ? [ item.first, item.last ] : [ item, item ] + switch = (params[filter.to_s] == link_filter) ? 'on' : 'off' + options = { :page => nil } + if switch == 'on' + item_params.delete(filter) + else + options.merge!(filter.to_sym => link_filter) + end + link_to link_name, item_params.merge(options), :class => switch + end + + build_typus_list(items, :attribute => filter) + + end + + include Typus::SidebarHelperExtensions rescue nil +end diff --git a/vendor/plugins/typus/app/helpers/admin/table_helper.rb b/vendor/plugins/typus/app/helpers/admin/table_helper.rb new file mode 100644 index 0000000..f6035b9 --- /dev/null +++ b/vendor/plugins/typus/app/helpers/admin/table_helper.rb @@ -0,0 +1,261 @@ +module Admin::TableHelper + + # OPTIMIZE: Move html code to partial & refactor. + def build_typus_table(model, fields, items, link_options = {}, association = nil) + + returning(String.new) do |html| + + html << <<-HTML + + HTML + + html << typus_table_header(model, fields) + + items.each do |item| + + html << <<-HTML + + HTML + + fields.each do |key, value| + case value + when :boolean then html << typus_table_boolean_field(key, item) + when :datetime then html << typus_table_datetime_field(key, item, link_options) + when :date then html << typus_table_datetime_field(key, item, link_options) + when :file then html << typus_table_file_field(key, item, link_options) + when :time then html << typus_table_datetime_field(key, item, link_options) + when :belongs_to then html << typus_table_belongs_to_field(key, item) + when :tree then html << typus_table_tree_field(key, item) + when :position then html << typus_table_position_field(key, item) + when :selector then html << typus_table_selector(key, item) + when :has_and_belongs_to_many then + html << typus_table_has_and_belongs_to_many_field(key, item) + else + html << typus_table_string_field(key, item, link_options) + end + end + + action = if model.typus_user_id? && @current_user.is_not_root? + # If there's a typus_user_id column on the table and logged user is not root ... + item.owned_by?(@current_user) ? item.class.typus_options_for(:default_action_on_item) : 'show' + elsif @current_user.cannot?('edit', model) + 'show' + else + item.class.typus_options_for(:default_action_on_item) + end + + content = link_to _(action.capitalize), :controller => "admin/#{item.class.name.tableize}", :action => action, :id => item.id + html << <<-HTML + + HTML + + ## + # This controls the action to perform. If we are on a model list we + # will remove the entry, but if we inside a model we will remove the + # relationship between the models. + # + # Only shown is the user can destroy/unrelate items. + # + + trash = %Q(
Trash
) + unrelate = %Q(
Unrelate
) + + case params[:action] + when 'index' + condition = if model.typus_user_id? && @current_user.is_not_root? + item.owned_by?(@current_user) + elsif (@current_user.id.eql?(item.id) && model.eql?(Typus.user_class)) + false + else + @current_user.can?('destroy', model) + end + + message = _("You are about to delete a %{model}.\nAre you sure you want to continue?", :model => model.human_name.downcase) + + perform = link_to trash, { :action => 'destroy', :id => item.id }, + :title => _("Remove"), + :confirm => _(message) if condition + when 'edit' + # If we are editing content, we can relate and unrelate always! + perform = link_to unrelate, { :action => 'unrelate', :id => params[:id], :resource => model, :resource_id => item.id }, + :title => _("Unrelate"), + :confirm => _("Unrelate %{unrelate_model} from %{unrelate_model_from}?", + :unrelate_model => model.typus_human_name, + :unrelate_model_from => @resource[:human_name]) + when 'show' + # If we are showing content, we only can relate and unrelate if we are + # the owners of the owner record. + # If the owner record doesn't have a foreign key (Typus.user_fk) we look + # each item to verify the ownership. + condition = if @resource[:class].typus_user_id? && @current_user.is_not_root? + @item.owned_by?(@current_user) + end + perform = link_to unrelate, { :action => 'unrelate', :id => params[:id], :resource => model, :resource_id => item.id }, + :title => _("Unrelate"), + :confirm => _("Unrelate %{unrelate_model} from %{unrelate_model_from}?", + :unrelate_model => model.typus_human_name, + :unrelate_model_from => @resource[:human_name]) if condition + end + + html << <<-HTML + + + HTML + + end + + html << "
#{content}#{perform}
" + + end + + end + + def typus_table_header(model, fields) + + headers = fields.map do |key, value| + + content = key.end_with?('_id') ? key : model.human_attribute_name(key) + + if (model.model_fields.map(&:first).collect { |i| i.to_s }.include?(key) || model.reflect_on_all_associations(:belongs_to).map(&:name).include?(key.to_sym)) && params[:action] == 'index' + sort_order = case params[:sort_order] + when 'asc' then ['desc', '↓'] + when 'desc' then ['asc', '↑'] + else + [nil, nil] + end + order_by = model.reflect_on_association(key.to_sym).primary_key_name rescue key + switch = sort_order.last if params[:order_by].eql?(order_by) + options = { :order_by => order_by, :sort_order => sort_order.first } + content = link_to "#{content} #{switch}", params.merge(options) + end + + content + + end + + headers << " " if @current_user.can?('delete', model) + + render "admin/helpers/table_header", + :headers => headers + + end + + # OPTIMIZE: Refactor (Remove rescue) + def typus_table_belongs_to_field(attribute, item) + + action = item.send(attribute).class.typus_options_for(:default_action_on_item) rescue 'edit' + + att_value = item.send(attribute) + content = if !att_value.nil? + if @current_user.can?(action, att_value.class.name) + link_to item.send(attribute).to_label, :controller => "admin/#{att_value.class.name.tableize}", :action => action, :id => att_value.id + else + att_value.to_label + end + end + + return content_tag(:td, content) + + end + + def typus_table_has_and_belongs_to_many_field(attribute, item) + content = item.send(attribute).map { |i| i.to_label }.join('
') + return content_tag(:td, content) + end + + def typus_table_string_field(attribute, item, link_options = {}) + content = h(item.send(attribute)) + return content_tag(:td, content, :class => attribute) + end + + def typus_table_selector(attribute, item) + content = h(item.mapping(attribute)) + return content_tag(:td, content, :class => attribute) + end + + def typus_table_file_field(attribute, item, link_options = {}) + + attachment = attribute.split("_file_name").first + file_preview = Typus::Configuration.options[:file_preview] + file_thumbnail = Typus::Configuration.options[:file_thumbnail] + + has_file_preview = item.send(attachment).styles.member?(file_preview) + file_preview_is_image = item.send("#{attachment}_content_type") =~ /^image\/.+/ + + content = if has_file_preview && file_preview_is_image + render "admin/helpers/preview", + :attribute => attribute, + :attachment => attachment, + :content => item.send(attribute), + :has_file_preview => has_file_preview, + :href => item.send(attachment).url(file_preview), + :item => item + else + link_to item.send(attribute), item.send(attachment).url + end + + return content_tag(:td, content) + + end + + # OPTIMIZE: Move html code to partial. + def typus_table_tree_field(attribute, item) + <<-HTML +#{item.parent.to_label if item.parent} + HTML + end + + # OPTIMIZE: Move html code to partial. + def typus_table_position_field(attribute, item) + + html_position = [] + + [['Up', 'move_higher'], ['Down', 'move_lower']].each do |position| + + options = { :controller => item.class.name.tableize, + :action => 'position', + :id => item.id, + :go => position.last } + + first_or_last = (item.respond_to?(:first?) && (position.last == 'move_higher' && item.first?)) || (item.respond_to?(:last?) && (position.last == 'move_lower' && item.last?)) + html_position << link_to_unless(first_or_last, _(position.first), params.merge(options)) do |name| + %(#{name}) + end + end + + content = html_position.join(' / ') + return content_tag(:td, content) + + end + + def typus_table_datetime_field(attribute, item, link_options = {} ) + + date_format = item.class.typus_date_format(attribute) + content = !item.send(attribute).nil? ? item.send(attribute).to_s(date_format) : item.class.typus_options_for(:nil) + + return content_tag(:td, content) + + end + + def typus_table_boolean_field(attribute, item) + + boolean_hash = item.class.typus_boolean(attribute) + status = item.send(attribute) + link_text = boolean_hash["#{status}".to_sym] + + options = { :controller => "admin/#{item.class.name.tableize}", + :action => 'toggle', + :id => item.id, + :field => attribute.gsub(/\?$/,'') } + + confirm = _("Change %{attribute}?", + :attribute => item.class.human_attribute_name(attribute).downcase) + + content = link_to _(link_text), options, :confirm => confirm + + return content_tag(:td, content) + + end + + include Typus::TableHelperExtensions rescue nil +end diff --git a/vendor/plugins/typus/app/helpers/typus_helper.rb b/vendor/plugins/typus/app/helpers/typus_helper.rb new file mode 100644 index 0000000..eaf1a8e --- /dev/null +++ b/vendor/plugins/typus/app/helpers/typus_helper.rb @@ -0,0 +1,101 @@ +module TypusHelper + + def applications + + apps = ActiveSupport::OrderedHash.new + + Typus.applications.each do |app| + + available = Typus.application(app).map do |resource| + resource if @current_user.resources.include?(resource) + end.compact + + next if available.empty? + + apps[app] = available.sort_by { |x| x.constantize.typus_human_name } + + end + + render "admin/helpers/applications", :applications => apps + + end + + def resources + + available = Typus.resources.map do |resource| + resource if @current_user.resources.include?(resource) + end.compact + + return if available.empty? + + render "admin/helpers/resources", :resources => available + + end + + def typus_block(*args) + + options = args.extract_options! + + partials_path = "admin/#{options[:location]}" + resources_partials_path = 'admin/resources' + + partials = ActionController::Base.view_paths.map do |view_path| + Dir["#{view_path.path}/#{partials_path}/*"].map { |f| File.basename(f, '.html.erb') } + end.flatten + resources_partials = Dir["#{Rails.root}/app/views/#{resources_partials_path}/*"].map { |f| File.basename(f, '.html.erb') } + + partial = "_#{options[:partial]}" + + path = if partials.include?(partial) then partials_path + elsif resources_partials.include?(partial) then resources_partials_path + end + + render "#{path}/#{options[:partial]}" if path + + end + + def page_title(action = params[:action]) + crumbs = [] + crumbs << @resource[:pluralized] if @resource + crumbs << _(action.humanize) unless %w( index ).include?(action) + return crumbs.compact.map { |x| x }.join(' › ') + end + + def header + + links = [] + links << (link_to_unless_current _("Dashboard"), admin_dashboard_path) + + Typus.models_on_header.each do |model| + links << (link_to_unless_current model.constantize.pluralized_human_name, :controller => "/admin/#{model.tableize}") + end + + render "admin/helpers/header", :links => links + + end + + def login_info(user = @current_user) + + admin_edit_typus_user_path = { :controller => "/admin/#{Typus::Configuration.options[:user_class_name].tableize}", + :action => 'edit', + :id => user.id } + + message = _("Are you sure you want to sign out and end your session?") + + user_details = if user.can?('edit', Typus::Configuration.options[:user_class_name]) + link_to user.name, admin_edit_typus_user_path, :title => "#{user.email} (#{user.role})" + else + user.name + end + + render "admin/helpers/login_info", :message => message, :user_details => user_details + + end + + def display_flash_message(message = flash) + return if message.empty? + flash_type = message.keys.first + render "admin/helpers/flash_message", :flash_type => flash_type, :message => message + end + +end diff --git a/vendor/plugins/typus/app/models/typus_mailer.rb b/vendor/plugins/typus/app/models/typus_mailer.rb new file mode 100644 index 0000000..812a123 --- /dev/null +++ b/vendor/plugins/typus/app/models/typus_mailer.rb @@ -0,0 +1,12 @@ +class TypusMailer < ActionMailer::Base + + self.template_root = "#{File.dirname(__FILE__)}/../views" + + def reset_password_link(user, url) + subject "[#{Typus::Configuration.options[:app_name]}] #{_("Reset password")}" + body :user => user, :url => url + recipients user.email + from Typus::Configuration.options[:email] + end + +end diff --git a/vendor/plugins/typus/app/models/typus_user.rb b/vendor/plugins/typus/app/models/typus_user.rb new file mode 100644 index 0000000..d4472e6 --- /dev/null +++ b/vendor/plugins/typus/app/models/typus_user.rb @@ -0,0 +1,8 @@ +class TypusUser < ActiveRecord::Base + + ROLE = Typus::Configuration.roles.keys.sort + LANGUAGE = Typus.locales + + enable_as_typus_user + +end diff --git a/vendor/plugins/typus/app/views/admin/dashboard/_sidebar.html.erb b/vendor/plugins/typus/app/views/admin/dashboard/_sidebar.html.erb new file mode 100644 index 0000000..9cba16c --- /dev/null +++ b/vendor/plugins/typus/app/views/admin/dashboard/_sidebar.html.erb @@ -0,0 +1,5 @@ +

Welcome!

+ +

If you need help don't hesitate in joining the <%= link_to 'mailing list', 'http://groups.google.com/group/typus' %>.

+ +

Replace this sidebar dropping a file named _sidebar.html.erb on the app/views/admin/dashboard folder.

diff --git a/vendor/plugins/typus/app/views/admin/helpers/_applications.html.erb b/vendor/plugins/typus/app/views/admin/helpers/_applications.html.erb new file mode 100644 index 0000000..1934d1d --- /dev/null +++ b/vendor/plugins/typus/app/views/admin/helpers/_applications.html.erb @@ -0,0 +1,39 @@ +<% applications.each do |app, models| %> + + + + + + + + <% models.each do |model| %> + + <% + + klass = model.constantize + klass_resource = klass.name.tableize + klass_human_name = klass.pluralized_human_name + + admin_items_path = { :controller => "admin/#{klass_resource}" } + new_admin_item_path = { :controller => "admin/#{klass_resource}", :action => 'new'} + + %> + + + + + + + + + + <% end %> + +
<%= _(app) %>
+ <%= link_to klass_human_name, admin_items_path %>
+ <%= _(klass.typus_description) if !klass.typus_description.nil? %> +
+ <%= link_to_if @current_user.can?('create', klass), _("Add"), new_admin_item_path %> +
+ +<% end %> diff --git a/vendor/plugins/typus/app/views/admin/helpers/_date.html.erb b/vendor/plugins/typus/app/views/admin/helpers/_date.html.erb new file mode 100644 index 0000000..0b56697 --- /dev/null +++ b/vendor/plugins/typus/app/views/admin/helpers/_date.html.erb @@ -0,0 +1,26 @@ +<% + if params[filter.to_s].is_a?(Hash) + date_from = params[filter.to_s]["from"] + date_to = params[filter.to_s]["to"] + else + date_from = "" + date_to = "" + end + + date_format = Date::DATE_FORMATS[@resource[:class].typus_date_format(filter)] +%> + +

<%= @resource[:class].human_attribute_name(filter) %>

+
    +<% form_tag url_for(:controller => params[:controller], :action => params[:action]), :method => :get do %> +
  • + <%= text_field_tag "#{filter}[from]", date_from, :size => 10, :class => :date_input, :date_format => date_format %> + - + <%= text_field_tag "#{filter}[to]", date_to, :size => 10, :class => :date_input, :date_format => date_format %> +
  • +
  • + <%= hidden_params.sort.join("\n") %> + <%= submit_tag _("Filter") %> +
  • +<% end %> +
\ No newline at end of file diff --git a/vendor/plugins/typus/app/views/admin/helpers/_display_link_to_previous.html.erb b/vendor/plugins/typus/app/views/admin/helpers/_display_link_to_previous.html.erb new file mode 100644 index 0000000..c66e7d3 --- /dev/null +++ b/vendor/plugins/typus/app/views/admin/helpers/_display_link_to_previous.html.erb @@ -0,0 +1,3 @@ +
+

<%= message %> <%= link_to _("Do you want to cancel it?"), params[:back_to] %>

+
diff --git a/vendor/plugins/typus/app/views/admin/helpers/_flash_message.html.erb b/vendor/plugins/typus/app/views/admin/helpers/_flash_message.html.erb new file mode 100644 index 0000000..f1780bd --- /dev/null +++ b/vendor/plugins/typus/app/views/admin/helpers/_flash_message.html.erb @@ -0,0 +1,3 @@ +
+

<%= message[flash_type] %>

+
diff --git a/vendor/plugins/typus/app/views/admin/helpers/_header.html.erb b/vendor/plugins/typus/app/views/admin/helpers/_header.html.erb new file mode 100644 index 0000000..67542be --- /dev/null +++ b/vendor/plugins/typus/app/views/admin/helpers/_header.html.erb @@ -0,0 +1,13 @@ +

+ <% if ActionController::Routing::Routes.named_routes.routes.has_key?(:root) %> + <%= link_to Typus::Configuration.options[:app_name], root_path, :title => _("View site") %> + <% else %> + <%= Typus::Configuration.options[:app_name] %> + <% end %> +

+ +
    +<% links.each do |link| -%> +
  • <%= link %>
  • +<% end -%> +
diff --git a/vendor/plugins/typus/app/views/admin/helpers/_list.html.erb b/vendor/plugins/typus/app/views/admin/helpers/_list.html.erb new file mode 100644 index 0000000..6796d39 --- /dev/null +++ b/vendor/plugins/typus/app/views/admin/helpers/_list.html.erb @@ -0,0 +1,11 @@ +<%= content_tag('h2', header) if header %> + +<% unless options[:selector] %> + +
    + <% items.each do |item| %> +
  • <%= item %>
  • + <% end %> +
+ +<% end %> \ No newline at end of file diff --git a/vendor/plugins/typus/app/views/admin/helpers/_login_info.html.erb b/vendor/plugins/typus/app/views/admin/helpers/_login_info.html.erb new file mode 100644 index 0000000..65e5834 --- /dev/null +++ b/vendor/plugins/typus/app/views/admin/helpers/_login_info.html.erb @@ -0,0 +1,4 @@ +
    +
  • <%= _("Logged as") %> <%= user_details %>
  • +
  • <%= link_to _("Sign out"), admin_sign_out_path, { :confirm => message } %>
  • +
diff --git a/vendor/plugins/typus/app/views/admin/helpers/_pagination.html.erb b/vendor/plugins/typus/app/views/admin/helpers/_pagination.html.erb new file mode 100644 index 0000000..6e25f19 --- /dev/null +++ b/vendor/plugins/typus/app/views/admin/helpers/_pagination.html.erb @@ -0,0 +1,15 @@ + \ No newline at end of file diff --git a/vendor/plugins/typus/app/views/admin/helpers/_preview.html.erb b/vendor/plugins/typus/app/views/admin/helpers/_preview.html.erb new file mode 100644 index 0000000..3113f84 --- /dev/null +++ b/vendor/plugins/typus/app/views/admin/helpers/_preview.html.erb @@ -0,0 +1,13 @@ +<% + dom = item.to_dom(:suffix => "#{attribute}_preview" ) +%> + +<% if has_file_preview %> + +<% end %> + +<%= content %> diff --git a/vendor/plugins/typus/app/views/admin/helpers/_quick_edit.html.erb b/vendor/plugins/typus/app/views/admin/helpers/_quick_edit.html.erb new file mode 100644 index 0000000..5672685 --- /dev/null +++ b/vendor/plugins/typus/app/views/admin/helpers/_quick_edit.html.erb @@ -0,0 +1,3 @@ + diff --git a/vendor/plugins/typus/app/views/admin/helpers/_remove_filter_link.html.erb b/vendor/plugins/typus/app/views/admin/helpers/_remove_filter_link.html.erb new file mode 100644 index 0000000..fc9eaac --- /dev/null +++ b/vendor/plugins/typus/app/views/admin/helpers/_remove_filter_link.html.erb @@ -0,0 +1 @@ +<%= link_to _("Remove filter") %> diff --git a/vendor/plugins/typus/app/views/admin/helpers/_resources.html.erb b/vendor/plugins/typus/app/views/admin/helpers/_resources.html.erb new file mode 100644 index 0000000..b272da3 --- /dev/null +++ b/vendor/plugins/typus/app/views/admin/helpers/_resources.html.erb @@ -0,0 +1,14 @@ + + + + + + + <% resources.each do |resource| %> + + + + + <% end %> + +
<%= _("Resources") %>
<%= link_to _(resource.titleize.capitalize), :controller => "admin/#{resource.underscore}" %>
diff --git a/vendor/plugins/typus/app/views/admin/helpers/_search.html.erb b/vendor/plugins/typus/app/views/admin/helpers/_search.html.erb new file mode 100644 index 0000000..7bd1610 --- /dev/null +++ b/vendor/plugins/typus/app/views/admin/helpers/_search.html.erb @@ -0,0 +1,8 @@ +

<%= _("Search") %>

+ +<% form_tag url_for(:controller => params[:controller]), :method => :get do %> +

+ <%= hidden_params.sort.join("\n") %> +<% end %> + +

<%= _("Search by") %> <%= search_by.downcase %>.

diff --git a/vendor/plugins/typus/app/views/admin/helpers/_table_header.html.erb b/vendor/plugins/typus/app/views/admin/helpers/_table_header.html.erb new file mode 100644 index 0000000..33f3085 --- /dev/null +++ b/vendor/plugins/typus/app/views/admin/helpers/_table_header.html.erb @@ -0,0 +1,5 @@ + + <% headers.each do |header| %> + <%= header %> + <% end %> + diff --git a/vendor/plugins/typus/app/views/admin/resources/_form.html.erb b/vendor/plugins/typus/app/views/admin/resources/_form.html.erb new file mode 100644 index 0000000..905cd04 --- /dev/null +++ b/vendor/plugins/typus/app/views/admin/resources/_form.html.erb @@ -0,0 +1,12 @@ +<% form_for @item, :url => options, :builder => ActionView::Helpers::FormBuilder, :html => { :multipart => true } do |form| %> +
+
    + <%= build_form(@fields, form) %> +
+
+
+
    +
  1. <%= submit_tag button , :class => 'commit' %>
  2. +
+
+<% end %> \ No newline at end of file diff --git a/vendor/plugins/typus/app/views/admin/resources/edit.html.erb b/vendor/plugins/typus/app/views/admin/resources/edit.html.erb new file mode 100644 index 0000000..9a4ab00 --- /dev/null +++ b/vendor/plugins/typus/app/views/admin/resources/edit.html.erb @@ -0,0 +1,25 @@ +<% content_for :sidebar do %> + <%= typus_block :location => @resource[:self], :partial => 'sidebar' %> + <%= actions %> + <%= search %> +<% end %> + +<%= display_link_to_previous if params[:back_to] %> + +

<%= link_to @resource[:pluralized], :action => 'index' %> › + <%= _("Edit") %>

+ +<%= typus_block :location => @resource[:self], :partial => 'edit' %> + +<% + options = { :action => 'update', + :id => @item.id , + :back_to => params[:back_to], + :resource => params[:resource], + :resource_id => params[:resource_id]} + button = _("Save %{resource}", :resource => @resource[:human_name]) +%> + +<%= render "form", :options => options, :button => button %> + +<%= typus_relationships %> diff --git a/vendor/plugins/typus/app/views/admin/resources/index.html.erb b/vendor/plugins/typus/app/views/admin/resources/index.html.erb new file mode 100644 index 0000000..bd38435 --- /dev/null +++ b/vendor/plugins/typus/app/views/admin/resources/index.html.erb @@ -0,0 +1,21 @@ +<% content_for :sidebar do %> + <%= typus_block :location => @resource[:self], :partial => 'sidebar' %> + <%= actions %> + <%= export %> + <%= search %> + <%= filters %> +<% end %> + +

<%= @resource[:pluralized] %> <%= remove_filter_link %>

+ +<%= typus_block :location => @resource[:self], :partial => 'index' %> + +<% unless @items.count.zero? -%> + <%= build_list(@resource[:class], @fields, @items) %> + <%= pagination %> +<% else %> +
+ <% message = @resource[:class].count.zero? ? "There are no %{records}." : "There are no %{records} under this filter." %> +

<%= _(message, :records => @resource[:human_name].pluralize.downcase) %>

+
+<% end %> diff --git a/vendor/plugins/typus/app/views/admin/resources/new.html.erb b/vendor/plugins/typus/app/views/admin/resources/new.html.erb new file mode 100644 index 0000000..441f70d --- /dev/null +++ b/vendor/plugins/typus/app/views/admin/resources/new.html.erb @@ -0,0 +1,22 @@ +<% content_for :sidebar do %> + <%= typus_block :location => @resource[:self], :partial => 'sidebar' %> + <%= actions %> +<% end %> + +<%= display_link_to_previous if params[:back_to] %> + +

<%= link_to @resource[:pluralized], :action => 'index' %> › + <%= _("New") %>

+ +<%= typus_block :location => @resource[:self], :partial => 'new' %> + +<% + options = { :action => 'create', + :back_to => params[:back_to], + :selected => params[:selected], + :resource => params[:resource], + :resource_id => params[:resource_id] } + button = _("Create %{resource}", :resource => @resource[:human_name]) +%> + +<%= render "form", :options => options, :button => button %> diff --git a/vendor/plugins/typus/app/views/admin/resources/show.html.erb b/vendor/plugins/typus/app/views/admin/resources/show.html.erb new file mode 100644 index 0000000..6b82872 --- /dev/null +++ b/vendor/plugins/typus/app/views/admin/resources/show.html.erb @@ -0,0 +1,45 @@ +<% content_for :sidebar do %> + <%= typus_block :location => @resource[:self], :partial => 'sidebar' %> + <%= actions %> + <%= search %> +<% end %> + +

<%= link_to @resource[:pluralized], :action => 'index' %> › + <%= _("Show") %>

+ +<%= typus_block :location => @resource[:self], :partial => 'show' %> + +
+<%- @fields.each do |field| -%> +
<%=h @resource[:class].human_attribute_name(field.first) %>
+ <%- + data_type = field.last + raw_data = @item.send(field.first) + data = case data_type + when :boolean + boolean_hash = @resource[:class].typus_boolean(field.first) + !raw_data.nil? ? boolean_hash["#{raw_data}".to_sym] : @resource[:class].typus_options_for(:nil) + when :belongs_to + if !raw_data.nil? + controller = raw_data.class.name.extract_resource.pluralize + action = raw_data.class.typus_options_for(:default_action_on_item) + options = { :controller => controller, :action => action, :id => raw_data } + link_to raw_data.to_label, options + else + h(raw_data) + end + when :file + typus_preview(@item, field.first) + when :text + defined?(RDiscount) ? markdown(raw_data) : simple_format(h(raw_data)) + when :selector + @item.mapping(field.first) + else + h(raw_data) + end + -%> +
<%= !data.blank? ? data : ('—') %>
+<%- end -%> +
+ +<%= typus_relationships %> diff --git a/vendor/plugins/typus/app/views/admin/shared/_footer.html.erb b/vendor/plugins/typus/app/views/admin/shared/_footer.html.erb new file mode 100644 index 0000000..cb0d6a0 --- /dev/null +++ b/vendor/plugins/typus/app/views/admin/shared/_footer.html.erb @@ -0,0 +1 @@ +

<%= link_to 'Typus', 'http://core.typuscms.com/' %> by <%= link_to 'intraducibles.com', 'http://intraducibles.com' %>.

diff --git a/vendor/plugins/typus/app/views/admin/templates/_boolean.html.erb b/vendor/plugins/typus/app/views/admin/templates/_boolean.html.erb new file mode 100644 index 0000000..3e7b954 --- /dev/null +++ b/vendor/plugins/typus/app/views/admin/templates/_boolean.html.erb @@ -0,0 +1,4 @@ +
  • + <%= form.label attribute, label_text, :class => 'inline_label' %> + <%= form.check_box attribute, options %> +
  • \ No newline at end of file diff --git a/vendor/plugins/typus/app/views/admin/templates/_date.html.erb b/vendor/plugins/typus/app/views/admin/templates/_date.html.erb new file mode 100644 index 0000000..1a40ae0 --- /dev/null +++ b/vendor/plugins/typus/app/views/admin/templates/_date.html.erb @@ -0,0 +1,9 @@ +<% + custom = { :include_blank => false } + options.merge!(custom) +%> + +
  • + <%= form.label attribute, label_text %> + <%= form.date_select attribute, options, html_options %> +
  • \ No newline at end of file diff --git a/vendor/plugins/typus/app/views/admin/templates/_datetime.html.erb b/vendor/plugins/typus/app/views/admin/templates/_datetime.html.erb new file mode 100644 index 0000000..25ffae8 --- /dev/null +++ b/vendor/plugins/typus/app/views/admin/templates/_datetime.html.erb @@ -0,0 +1,9 @@ +<% + custom = { :include_blank => false } + options.merge!(custom) +%> + +
  • + <%= form.label attribute, label_text %> + <%= form.datetime_select attribute, options, html_options %> +
  • \ No newline at end of file diff --git a/vendor/plugins/typus/app/views/admin/templates/_file.html.erb b/vendor/plugins/typus/app/views/admin/templates/_file.html.erb new file mode 100644 index 0000000..e8eccab --- /dev/null +++ b/vendor/plugins/typus/app/views/admin/templates/_file.html.erb @@ -0,0 +1,19 @@ +<% + + if @item.send(attribute).exists? + message = _("Remove %{attribute}", :attribute => @item.class.human_attribute_name(attribute).downcase) + label_text << <<-HTML + #{link_to message, { :action => 'detach', + :id => @item.id, + :attachment => attribute }, + :confirm => _("Are you sure?")} + HTML + end + +%> + +
  • + <%= form.label attribute, label_text %> + <%= form.file_field attribute, options %> + <%= typus_preview(@item, attribute) %> +
  • diff --git a/vendor/plugins/typus/app/views/admin/templates/_password.html.erb b/vendor/plugins/typus/app/views/admin/templates/_password.html.erb new file mode 100644 index 0000000..4b24a19 --- /dev/null +++ b/vendor/plugins/typus/app/views/admin/templates/_password.html.erb @@ -0,0 +1,4 @@ +
  • + <%= form.label attribute, label_text %> + <%= form.password_field attribute, options %> +
  • \ No newline at end of file diff --git a/vendor/plugins/typus/app/views/admin/templates/_selector.html.erb b/vendor/plugins/typus/app/views/admin/templates/_selector.html.erb new file mode 100644 index 0000000..206054e --- /dev/null +++ b/vendor/plugins/typus/app/views/admin/templates/_selector.html.erb @@ -0,0 +1,9 @@ +<% + values = @resource[:class]::const_get("#{attribute.upcase}") + values = values.invert if values.kind_of?(Hash) +%> + +
  • + <%= form.label attribute, label_text %> + <%= form.select attribute, values, options, html_options %> +
  • diff --git a/vendor/plugins/typus/app/views/admin/templates/_string.html.erb b/vendor/plugins/typus/app/views/admin/templates/_string.html.erb new file mode 100644 index 0000000..e757989 --- /dev/null +++ b/vendor/plugins/typus/app/views/admin/templates/_string.html.erb @@ -0,0 +1,22 @@ +<% + + # Read only fields. + if @resource[:class].typus_field_options_for(:read_only).to_s.include?(attribute) + custom = { :readonly => 'readonly' } + label_text << " #{_("Read only")}" + end + + # Auto generated fields. + if @resource[:class].typus_field_options_for(:auto_generated).include?(attribute) + custom = { :auto_generated => true } + label_text << " #{_("Auto generated")}" + end + + options.merge!(custom) if custom + +%> + +
  • + <%= form.label attribute, label_text %> + <%= form.text_field attribute, options %> +
  • \ No newline at end of file diff --git a/vendor/plugins/typus/app/views/admin/templates/_text.html.erb b/vendor/plugins/typus/app/views/admin/templates/_text.html.erb new file mode 100644 index 0000000..102249e --- /dev/null +++ b/vendor/plugins/typus/app/views/admin/templates/_text.html.erb @@ -0,0 +1,9 @@ +<% + custom = { :rows => @resource[:class].typus_options_for(:form_rows) } + options = options.merge!(custom) +%> + +
  • + <%= form.label attribute, label_text %> + <%= form.text_area attribute, options %> +
  • \ No newline at end of file diff --git a/vendor/plugins/typus/app/views/admin/templates/_time.html.erb b/vendor/plugins/typus/app/views/admin/templates/_time.html.erb new file mode 100644 index 0000000..748acbc --- /dev/null +++ b/vendor/plugins/typus/app/views/admin/templates/_time.html.erb @@ -0,0 +1,9 @@ +<% + custom = { :include_blank => false } + options.merge!(custom) +%> + +
  • + <%= form.label attribute, label_text %> + <%= form.time_select attribute, options, html_options %> +
  • \ No newline at end of file diff --git a/vendor/plugins/typus/app/views/layouts/admin.html.erb b/vendor/plugins/typus/app/views/layouts/admin.html.erb new file mode 100644 index 0000000..233dfe3 --- /dev/null +++ b/vendor/plugins/typus/app/views/layouts/admin.html.erb @@ -0,0 +1,69 @@ + + + + + + + + + <%= page_title %> + + <%= stylesheet_link_tag 'admin/reset', + 'admin/screen', + 'admin/jquery.fancybox-1.3.0' %> + <%= yield :stylesheets -%> + + <%= javascript_include_tag 'admin/jquery-1.4.1.min', + 'admin/jquery.fancybox-1.3.0.pack', + 'admin/application' %> + <%= yield :javascripts -%> + + + + + +
    + + + +
    + +
    + +
    + +
    + <%= display_flash_message %> + <%= yield %> +
    + + + +
    + +
    + +
    + + + + + + diff --git a/vendor/plugins/typus/app/views/layouts/typus.html.erb b/vendor/plugins/typus/app/views/layouts/typus.html.erb new file mode 100644 index 0000000..d6c12a8 --- /dev/null +++ b/vendor/plugins/typus/app/views/layouts/typus.html.erb @@ -0,0 +1,33 @@ + + + + + + + + + + + <%= page_title %> + + <%= stylesheet_link_tag 'admin/reset', :media => 'screen' %> + <%= stylesheet_link_tag 'admin/screen', :media => 'screen' %> + + + + + +
    +

    <%= Typus::Configuration.options[:app_name] %>

    + <%= display_flash_message %> + <%= yield %> +
    + +
    + <%= typus_block :location => 'shared', :partial => 'footer' %> +
    + + + + \ No newline at end of file diff --git a/vendor/plugins/typus/app/views/typus/dashboard.html.erb b/vendor/plugins/typus/app/views/typus/dashboard.html.erb new file mode 100644 index 0000000..248d3d7 --- /dev/null +++ b/vendor/plugins/typus/app/views/typus/dashboard.html.erb @@ -0,0 +1,9 @@ +<% content_for :sidebar do %> + <%= typus_block :location => 'dashboard', :partial => 'sidebar' %> +<% end %> + +

    <%= _("Dashboard") %>

    + +<%= applications %> + +<%= resources %> diff --git a/vendor/plugins/typus/app/views/typus/recover_password.html.erb b/vendor/plugins/typus/app/views/typus/recover_password.html.erb new file mode 100644 index 0000000..7c64fa9 --- /dev/null +++ b/vendor/plugins/typus/app/views/typus/recover_password.html.erb @@ -0,0 +1,16 @@ +<% form_for :typus_user, :url => { :action => :recover_password } do |form| %> + +
      + +
    • + <%= form.label :email, Typus.user_class.human_attribute_name(:email) %> + <%= form.text_field :email, :size => 20, :class => 'text' %> +
    • + +
    • + <%= submit_tag _("Recover password"), :class => 'button' %> <%= link_to _("I remember my password"), admin_sign_in_path %> +
    • + +
    + +<% end %> \ No newline at end of file diff --git a/vendor/plugins/typus/app/views/typus/reset_password.html.erb b/vendor/plugins/typus/app/views/typus/reset_password.html.erb new file mode 100644 index 0000000..475c7b0 --- /dev/null +++ b/vendor/plugins/typus/app/views/typus/reset_password.html.erb @@ -0,0 +1,25 @@ +<% form_for :typus_user, :url => { :action => :reset_password } do |form| %> + + <%= hidden_field_tag :token, @typus_user.token %> + + <%= error_messages_for :typus_user, :header_message => nil, :message => nil %> + +
      + +
    • + <%= form.label :password, Typus.user_class.human_attribute_name(:password) %> + <%= form.password_field :password, :size => 20, :class => 'text' %> +
    • + +
    • + <%= form.label :password_confirmation, Typus.user_class.human_attribute_name(:password_confirmation) %> + <%= form.password_field :password_confirmation, :size => 20, :class => 'text' %> +
    • + +
    • + <%= submit_tag _("Change password"), :class => 'button' %> <%= link_to _("I remember my password"), admin_sign_in_path %> +
    • + +
    + +<% end %> \ No newline at end of file diff --git a/vendor/plugins/typus/app/views/typus/sign_in.html.erb b/vendor/plugins/typus/app/views/typus/sign_in.html.erb new file mode 100644 index 0000000..b0d100b --- /dev/null +++ b/vendor/plugins/typus/app/views/typus/sign_in.html.erb @@ -0,0 +1,21 @@ +<% form_for :typus_user, :url => { :action => 'sign_in' } do |form| %> + +
      + +
    • + <%= form.label :email, Typus.user_class.human_attribute_name(:email) %> + <%= form.text_field :email, :size => 20, :class => 'text' %> +
    • + +
    • + <%= form.label :password, Typus.user_class.human_attribute_name(:password) %> + <%= form.password_field :password, :size => 20, :class => 'text' %> +
    • + +
    • + <%= submit_tag _("Sign in"), :class => 'button' %> <%= link_to _("Recover password"), admin_recover_password_path if Typus::Configuration.options[:email] %> +
    • + +
    + +<% end %> \ No newline at end of file diff --git a/vendor/plugins/typus/app/views/typus/sign_up.html.erb b/vendor/plugins/typus/app/views/typus/sign_up.html.erb new file mode 100644 index 0000000..10ec701 --- /dev/null +++ b/vendor/plugins/typus/app/views/typus/sign_up.html.erb @@ -0,0 +1,16 @@ +<% form_for :typus_user, :url => { :action => :sign_up } do |form| %> + +
      + +
    • + <%= form.label :email, Typus.user_class.human_attribute_name(:email) %> + <%= form.text_field :email, :size => 20, :class => 'text' %> +
    • + +
    • + <%= submit_tag _("Sign up"), :class => 'button' %> +
    • + +
    + +<% end %> \ No newline at end of file diff --git a/vendor/plugins/typus/app/views/typus_mailer/reset_password_link.erb b/vendor/plugins/typus/app/views/typus_mailer/reset_password_link.erb new file mode 100644 index 0000000..d9ff4ab --- /dev/null +++ b/vendor/plugins/typus/app/views/typus_mailer/reset_password_link.erb @@ -0,0 +1,6 @@ + +<%= _("You can update your password at") %>: + + <%= @url %> + +<%= _("If you didn't request a password update, you can ignore this message") %> diff --git a/vendor/plugins/typus/config/locales/ca.yml b/vendor/plugins/typus/config/locales/ca.yml new file mode 100644 index 0000000..3b99610 --- /dev/null +++ b/vendor/plugins/typus/config/locales/ca.yml @@ -0,0 +1,118 @@ +# Catalan translations for Typus +# by Lleïr Borràs + +ca: + + "A valid token is required": "Es necessita un token vàlid." + "Actions": "Accions" + "Active": "Actiu" + "Add": "Afegir" + "Add new": "Afegir nou" + "Are you sure?": "Estàs segur?" + "Are you sure you want to leave this page?": "Estàs segur que vols abandonar aquesta pàgina?" + "Are you sure you want to sign out and end your session?": "Estàs segur que vols sortir i tancar la sessió?" + "As you're not the admin or the owner of this record you cannot edit it": "Com que no ets l'administrador o el propietari d'aquest registre no el pots editar." + + "Change password": "Canviar contrassenya" + "Change %{attribute}?": "Canviar %{attribute}?" + "Checked if active": "Marca-ho per activar" + "Click OK to continue, or click Cancel to stay on this page": "Prem OK per continuar, o prem Cancel·lar per romandre en aquesta página." + "Create %{resource}": "Crear %{resource}" + + "Dashboard": "Panell de control" + "Do you want to cancel it?": "Vols cancel·lar-lo?" + "Documentation": "Documentació" + "Down": "Baixar" + + "Edit": "Editar" + "Enter your email below to create the first user": "Introdueix el teu email per crear el primer usuari." + "Error! Typus User or role doesn't exist": "Error! Typus User o el rol no existixen." + + "False": "Fals" + "Filter": "Filtrar" + "Filter by": "Filtrar per" + + "Go to": "Anar a" + + "I remember my password": "Recordo la meva contrassenya" + "If you didn't request a password update, you can ignore this message": "Si no has demanat una actualització de la teva contrassenya, pots ignorar aquest missatge." + "If you have made any changes to the fields without clicking the Save/Update entry button, your changes will be lost": "Si has realitzat algun canvi en els camps sense premer el botó Guardar/Actualitzar, els teus canvis es perdran." + "Inactive": "Inactiu" + + "Last few days": "Últims dies" + "Last 30 days": "Últims 30 dies" + "Last 7 days": "Últims 7 dies" + "License": "Llicència" + "Logged as": "Identificat com" + "Login": "Login" + + "New": "Nou" + "Next": "Següent" + + "Options": "Opcions" + + "Password recovery link sent to your email": "L'enllaç de recuperació de contrassenya enviat al teu correu electrònic." + "Previous": "Anterior" + + "Record moved %{to}": "Registre desplaçat %{to}." + "Recover password": "Recuperar contrassenya" + "Remove": "Esborrar" + "Remove %{attribute}": "Esborrar %{attribute}" + "Remove filter": "Treure filtre" + "Reset password": "Canviar contrassenya" + "Resources": "Recursos" + + "Save %{resource}": "Guardar %{resource}" + "Search": "Cercar" + "Search by": "Cercar per" + "Setup": "Configurar" + "Send us feedback": "Envians comentaris" + "Show": "Mostrar" + "Sign in": "Entrar" + "Sign out": "Sortir" + "Sign up": "Crear compte" + "Submit a bug report": "Informar d'un error" + "System Users Administration": "Administrar usuaris del sistema" + + "That doesn't seem like a valid email address": "Això no sembla ser una adreça de correu electrònic vàlida." + "The email and/or password you entered is invalid": "El correu i/o la contrasenya proporcionats no són vàlids." + "There are not defined applications in config/typus/*.yml": "No hi ha aplicacions definides a config/typus/*.yml" + "There are no %{records}": "No hi han %{records}." + "There are no %{records} under this filter": "No hi han %{records} amb aquest filtre." + "Today": "Avui" + "Toggle is disabled": "Alternar està desactivat." + "True": "Cert" + + "Unrelate %{unrelate_model} from %{unrelate_model_from}?": "Deslligat %{unrelate_model} de %{unrelate_model_from}?" + "Up": "Pujar" + + "You're adding a new %{resource_from}": "Estàs afegint un nou %{resource_from}." + "You're adding a new %{resource_from} to %{resource_to}": "Estàs afegint un nou %{resource_from} a %{resource_to}." + "You're not allowed to remove Typus Users": "No pots esborrar usuaris de typus." + "You're not allowed to toggle status": "No pots canviar el teu estat." + "You are about to delete a %{model}.\nAre you sure you want to continue?": + "You can update your password at": "Pots actualitzar la teva contrassenya a " + "You can't change your role": "No pots canviar-te tu mateix el rol." + "You can't remove yourself": "No et pots eliminar a tu mateix." + "You can't toggle your status": "No pots canviar-te l'estat." + "You're updating a %{resource_from}": "Estàs actualitzant un %{resource_from}." + "You're updating a %{resource_from} for %{resource_to}": "Estàs actualitzant un %{resource_from} de %{resource_to}." + "Your new password is %{password}": "La teva nova contrassenya és %{password}." + + "View %{attribute}": "Veure %{attribute}" + "View site": "Veure la web" + + "%{attachment} can't be removed": "%{attachment} no es pot esborrar." + "%{attachment} removed": "%{attachment} esborrat." + "%{current_user_role} can't delete this item": "%{current_user_role} no pot esborrar aquest element." + "%{current_user_role} can't display items": "%{current_user_role} no pot mostrar els elements." + "%{current_user_role} can't go to %{action} on %{controller}": "%{current_user_role} no pot visitar %{action} a %{controller}." + "%{current_user_role} can't perform action. (%{action})": "%{current_user_role} no pot realitzar l'acció. (%{action})" + "%{model} filtered by %{filtered_by}": "%{model} filtrats per %{filtered_by}" + "%{model} successfully created": "%{model} satisfactòriament creat." + "%{model} successfully updated": "%{model} satisfactòriament actualitzat." + "%{model} successfully removed": "%{model} satisfactòriament eliminat." + "%{model} %{attribute} changed": "%{model} %{attribute} canviat." + "%{model_a} related to %{model_b}": "%{model_a} relacionat amb %{model_b}." + "%{model_a} successfully assigned to %{model_b}": "%{model_a} assignat satisfactòriament a %{model_b}." + "%{model_a} unrelated from %{model_b}": "%{model_a} no està relacionat amb %{model_b}." diff --git a/vendor/plugins/typus/config/locales/de.yml b/vendor/plugins/typus/config/locales/de.yml new file mode 100644 index 0000000..e4766ad --- /dev/null +++ b/vendor/plugins/typus/config/locales/de.yml @@ -0,0 +1,118 @@ +# German translations for Typus +# by Michael Grunewalder + +de: + + "A valid token is required": "Ein gültiges Merkmal ist erforderlich" + "Actions": "Aktionen" + "Active": + "Add": "Zufügen" + "Add new": "Erstellen" + "Are you sure?": + "Are you sure you want to leave this page?": "Sind Sie sicher, dass Sie diese Seite verlassen möchten?" + "Are you sure you want to sign out and end your session?": "Wollen Sie sich abmelden und die Sitzung beenden?" + "As you're not the admin or the owner of this record you cannot edit it": "Nur der Administrator oder der Eigent7uuml;er des Datensates kann ihn bearbeiten" + + "Change password": "Passwort ändern" + "Change %{attribute}?": "%{attribute}ändern?" + "Checked if active": "Angekreuzt wenn activiert" + "Click OK to continue, or click Cancel to stay on this page": "Klicken Sie OK zum Fortfahren oder Abbrechen um auf dieser Seite zu bleiben" + "Create %{resource}": "Erstellen %{resource}" + + "Dashboard": "Dashboard" + "Do you want to cancel it?": "Wollen Sie abbrechen?" + "Documentation": "Dokumentation" + "Down": "Runter" + + "Edit": "Bearbeiten" + "Enter your email below to create the first user": "Geben Sie Ihre Email Adresse unten ein, um den ersten Benutzer zu erstellen" + "Error! Typus User or role doesn't exist": "Fehler: Typus Benutzer oder Rolle existiert nicht" + + "False": "Falsch" + "Filter": "Filter" + "Filter by": "Filter nach" + + "Go to": "Gehe zu" + + "I remember my password": "Ich erinnere mein Passwort" + "If you didn't request a password update, you can ignore this message": "Falls Sie keine Passwort Äderung beantragt haben, können Sie diese nachricht ignorieren" + "If you have made any changes to the fields without clicking the Save/Update entry button, your changes will be lost": "Wenn Sie Änderungen an Feldern vorgenommen haben, ohne den Speichern/Bearbeiten Knopf gedr7uuml;ckt zu haben, gehen diese Änderungen verloren" + "Inactive": + + "Last few days": "Letzten Tage" + "Last 30 days": "Letzten 30 Tage" + "Last 7 days": "Letzten 7 Tage" + "License": "Lizenz" + "Logged as": "Aufgezeichnet als" + "Login": "Anmeldem" + + "New": "Neu" + "Next": "Nächster" + + "Options": "Optionen" + + "Password recovery link sent to your email": "Der Link zur Wiederfindung des Passworts wurde an Ihre Email Adresse gechickt" + "Previous": "Vorheriger" + + "Record moved %{to}": "Datensatz verschoben nach %{to}" + "Recover password": "Passwort vergessen?" + "Remove": + "Remove %{attribute}": "%{attribute} entfernen" + "Remove filter": "Filter entfernen" + "Reset password": "Passwort zurücksetzen" + "Resources": "Resourcen" + + "Save %{resource}": + "Search": "Suchen" + "Search by": "Suchen nach" + "Send us feedback": "Senden Sie uns Ihr Feedback" + "Setup": "Einrichten" + "Show": "Anzeigen" + "Sign in": "Anmelden" + "Sign out": "Abmelden" + "Sign up": "Konto erstellen" + "Submit a bug report": + "System Users Administration": "System Benutzer Verwaltung" + + "That doesn't seem like a valid email address": "Das schein keine gültige Email Dresse zu sein" + "The email and/or password you entered is invalid": "Die eingegebene Email Adresse und/oder das Passwort ist ungültig" + "There are no %{records}": "Keine %{records}vorhanden" + "There are no %{records} under this filter": "Unter diesem Filter sind keine %{records} vorhanden" + "There are not defined applications in config/typus/*.yml": "Es gibt keine definierten Anwendungen in config/typus/*.yml" + "Today": "Heute" + "Toggle is disabled": "Schalter ist deaktiviert" + "True": "Richtig" + + "Unrelate %{unrelate_model} from %{unrelate_model_from}?": "Verknüpfung zwischen %{unrelate_model} und %{unrelate_model_from}entfernen?" + "Up": "Hoch" + + "View %{attribute}": + "View site": "Site anzeigen" + + "You're adding a new %{resource_from}": "Sie erstellen eine neue %{resource_from}" + "You're adding a new %{resource_from} to %{resource_to}": "Sie fügen eine neue %{resource_from} an %{resource_to}" + "You're not allowed to remove Typus Users": "Sie sind nicht berechtigt den Typus Benutzer zu entfernen" + "You're not allowed to toggle status": "Sie können den Status nicht umschalten" + "You're updating a %{resource_from}": "Sie bearbeiten eine %{resource_from}" + "You're updating a %{resource_from} for %{resource_to}": "Sie bearbeiten eine %{resource_from} fü %{resource_to}" + "You are about to delete a %{model}.\nAre you sure you want to continue?": + "You can update your password at": "Sie k7ouml;nnen Ihr Passwort ändern unter" + "You can't change your role": "Sie können Ihre Rolle nicht ändern" + "You can't remove yourself": "Sie können sich selbst nicht entfernen" + "You can't toggle your status": "Sie können Ihren Status nicht umschalten" + "Your new password is %{password}": "Ihr neues Passwort ist %{password}" + + "%{attachment} can't be removed": + "%{attachment} removed": + "%{current_user_role} can't delete this item": "%{current_user_role} kann diesen Eintrag nicht löschen" + "%{current_user_role} can't display items": "%{current_user_role} kann Einträge nicht anzeigen" + "%{current_user_role} can't go to %{action} on %{controller}": "%{current_user_role} kann %{action} von %{controller} nicht asuführen" + "%{current_user_role} can't perform action. (%{action})": "%{current_user_role} kann die Aktion nicht ausführen. (%{action})" + "%{model} filtered by %{filtered_by}": "%{model} gefiltert nach %{filtered_by}" + "%{model} successfully created": "%{model} erfolgreich erstellt" + "%{model} successfully removed": "%{model} erfolgreich gelöscht" + "%{model} successfully updated": "%{model} erfolgreich geändert" + "%{model} %{attribute} changed": "%{model} %{attribute} geändert" + "%{model_a} related to %{model_b}": "%{model_a} ist verknüpft mit %{model_b}" + "%{model_a} successfully assigned to %{model_b}": "%{model_a} erfolgreich an %{model_b} zugewiesen" + "%{model_a} unrelated from %{model_b}": "%{model_a} unverbunden mit %{model_b}" diff --git a/vendor/plugins/typus/config/locales/es.yml b/vendor/plugins/typus/config/locales/es.yml new file mode 100644 index 0000000..dd0c24d --- /dev/null +++ b/vendor/plugins/typus/config/locales/es.yml @@ -0,0 +1,118 @@ +# Spanish translations for Typus +# by Felipe Talavera + +es: + + "A valid token is required": "Se requiere un token válido." + "Actions": "Acciones" + "Active": "Activo" + "Add": "Añadir" + "Add new": "Añadir nuevo" + "Are you sure?": "¿Estás seguro?" + "Are you sure you want to leave this page?": "¿Estás seguro que quieres abandonar esta página?" + "Are you sure you want to sign out and end your session?": "¿Estás seguro que quieres salir y cerrar la sessión?" + "As you're not the admin or the owner of this record you cannot edit it": "Como no eres el admin o el propietario de este registro no puedes editarlo." + + "Change password": "Cambiar contraseña" + "Change %{attribute}?": "Cambiar %{attribute}?" + "Checked if active": "Marca para activar" + "Click OK to continue, or click Cancel to stay on this page": "Pulse OK para continuar, o pulse Cancelar para permanecer en esta página." + "Create %{resource}": "Crear %{resource}" + + "Dashboard": "Panel de control" + "Do you want to cancel it?": "¿Quieres cancelarlo?" + "Documentation": "Documentación" + "Down": "Bajar" + + "Edit": "Editar" + "Enter your email below to create the first user": "Introduce tu email para crear el primer usuario." + "Error! Typus User or role doesn't exist": "Error! Typus User o el role no existen." + + "False": "Falso" + "Filter": "Filtrar" + "Filter by": "Filtrar por" + + "Go to": "Ir a" + + "I remember my password": "Recuerdo mi contraseña" + "If you didn't request a password update, you can ignore this message": "Si no pediste una actualización de tu contraseña, puedes ignorar este mensaje." + "If you have made any changes to the fields without clicking the Save/Update entry button, your changes will be lost": "Si has relizado algún cambio en los campos sin pulsar en el botón de Guardar/Actualizar, tus cambios se perderán." + "Inactive": "Inactivo" + + "Last few days": "Últimos dias" + "Last 30 days": "Últimos 30 dias" + "Last 7 days": "Últimos 7 dias" + "License": "Licencia" + "Logged as": "Autenticado como" + "Login": "Login" + + "New": "Nuevo" + "Next": "Siguiente" + + "Options": "Opciones" + + "Password recovery link sent to your email": "Enlace de recuperación de contraseña enviado a tu correo electrónico." + "Previous": "Anterior" + + "Record moved %{to}": "Record moved %{to}." + "Recover password": "Recuperar contraseña" + "Remove": "Eliminar" + "Remove %{attribute}": "Borrar %{attribute}" + "Remove filter": "Quitar filtro" + "Reset password": "Cambiar contraseña" + "Resources": "Recursos" + + "Save %{resource}": "Guardar %{resource}" + "Search": "Búsqueda" + "Search by": "Buscar por" + "Setup": "Configurar" + "Send us feedback": "Envianos tu comentarios" + "Show": "Mostrar" + "Sign in": "Entrar" + "Sign out": "Salir" + "Sign up": "Crear cuenta" + "Submit a bug report": "Reporta un error" + "System Users Administration": "Administrar usuarios del sistema" + + "That doesn't seem like a valid email address": "Eso no parecia una dirección válida de correo electrónico." + "The email and/or password you entered is invalid": "El correo y/o la contraseña proporcionadas no son válidas." + "There are not defined applications in config/typus/*.yml": "No hay aplicaciones definidas en config/typus/*.yml" + "There are no %{records}": "No hay %{records}." + "There are no %{records} under this filter": "No hay %{records} con este filtro." + "Today": "Hoy" + "Toggle is disabled": "Alternat està desactivado." + "True": "Verdadero" + + "Unrelate %{unrelate_model} from %{unrelate_model_from}?": "Desvincular %{unrelate_model} de %{unrelate_model_from}?" + "Up": "Subir" + + "You're adding a new %{resource_from}": "Estás añadiendo un nuevo %{resource_from}." + "You're adding a new %{resource_from} to %{resource_to}": "Estás añadiendo un nuevo %{resource_from} a %{resource_to}." + "You're not allowed to remove Typus Users": "No se te permite borrar usuarios de typus." + "You're not allowed to toggle status": "No se te permite cambiar tu estado." + "You are about to delete a %{model}.\nAre you sure you want to continue?": "Estás a punto de eliminar un %{model}.\n¿Seguro que deseas continuar?" + "You can update your password at": "Puedes actualizar tu contraseña en" + "You can't change your role": "No puedes cambiar tu propio rol." + "You can't remove yourself": "No te puedes eliminar a ti mismo." + "You can't toggle your status": "No puedes cambiar tu estado." + "You're updating a %{resource_from}": "Estás actualizando un %{resource_from}." + "You're updating a %{resource_from} for %{resource_to}": "Estás actualizando un %{resource_from} de %{resource_to}." + "Your new password is %{password}": "Tu nueva contraseña es %{password}." + + "View %{attribute}": + "View site": "Ver web" + + "%{attachment} can't be removed": "%{attachment} no puede ser borrado." + "%{attachment} removed": "%{attachment} borrado." + "%{current_user_role} can't delete this item": "%{current_user_role} no puede borrar este elemento." + "%{current_user_role} can't display items": "%{current_user_role} no puede mostrar los elementos." + "%{current_user_role} can't go to %{action} on %{controller}": "%{current_user_role} no pude ir a %{action} en %{controller}." + "%{current_user_role} can't perform action. (%{action})": "%{current_user_role} no puede realizar la acción. (%{action})" + "%{model} filtered by %{filtered_by}": "%{model} filtrados por %{filtered_by}" + "%{model} successfully created": "%{model} satisfactoriamente creado." + "%{model} successfully updated": "%{model} satisfactoriamente actualizado." + "%{model} successfully removed": "%{model} satisfactoriamente eliminado." + "%{model} %{attribute} changed": "%{model} %{attribute} cambiado." + "%{model_a} related to %{model_b}": "%{model_a} relacionado con %{model_b}." + "%{model_a} successfully assigned to %{model_b}": "%{model_a} asignado satisfactoriamente a %{model_b}." + "%{model_a} unrelated from %{model_b}": "%{model_a} no esta relacionado con %{model_b}." diff --git a/vendor/plugins/typus/config/locales/fr.yml b/vendor/plugins/typus/config/locales/fr.yml new file mode 100644 index 0000000..d64fdc7 --- /dev/null +++ b/vendor/plugins/typus/config/locales/fr.yml @@ -0,0 +1,118 @@ +# French translations for Typus +# by Ned Baldessin + +fr: + + "A valid token is required": "Un token valide est nécessaire" + "Actions": + "Active": + "Add": "Ajouter" + "Add new": "Ajouter nouveau" + "Are you sure?": + "Are you sure you want to leave this page?": "Êtes-vous certain de vouloir quitter cette page?" + "Are you sure you want to sign out and end your session?": + "As you're not the admin or the owner of this record you cannot edit it": "Vous n'êtes pas le propriétaire de cette entrée, ou un administrateur, par conséquent vous ne pouvez pas le modifier" + + "Change password": "Modifier le mot de passe" + "Change %{attribute}?": "Changer %{attribute}?" + "Checked if active": "Coché si actif" + "Click OK to continue, or click Cancel to stay on this page": "Cliquez sur Ok pour continuer, ou Annuler pour rester sur cette page." + "Create %{resource}": "Créer %{resource}" + + "Dashboard": "Tableau de bord" + "Do you want to cancel it?": "Voulez-vous annuler?" + "Documentation": + "Down": "Descendre" + + "Edit": "Éditer" + "Enter your email below to create the first user": "Entrez votre adresse email pour créer le premier utilisateur" + "Error! Typus User or role doesn't exist": "Une erreur est survenue. L'utilisateur ou le rôle sont inconnus." + + "False": + "Filter": "Filtrer" + "Filter by": "Filtrer par" + + "Go to": "Aller" + + "I remember my password": "Je me souviens du mot de passe" + "If you didn't request a password update, you can ignore this message": "Si vous n'avez pas demandé à mettre à jour votre mot de passe, vous pouvez ignorer ce message" + "If you have made any changes to the fields without clicking the Save/Update entry button, your changes will be lost": "Si vous avez effectué des modifications sans cliquer sur le bouton Enregistrer ou Mettre à jour, ces modifications seront perdues." + "Inactive": + + "Last few days": + "Last 30 days": + "Last 7 days": + "License": + "Logged as": "Identifié comme" + "Login": "Identification" + + "New": "Nouveau" + "Next": "Suivant" + + "Options": "Options" + + "Password recovery link sent to your email": + "Previous": "Précédent" + + "Record moved %{to}": "Entrées réordonnées" + "Recover password": + "Remove": "Supprimer" + "Remove %{attribute}": "Supprimer %{attribute}" + "Remove filter": "Supprimer le filtre" + "Reset password": "Renouveler le mot de passe" + "Resources": "Ressources" + + "Save %{resource}": + "Search": "Recherche" + "Search by": "Rechercher par" + "Send us feedback": + "Setup": "Configurer" + "Show": "Voir" + "Sign in": "Entrer" + "Sign out": "Déconnexion" + "Sign up": "Ouvrir un compte" + "Submit a bug report": + "System Users Administration": "Modifier les utilisateurs de l'admin" + + "That doesn't seem like a valid email address": "L'adresse email ne semble pas valide" + "The email and/or password you entered is invalid": + "There are no %{records}": "Il n'y aucun(e) %{records}." + "There are no %{records} under this filter": "Il n'y a aucun(e) %{records} avec ce filtre." + "There are not defined applications in config/typus/*.yml": + "Today": + "Toggle is disabled": "Le basculement est désactivé" + "True": + + "Unrelate %{unrelate_model} from %{unrelate_model_from}?": "Dissocier %{unrelate_model} de %{unrelate_model_from}?" + "Up": "Monter" + + "View %{attribute}": + "View site": "Voir le site" + + "You can update your password at": "Vous pouvez modifier votre mot de passe ici" + "You can't change your role": "Vous ne pouvez pas changer votre propre rôle." + "You can't remove yourself": "Vous ne pouvez pas supprimer votre propre compte" + "You can't toggle your status": "Vous ne pouvez pas basculer votre statut" + "Your new password is %{password}": "Votre nouveau mot-de-passe est %{password}." + "You're adding a new %{resource_from}": "Vous ajoutez un nouveau %{resource_from}." + "You're adding a new %{resource_from} to %{resource_to}": "Vous ajoutez un(e) %{resource_from} à un(e) %{resource_to}." + "You're not allowed to remove Typus Users": "Vous n'avez pas le droit de supprimer des utilisateurs de l'administration" + "You're not allowed to toggle status": "Vous n'êtes pas autorisé à basculer votre statut" + "You're updating a %{resource_from}": "Vous mettez-à-jour un(e) %{resource_from}." + "You're updating a %{resource_from} for %{resource_to}": "Vous mettez-à-jour un(e) %{resource_from} pour un(e) %{resource_to}." + "You are about to delete a %{model}.\nAre you sure you want to continue?": + + "%{attachment} removed": + "%{attachment} can't be removed": + "%{model} successfully created": "%{model} correctement créé(e)." + "%{model} successfully removed": "%{model} correctement supprimé(e)." + "%{model} successfully updated": "%{model} correctement mis(e)-à-jour." + "%{model} %{attribute} changed": "%{model} %{attribute} modifié." + "%{model_a} related to %{model_b}": "%{model_a} associé à %{model_b}." + "%{model_a} successfully assigned to %{model_b}": "%{model_a} associé à %{model_b}." + "%{model_a} unrelated from %{model_b}": "%{model_a} dissocié de %{model_b}." + "%{current_user_role} can't display items": "Un utilisateur de rôle %{current_user_role} ne peut pas afficher ces éléments." + "%{current_user_role} can't delete this item": "%{current_user_role} ne peut supprimer cette entrée" + "%{current_user_role} can't go to %{action} on %{controller}": "%{current_user_role} ne peut effectuer %{action} sur %{controller}" + "%{current_user_role} can't perform action. (%{action})": "%{current_user_role} ne peut effectuer l'action (%{action})" + "%{current_user_role} can't perform action (%{action})": "%{current_user_role} ne peut effectuer l'action (%{action})" diff --git a/vendor/plugins/typus/config/locales/hu.yml b/vendor/plugins/typus/config/locales/hu.yml new file mode 100644 index 0000000..39efa20 --- /dev/null +++ b/vendor/plugins/typus/config/locales/hu.yml @@ -0,0 +1,128 @@ +# Hungarian translations for Typus (template) +# by Tompa Gábor - http://github.com/tompagabor/typus + +hu: + + "A valid token is required": "eg érvényes token szükséges" + "Actions": "Akciók" + "Active": "Aktív" + "Add": "Hozzáad" + "Add new": "Új hozzáadása" + "Are you sure?": "Biztos vagy benne?" + "Are you sure you want to leave this page?": "Biztosan el akarod hagyni ezt az oldalt?" + "Are you sure you want to sign out and end your session?": "Biztosan ki akarsz lépni?" + "As you're not the admin or the owner of this record you cannot edit it": "Ezt a bejegyzést csak a tuljadonosa és az adminok szerkeszthetik." + + "Change %{attribute}?": "Megváltoztatod ezt: %{attribute}?" + "Change password": "Jelszó megváltoztatása" + "Checked if active": "Bejelölve aktív" + "Click OK to continue, or click Cancel to stay on this page": "Kattints az OK gombra a továbblépéshez, vagy a mégse gombbal maradhatsz a mostani oldalon" + "Create %{resource}": "%{resource} létrehozása" + + "Dashboard": "Admin nyitólap" + "Do you want to cancel it?": "Szeretnéd visszavonni?" + "Documentation": "Dokumentáció" + "Down": "Le" + + "Edit": "Szerkesztés" + "Enter your email below to create the first user": "Írd be az e-mail címed az első felhasználó létrehozásához" + "Error! Typus User or role doesn't exist": "Hiba! Typus felhasználó vagy a jogosultság nem létezik" + + "False": "Hamis" + "Filter": + "Filter by": "Szűrés" + + "Go to": "Ide" + + "I remember my password": "Emlékszem a jelszavamra" + "If you didn't request a password update, you can ignore this message": "Hogyha nem kértél jelszó emlékesztetőt, nyugodtan töröld ki ezt a levelet." + "If you have made any changes to the fields without clicking the Save/Update entry button, your changes will be lost": "Ha a módosítások után nem kattintassz a Mentés/Firssítés gombra, el fognak veszni a változtatások." + "Inactive": "Inaktív" + + "Last few days": "Utóbbi néhány nap" + "Last 30 days": "Az elmúlt 30 nap" + "Last 7 days": "Az elmúlt 7 nap" + "License": "Licensz" + "Logged as": "Bejelentkezve " + "Login": "Belépés" + + "New": "Új" + "Next": "Következő" + + "Options": "Opciók" + + "Password recovery link sent to your email": "A jelszó helyreállító linket elküldtük az email címedre." + "Previous": "Előző" + + "Record moved %{to}": "A bejegyzés áthelyezve: %{to}" + "Recover password": "Jelszó helyreállítás" + "Remove": "Eltávolítás" + "Remove %{attribute}": "Szűrő %{attribute}" + "Remove filter": "Szűrő eltávolítása" + "Reset password": "Jelszó módosítása" + "Resources": "Források" + + "Save %{resource}": "%{resource} mentése" + "Search": "Keresés" + "Search by": "Keresés" + "Send us feedback": "Visszajelzés küldése" + "Setup": "Beállítás" + "Show": "Mutatás" + "Sign in": "Bejelentkezés" + "Sign out": "Kijelentkezés" + "Sign up": "Regisztráció" + "Submit a bug report": "Hiba jelzése a fejlesztőknek" + "System Users Administration": "Rendszeradminisztrátorok kezelése" + + "That doesn't seem like a valid email address": "Ez nem tűnik valódi e-mail címnek" + "The email and/or password you entered is invalid": "A megadott felhasználónév és/vagy jelszó nem megfelelő" + "There are no %{records}": "Nincsenek %{records}" + "There are no %{records} under this filter": "Nincsenek %{records} a szűrővel" + "There are not defined applications in config/typus/*.yml": "Nincsen definiált alkalmazás a config/typus/*.yml fájlban" + "Today": "Ma" + "Toggle is disabled": "Toggle letitlva" + "True": "Igaz" + + "Unrelate %{unrelate_model} from %{unrelate_model_from}?": "Unrelate %{unrelate_model} from %{unrelate_model_from}?" + "Up": "Fel" + + "View %{attribute}": + "View site": "A weboldal megtekintése" + + "You're adding a new %{resource_from}": "%{resource_from} hozzáadása" + "You're adding a new %{resource_from} to %{resource_to}": "%{resource_from} hozzáadása %{resource_to} rekordhoz" + "You're not allowed to toggle status": "Nincsen jogod változtatni a státuszon" + "You're not allowed to remove Typus Users": "Nincsen jogod törölni Typus felhasználókat" + "You're updating a %{resource_from}": "%{resource_from} frissítése" + "You're updating a %{resource_from} for %{resource_to}": "%{resource_from} frissítése %{resource_to} rekordhoz" + "You are about to delete a %{model}.\nAre you sure you want to continue?": + "You can update your password at": "Frissítheted a jelszavad" + "You can't change your role": "Nincsen jogod megváltoztatni a jogosultsági szintedet" + "You can't remove yourself": "Nem törölheted saját magad" + "You can't toggle your status": "Nincs jogod változtatni a státuszodat" + "Your new password is %{password}": "Az új jelszavad: %{password}" + + "%{attachment} can't be removed": "%{attachment} nem törölhető" + "%{attachment} removed": "%{attachment} törölve" + "%{current_user_role} can't delete this item": "%{current_user_role} nem lehet törölni az elemet" + "%{current_user_role} can't display items": "%{current_user_role} nem nézheti meg az elemeket" + "%{current_user_role} can't go to %{action} on %{controller}": "%{current_user_role} nem hívhatja meg ezt a műveletet" + "%{current_user_role} can't perform action. (%{action})": "%{current_user_role} nem futtathatja ez a műveletet (%{action})" + "%{model} filtered by %{filtered_by}": "%{model} szűrve %{filtered_by}" + "%{model} successfully created": "%{model} sikeresen létrehozva" + "%{model} successfully removed": "%{model} sikeresen törölve" + "%{model} successfully updated": "%{model} sikereseb frissítve" + "%{model} %{attribute} changed": "%{model} %{attribute} megváltozott" + "%{model_a} related to %{model_b}": "%{model_a} kapcsolódik %{model_b}hez" + "%{model_a} successfully assigned to %{model_b}": "%{model} sikeresen hozzárendelve %{model_b}hez" + "%{model_a} unrelated from %{model_b}": "%{model_a} nem kapcsolódik %{model_b}hez " + + "Title": "Cím" + "Lead": "Bevezető" + "Author": "Szerző" + "Last editor": "Utoljára módosította" + "State": "Állapot" + "Body": "Tartalom" + "Comment count": "Hozzászólások száma" + "Has comment": "Hozzászólás engedélyezve" + "Published at": "Publikálva" diff --git a/vendor/plugins/typus/config/locales/language.yml.template b/vendor/plugins/typus/config/locales/language.yml.template new file mode 100644 index 0000000..577a22c --- /dev/null +++ b/vendor/plugins/typus/config/locales/language.yml.template @@ -0,0 +1,118 @@ +# translations for Typus (template) +# by + +: + + "A valid token is required": + "Actions": + "Active": + "Add": + "Add new": + "Are you sure?": + "Are you sure you want to leave this page?": + "Are you sure you want to sign out and end your session?": + "As you're not the admin or the owner of this record you cannot edit it": + + "Change %{attribute}?": + "Change password": + "Checked if active": + "Click OK to continue, or click Cancel to stay on this page": + "Create %{resource}": + + "Dashboard": + "Do you want to cancel it?": + "Documentation": + "Down": + + "Edit": + "Enter your email below to create the first user": + "Error! Typus User or role doesn't exist": + + "False": + "Filter": + "Filter by": + + "Go to": + + "I remember my password": + "If you didn't request a password update, you can ignore this message": + "If you have made any changes to the fields without clicking the Save/Update entry button, your changes will be lost": + "Inactive": + + "Last few days": + "Last 30 days": + "Last 7 days": + "License": + "Logged as": + "Login": + + "New": + "Next": + + "Options": + + "Password recovery link sent to your email": + "Previous": + + "Record moved %{to}": + "Recover password": + "Remove": + "Remove %{attribute}": + "Remove filter": + "Reset password": + "Resources": + + "Save %{resource}": + "Search": + "Search by": + "Send us feedback": + "Setup": + "Show": + "Sign in": + "Sign out": + "Sign up": + "Submit a bug report": + "System Users Administration": + + "That doesn't seem like a valid email address": + "The email and/or password you entered is invalid": + "There are no %{records}": + "There are no %{records} under this filter": + "There are not defined applications in config/typus/*.yml": + "Today": + "Toggle is disabled": + "True": + + "Unrelate %{unrelate_model} from %{unrelate_model_from}?": + "Up": + + "View %{attribute}": + "View site": + + "You're adding a new %{resource_from}": + "You're adding a new %{resource_from} to %{resource_to}": + "You're not allowed to toggle status": + "You're not allowed to remove Typus Users": + "You're updating a %{resource_from}": + "You're updating a %{resource_from} for %{resource_to}": + "You are about to delete a %{model}.\nAre you sure you want to continue?": + "You can update your password at": + "You can't change your role": + "You can't remove yourself": + "You can't toggle your status": + "Your new password is %{password}": + + "%{attachment} can't be removed": + "%{attachment} removed": + "%{current_user_role} can't delete this item": + "%{current_user_role} can't display items": + "%{current_user_role} can't go to %{action} on %{controller}": + "%{current_user_role} can't perform action. (%{action})": + "%{model} filtered by %{filtered_by}": + "%{model} successfully created": + "%{model} successfully removed": + "%{model} successfully updated": + "%{model} %{attribute} changed": + "%{model_a} related to %{model_b}": + "%{model_a} successfully assigned to %{model_b}": + "%{model_a} unrelated from %{model_b}": diff --git a/vendor/plugins/typus/config/locales/models/README.md b/vendor/plugins/typus/config/locales/models/README.md new file mode 100644 index 0000000..6db80fd --- /dev/null +++ b/vendor/plugins/typus/config/locales/models/README.md @@ -0,0 +1,8 @@ +Important +========= + +Model translations are disabled by default. + +It's responsability of the application to translate the models. If +you want to use the provided translations add the `config/locales/models` +to the I18n load path. diff --git a/vendor/plugins/typus/config/locales/models/ca_models.yml b/vendor/plugins/typus/config/locales/models/ca_models.yml new file mode 100644 index 0000000..27a6e17 --- /dev/null +++ b/vendor/plugins/typus/config/locales/models/ca_models.yml @@ -0,0 +1,16 @@ +# Catalan translations for Typus +# by Lleïr Borràs + +ca: + activerecord: + models: + typus_user: Usuari + attributes: + typus_user: + email: "Correu electrònic" + first_name: "Nom" + last_name: "Cognoms" + password: "Contrasenya" + password_confirmation: "Confirmar contrasenya" + status: "Estat" + role: "Rol" diff --git a/vendor/plugins/typus/config/locales/models/de_models.yml b/vendor/plugins/typus/config/locales/models/de_models.yml new file mode 100644 index 0000000..d2c7143 --- /dev/null +++ b/vendor/plugins/typus/config/locales/models/de_models.yml @@ -0,0 +1,13 @@ +de: + activerecord: + models: + typus_user: "Typus Benutzer" + attributes: + typus_user: + email: + first_name: "Vorname" + last_name: "Nachname" + password: "Passwort" + password_confirmation: "Passwort Bestätigung" + status: + role: diff --git a/vendor/plugins/typus/config/locales/models/es_models.yml b/vendor/plugins/typus/config/locales/models/es_models.yml new file mode 100644 index 0000000..4be1100 --- /dev/null +++ b/vendor/plugins/typus/config/locales/models/es_models.yml @@ -0,0 +1,13 @@ +es: + activerecord: + models: + typus_user: Usuario + attributes: + typus_user: + email: "Correo electronico" + first_name: "Nombre" + last_name: "Apellidos" + password: "Contraseña" + password_confirmation: "Confirmar contraseña" + status: "Estado" + role: "Rol" diff --git a/vendor/plugins/typus/config/locales/models/fr_models.yml b/vendor/plugins/typus/config/locales/models/fr_models.yml new file mode 100644 index 0000000..4e68999 --- /dev/null +++ b/vendor/plugins/typus/config/locales/models/fr_models.yml @@ -0,0 +1,13 @@ +fr: + activerecord: + models: + typus_user: "Utilisateur admin" + attributes: + typus_user: + email: + first_name: "Prénom" + last_name: "Nom de famille" + password: "Mot de passe" + password_confirmation: "Confirmation du mot de passe" + status: "État" + role: diff --git a/vendor/plugins/typus/config/locales/models/hu_models.yml b/vendor/plugins/typus/config/locales/models/hu_models.yml new file mode 100644 index 0000000..14e5c59 --- /dev/null +++ b/vendor/plugins/typus/config/locales/models/hu_models.yml @@ -0,0 +1,13 @@ +hu: + activerecord: + models: + typus_user: "Typus felhasználó" + attributes: + typus_user: + email: + first_name: "Vezetéknév" + last_name: "Keresznév" + password: "Jelszó" + password_confirmation: "Jelszó megerősítés" + status: "Státusz" + role: "Jogosultsági szint" diff --git a/vendor/plugins/typus/config/locales/models/pt-BR_models.yml b/vendor/plugins/typus/config/locales/models/pt-BR_models.yml new file mode 100644 index 0000000..a05ba42 --- /dev/null +++ b/vendor/plugins/typus/config/locales/models/pt-BR_models.yml @@ -0,0 +1,13 @@ +pt-BR: + activerecord: + models: + typus_user: "Usuário do sistema" + attributes: + typus_user: + email: + first_name: "Primeiro nome" + last_name: "Sobrenome" + password: "Senha" + password_confirmation: "Senha confirmação" + status: + role: diff --git a/vendor/plugins/typus/config/locales/models/ru_models.yml b/vendor/plugins/typus/config/locales/models/ru_models.yml new file mode 100644 index 0000000..9c4851d --- /dev/null +++ b/vendor/plugins/typus/config/locales/models/ru_models.yml @@ -0,0 +1,17 @@ +ru: + activerecord: + models: + typus_user: + one: "Системный пользователь" + few: "Системных пользователей" + many: "Системные пользователи" + attributes: + typus_user: + email: + first_name: "Имя" + last_name: "Фамлия" + password: "Пароль" + password_confirmation: "Подтверждение пароля" + status: "Статус" + role: "Роль" + language: "Язык" diff --git a/vendor/plugins/typus/config/locales/pt-BR.yml b/vendor/plugins/typus/config/locales/pt-BR.yml new file mode 100644 index 0000000..dbeaa40 --- /dev/null +++ b/vendor/plugins/typus/config/locales/pt-BR.yml @@ -0,0 +1,118 @@ +# Portuguese (pt-br) translations for Typus +# by George Guimarães + +pt-BR: + + "A valid token is required": "É necessário um token válido." + "Actions": "Ações" + "Active": + "Add": "Adicionar" + "Add new": "Adicionar novo" + "Are you sure?": + "Are you sure you want to leave this page?": "Tem certeza que quer sair desta página?" + "Are you sure you want to sign out and end your session?": "Tem certeza que quer sair e encerrar sua sessão?" + "As you're not the admin or the owner of this record you cannot edit it": "Como você não é o dono desse registro ou o admin, você não pode editá-lo." + + "Change password": "Trocar senha" + "Change %{attribute}?": "Mudar %{attribute}?" + "Checked if active": "Marcar para ativar" + "Click OK to continue, or click Cancel to stay on this page": "Clique OK para continuar, ou clique em Cancelar para ficar nesta página." + "Create %{resource}": "Criar %{resource}" + + "Dashboard": "Painel" + "Do you want to cancel it?": "Quer cancelar?" + "Documentation": + "Down": "Descer" + + "Edit": "Editar" + "Enter your email below to create the first user": "Escreva seu email para criar o primeiro usuário" + "Error! Typus User or role doesn't exist": "Erro! Usuário ou função não existe." + + "False": "Falso" + "Filter": "Filtrar" + "Filter by": "Filtrar por" + + "Go to": "Ir a" + + "I remember my password": "Lembro minha senha" + "If you didn't request a password update, you can ignore this message": "Se você não pediu uma renovação de senha, por favor ignore esta mensagem." + "If you have made any changes to the fields without clicking the Save/Update entry button, your changes will be lost": "Se você fez alterações nos campos e não clicou no botão de Salvar/Atualizar, suas alterações serão perdidas" + "Inactive": + + "Last few days": "Últimos dias" + "Last 30 days": "Últimos 30 dias" + "Last 7 days": "Últimos 7 dias" + "License": + "Logged as": "Logado como" + "Login": "Login" + + "New": "Novo" + "Next": "Próximo" + + "Options": "Opções" + + "Password recovery link sent to your email": "Link para recuperar senha enviado para seu email." + "Previous": "Anterior" + + "Record moved %{to}": "Registro movido %{to}." + "Recover password": "Recuperar senha" + "Remove": + "Remove %{attribute}": "Remover %{attribute}" + "Remove filter": "Remover filtro" + "Reset password": "Trocar senha" + "Resources": "Recursos" + + "Save %{resource}": + "Search": "Busca" + "Search by": "Buscar por" + "Send us feedback": + "Setup": "Configurar" + "Show": "Mostrar" + "Sign in": "Entrar" + "Sign out": "Sair" + "Sign up": "Criar conta" + "Submit a bug report": + "System Users Administration": "Administrar usuários do sistema" + + "That doesn't seem like a valid email address": "Este não parece um email válido" + "The email and/or password you entered is invalid": "O email e/ou a senha que você colocou são inválidos." + "There are no %{records}": "Não há %{records}." + "There are no %{records} under this filter": "Não há %{records} com este filtro." + "There are not defined applications in config/typus/*.yml": "Não há aplicativos definidos em config/typus/*.yml" + "Toggle is disabled": "Toggle está desabilitado." + "Today": "Hoje" + "True": "Verdadeiro" + + "Unrelate %{unrelate_model} from %{unrelate_model_from}?": "Desvincular %{unrelate_model} de %{unrelate_model_from}?" + "Up": "Subir" + + "View %{attribute}": "Ver %{attribute}" + "View site": "Ver site" + + "You're adding a new %{resource_from} to %{resource_to}": "Você está adicionando um novo %{resource_from} a %{resource_to}." + "You're adding a new %{resource_from}": "Você está adicionando um novo %{resource_from}." + "You're updating a %{resource_from} for %{resource_to}": "Você está atualizando um %{resource_from} de %{resource_to}." + "You're updating a %{resource_from}": "Você está atualizando um %{resource_from}." + "You are about to delete a %{model}.\nAre you sure you want to continue?": + "You can't toggle your status": "Você não pode mudar seu status." + "You're not allowed to toggle status": "Você não está autorizado a mudar o status." + "You can't remove yourself": "Você não pode apagar a si mesmo." + "You're not allowed to remove Typus Users": "Você não está autorizado a apagar usuários do sistema." + "You can update your password at": "Você pode atualizar sua senha em" + "Your new password is %{password}": "Sua nova senha é %{password}." + "You can't change your role": "Você não pode mudar sua própria função no sistema." + + "%{attachment} can't be removed": + "%{attachment} removed": + "%{current_user_role} can't delete this item": "%{current_user_role} não pode apagar este item." + "%{current_user_role} can't display items": "%{current_user_role} não pode mostrar os items." + "%{current_user_role} can't go to %{action} on %{controller}": "%{current_user_role} não pode ir a %{action} no %{controller}." + "%{current_user_role} can't perform action. (%{action})": "%{current_user_role} não pode realizar a ação. (%{action})" + "%{model} filtered by %{filtered_by}": "%{model} filtrados por %{filtered_by}" + "%{model} successfully updated": "%{model} atualizado com sucesso." + "%{model} successfully created": "%{model} criado com sucesso." + "%{model} successfully removed": "%{model} removido com sucesso." + "%{model} %{attribute} changed": "%{model} %{attribute} atualizado." + "%{model_a} related to %{model_b}": "%{model_a} relacionado com %{model_b}." + "%{model_a} successfully assigned to %{model_b}": "%{model_a} atribuído com sucesso a %{model_b}." + "%{model_a} unrelated from %{model_b}": "%{model_a} não está relacionado com %{model_b}." diff --git a/vendor/plugins/typus/config/locales/ru.yml b/vendor/plugins/typus/config/locales/ru.yml new file mode 100644 index 0000000..d006599 --- /dev/null +++ b/vendor/plugins/typus/config/locales/ru.yml @@ -0,0 +1,118 @@ +# Russian (ru) translations for Typus +# by Alexey Noskov + +ru: + + "A valid token is required": "Необходим корректный ключ" + "Actions": "Действия" + "Active": "Активный" + "Add": "Добавить" + "Add new": "Добавить новый" + "Are you sure?": "Вы уверены?" + "Are you sure you want to leave this page?": "Вы уверены, что хотите покинуть страницу?" + "Are you sure you want to sign out and end your session?": "Вы уверены, что хотите выйти и завершить сессию?" + "As you're not the admin or the owner of this record you cannot edit it": "Вы не администратор и не владелец записи и не можете ее редактировать" + + "Change password": "Сменить пароль" + "Change %{attribute}?": "Изменить %{attribute}?" + "Checked if active": "Отмечено, если активно" + "Click OK to continue, or click Cancel to stay on this page": "нажмите Ок, чтобы продолжить или Отмена, чтобы остаться на этой странице." + "Create %{resource}": "Создать %{resource}" + + "Dashboard": "Обзор" + "Do you want to cancel it?": "Вы хотите отменить это?" + "Documentation": "Документация" + "Down": "Вниз" + + "Edit": "Изменить" + "Enter your email below to create the first user": + "Error! Typus User or role doesn't exist": + + "False": + "Filter": "фильтр" + "Filter by": "фильтр по" + + "Go to": "Перейти к" + + "I remember my password": "Запомнить пароль" + "If you didn't request a password update, you can ignore this message": "Если Вы не запрашивали обновление пароля, Вы можете проигнорировать это сообщение." + "If you have made any changes to the fields without clicking the Save/Update entry button, your changes will be lost": "Если вы сделали какие-то изменения, не кликая на Обновить/Сохранить, то они будут утеряны." + "Inactive": "Неактивный" + + "Last few days": "Последние дней" + "Last 7 days": "Последние 7 дней" + "Last 30 days": "Последние 30 дней" + "License": "Лицензия" + "Logged as": "Вы вошли как" + "Login": "Редактировать" + + "New": "Новый" + "Next": "Следующий" + + "Options": "Опции" + + "Password recovery link sent to your email": "Ссылка для восставновления пароля выслана по указанному E-Mail" + "Previous": "Предыдующий" + + "Record moved %{to}": "Запись перемещена в %{to}." + "Recover password": "Восстановить пароль" + "Remove": "Удалить" + "Remove %{attribute}": "Удалить %{attribute}" + "Remove filter": "Удалить фильтр" + "Reset password": "Сбросить пароль" + "Resources": "Ресурсы" + + "Save %{resource}": "Сохранить" + "Search": "Поиск" + "Search by": "Искать по" + "Send us feedback": "Обратная связь" + "Setup": "Установки" + "Show": "Показать" + "Sign in": "Войти" + "Sign out": "Выйти" + "Sign up": "Зарегистрироваться" + "Submit a bug report": + "System Users Administration": "Администрирование системных пользователей" + + "That doesn't seem like a valid email address": "E-Mail некорректен" + "The email and/or password you entered is invalid": "E-Mail или пароль введены неверно" + "There are no %{records}": "%{records} не найдены" + "There are no %{records} under this filter": "%{records} по такому фильтру не найдены" + "There are not defined applications in config/typus/*.yml": "Ни одного приложения не определено в config/typus/*.yml" + "Today": "Сегодня" + "Toggle is disabled": "Переключение отключено" + "True": "ВЕРНО" + + "Unrelate %{unrelate_model} from %{unrelate_model_from}?": "Отсоединить %{unrelate_model} от %{unrelate_model_from}?" + "Up": "Вверх" + + "View %{attribute}": + "View site": "Перейти к сайту" + + "You can update your password at": "Вы можете установить свой пароль на" + "You can't change your role": "Вы не можете менять свою собственную роль" + "You can't remove yourself": "Вы не можете удалить себя" + "You can't toggle your status": "Вы не можете менять свой статус" + "Your new password is %{password}": "Ваш новый пароль: %{password}." + "You're adding a new %{resource_from}": "Вы добавляете новый %{resource_from}." + "You're adding a new %{resource_from} to %{resource_to}": "Вы добавляете новый %{resource_from} для %{resource_to}." + "You're updating a %{resource_from}": "Вы редактируете %{resource_from}." + "You're updating a %{resource_from} for %{resource_to}": "Вы редактируете %{resource_from} для %{resource_to}." + "You're not allowed to remove Typus Users": "Вам не позволено удалять системных пользователей" + "You're not allowed to toggle status": "Вам не позволено менять статус" + "You are about to delete a %{model}.\nAre you sure you want to continue?": + + "%{attachment} can't be removed": "%{attachment} не может быть удалено" + "%{attachment} removed": "%{attachment} удалено" + "%{model} filtered by %{filtered_by}": "%{model}, фильтрация по %{filtered_by}" + "%{current_user_role} can't delete this item": "%{current_user_role} не может удалить эту запись" + "%{current_user_role} can't display items": "%{current_user_role} не может отобразить записи" + "%{current_user_role} can't go to %{action} on %{controller}": "%{current_user_role} не может перейти к %{action} в %{controller}." + "%{current_user_role} can't perform action. (%{action})": "%{current_user_role} не может выполнить действие. (%{action})" + "%{model} successfully created": "%{model} создан" + "%{model} successfully removed": "%{model} удален" + "%{model} successfully updated": "%{model} успешно обновлен" + "%{model} %{attribute} changed": "%{model} %{attribute} изменен" + "%{model_a} related to %{model_b}": "%{model_a} присоединен с %{model_b}." + "%{model_a} successfully assigned to %{model_b}": "%{model_a} добавлен к %{model_b}." + "%{model_a} unrelated from %{model_b}": "%{model_a} отсоединен от %{model_b}." diff --git a/vendor/plugins/typus/generators/typus/USAGE b/vendor/plugins/typus/generators/typus/USAGE new file mode 100644 index 0000000..a736f70 --- /dev/null +++ b/vendor/plugins/typus/generators/typus/USAGE @@ -0,0 +1,13 @@ +Description: + + This generator will create an easy-to-use interface to allow trusted + users edit structured content. (Admin scaffold generator) + +Examples: + `./script/generate typus` + + creates needed files with `TypusUser` as the Typus user. + + `./script/generate typus -u User + + creates needed files with `User` as the Typus user. diff --git a/vendor/plugins/typus/generators/typus/lib/insert_commands.rb b/vendor/plugins/typus/generators/typus/lib/insert_commands.rb new file mode 100644 index 0000000..1b89263 --- /dev/null +++ b/vendor/plugins/typus/generators/typus/lib/insert_commands.rb @@ -0,0 +1,41 @@ +# Mostly pinched from http://github.com/ryanb/nifty-generators/tree/master + +Rails::Generator::Commands::Base.class_eval do + + def file_contains?(relative_destination, line) + File.read(destination_path(relative_destination)).include?(line) + end + +end + +Rails::Generator::Commands::Create.class_eval do + + def insert_into(file, line) + logger.insert "#{line} into #{file}" + unless options[:pretend] || file_contains?(file, line) + gsub_file file, /^(class|module|.*Routes).*$/ do |match| + "#{match}\n #{line}" + end + end + end + +end + +Rails::Generator::Commands::Destroy.class_eval do + + def insert_into(file, line) + logger.remove "#{line} from #{file}" + unless options[:pretend] + gsub_file file, "\n #{line}", '' + end + end + +end + +Rails::Generator::Commands::List.class_eval do + + def insert_into(file, line) + logger.insert "#{line} into #{file}" + end + +end diff --git a/vendor/plugins/typus/generators/typus/lib/string.rb b/vendor/plugins/typus/generators/typus/lib/string.rb new file mode 100644 index 0000000..5e4247f --- /dev/null +++ b/vendor/plugins/typus/generators/typus/lib/string.rb @@ -0,0 +1,5 @@ +class String + + def name; self; end + +end diff --git a/vendor/plugins/typus/generators/typus/templates/README b/vendor/plugins/typus/generators/typus/templates/README new file mode 100644 index 0000000..7bc52c2 --- /dev/null +++ b/vendor/plugins/typus/generators/typus/templates/README @@ -0,0 +1,44 @@ += Customizing Typus + +You can overwrite and extend Admin::MasterController with your methods. + +Actions have to be defined in config/typus/application.yml: + + Post: + actions: + index: custom_action + edit: custom_action_for_an_item + +And you have to add permissions on config/typus/application_roles.yml +to have access to them. + + admin: + Post: create, read, update, destroy, custom_action + + editor: + Post: create, read, update, custom_action_for_an_item + +And your controller should look like this ... + + class Admin::PostsController < MasterController + + def index + end + + def custom_action + end + + def custom_action_for_an_item + end + + end + +# TODO: Instructions on the tableless resources. + +# This controller was generated because you have defined a resource +# on config/typus/XXXXXX_roles.yml which is a tableless model. +# +# admin: +# <%= resource %>: index +# + diff --git a/vendor/plugins/typus/generators/typus/templates/config/typus/README b/vendor/plugins/typus/generators/typus/templates/config/typus/README new file mode 100644 index 0000000..558295c --- /dev/null +++ b/vendor/plugins/typus/generators/typus/templates/config/typus/README @@ -0,0 +1,71 @@ +# Models + +This is an example of a **Typus** enabled model with all available +options. You can use this example to customize your YAML files which +only have set the most common settings. + + Post: + fields: + list: id, title, category_id, created_at, is_published? + form: title, body, is_published?, created_at + show: title, category, is_published? + relationship: title, status + options: + auto_generated: + booleans: + is_published: ["Yes, it is", "No, it isn't"] + date_formats: + created_at: post_long + selectors: + read_only: + filter_by_date_range: valid_until + templates: + body: rich_text + actions: + index: cleanup + edit: send_as_newsletter + show: rebuild + export: csv, xml, pdf + order_by: created_at + relationships: + filters: is_published?, created_at, category_id + search: title, body + application: Application + description: Some text to describe the model + options: + default_action_on_item: show + end_year: 2015 + form_rows: 25 + index_after_save: false + minute_step: 15 + nil: 'nil' + on_header: true + only_user_items: true + per_page: 5 + sidebar_selector: 5 + start_year: 1990 + +Note: To define namespace models use :: as a separator. (i.e. Delayed::Job) + +# Roles + +In this file you can configure the actions available for each of +your models on the application. You can also use the 'all' shortcut +to allow the user the access to all actions. + + admin: + Post: create, read, update, delete + Category: create, read, update, delete + TypusUser: all + + editor: + Post: create, read, update + Category: read, update + +You can also define `resources` which are not related to a model, +for example to control MemCached or see the Starling queue +statistics. + + admin: + Starling: index + MemCached: index, cleanup diff --git a/vendor/plugins/typus/generators/typus/templates/config/typus/application.yml b/vendor/plugins/typus/generators/typus/templates/config/typus/application.yml new file mode 100644 index 0000000..e028dc6 --- /dev/null +++ b/vendor/plugins/typus/generators/typus/templates/config/typus/application.yml @@ -0,0 +1,5 @@ +# Typus Models Configuration File +# +# Use the README file as a reference to customize settings. + +<%= configuration[:base] %> \ No newline at end of file diff --git a/vendor/plugins/typus/generators/typus/templates/config/typus/application_roles.yml b/vendor/plugins/typus/generators/typus/templates/config/typus/application_roles.yml new file mode 100644 index 0000000..3423ca7 --- /dev/null +++ b/vendor/plugins/typus/generators/typus/templates/config/typus/application_roles.yml @@ -0,0 +1,6 @@ +# Typus Roles Configuration File +# +# Use the README file as a reference to customize settings. + +admin: +<%= configuration[:roles] %> \ No newline at end of file diff --git a/vendor/plugins/typus/generators/typus/templates/config/typus/typus.yml b/vendor/plugins/typus/generators/typus/templates/config/typus/typus.yml new file mode 100644 index 0000000..64bebb3 --- /dev/null +++ b/vendor/plugins/typus/generators/typus/templates/config/typus/typus.yml @@ -0,0 +1,17 @@ +# Typus Models Configuration File +# +# Use the README file as a reference to customize settings. + +<%= options[:user_class_name] %>: + fields: + default: first_name, last_name, email, role, status + list: email, role, status + form: first_name, last_name, role, email, password, password_confirmation, language + options: + selectors: role, language + booleans: + status: Active, Inactive + filters: status, role + search: first_name, last_name, email, role + application: Admin Panel + description: Admin Panel Users Administration diff --git a/vendor/plugins/typus/generators/typus/templates/config/typus/typus_roles.yml b/vendor/plugins/typus/generators/typus/templates/config/typus/typus_roles.yml new file mode 100644 index 0000000..7c9f901 --- /dev/null +++ b/vendor/plugins/typus/generators/typus/templates/config/typus/typus_roles.yml @@ -0,0 +1,6 @@ +# Typus Roles Configuration File +# +# Use the README file as a reference to customize settings. + +admin: + <%= options[:user_class_name] %>: all diff --git a/vendor/plugins/typus/generators/typus/templates/controller.rb b/vendor/plugins/typus/generators/typus/templates/controller.rb new file mode 100644 index 0000000..32e22fb --- /dev/null +++ b/vendor/plugins/typus/generators/typus/templates/controller.rb @@ -0,0 +1,4 @@ +# Controller generated by Typus, use it to extend admin functionality. +class Admin::<%= resource %>Controller < <%= inherits_from %> + +end diff --git a/vendor/plugins/typus/generators/typus/templates/functional_test.rb b/vendor/plugins/typus/generators/typus/templates/functional_test.rb new file mode 100644 index 0000000..02ebc69 --- /dev/null +++ b/vendor/plugins/typus/generators/typus/templates/functional_test.rb @@ -0,0 +1,11 @@ +require 'test_helper' + +# ControllerTest generated by Typus, use it to test the extended admin functionality. +class Admin::<%= resource %>ControllerTest < ActionController::TestCase + + # Replace this with your real tests. + test "the truth" do + assert true + end + +end \ No newline at end of file diff --git a/vendor/plugins/typus/generators/typus/templates/initializer.rb b/vendor/plugins/typus/generators/typus/templates/initializer.rb new file mode 100644 index 0000000..92d43c1 --- /dev/null +++ b/vendor/plugins/typus/generators/typus/templates/initializer.rb @@ -0,0 +1,26 @@ +# Be sure to restart your server when you modify this file. + +# System wide options + +Typus::Configuration.options[:app_name] = '<%= options[:app_name] %>' +# Typus::Configuration.options[:email] = 'admin@example.com' +# Typus::Configuration.options[:file_preview] = :typus_preview +# Typus::Configuration.options[:file_thumbnail] = :typus_thumbnail +# Typus::Configuration.options[:relationship] = 'typus_users' +# Typus::Configuration.options[:root] = 'admin' +Typus::Configuration.options[:user_class_name] = '<%= options[:user_class_name] %>' +Typus::Configuration.options[:user_fk] = '<%= options[:user_fk] %>' + +# Model options which can also be defined by model on the yaml files. + +# Typus::Configuration.options[:default_action_on_item] = 'edit' +# Typus::Configuration.options[:end_year] = Time.now.year + 1 +# Typus::Configuration.options[:form_rows] = 15 +# Typus::Configuration.options[:index_after_save] = true +# Typus::Configuration.options[:minute_step] = 5 +# Typus::Configuration.options[:nil] = 'nil' +# Typus::Configuration.options[:on_header] = false +# Typus::Configuration.options[:only_user_items] = false +# Typus::Configuration.options[:per_page] = 15 +# Typus::Configuration.options[:sidebar_selector] = 5 +# Typus::Configuration.options[:start_year] = Time.now.year - 10 diff --git a/vendor/plugins/typus/generators/typus/templates/migration.rb b/vendor/plugins/typus/generators/typus/templates/migration.rb new file mode 100644 index 0000000..a4ce6eb --- /dev/null +++ b/vendor/plugins/typus/generators/typus/templates/migration.rb @@ -0,0 +1,22 @@ +class <%= migration_name %> < ActiveRecord::Migration + + def self.up + create_table :<%= typus_users_table_name %> do |t| + t.string :first_name, :default => "", :null => false + t.string :last_name, :default => "", :null => false + t.string :role, :null => false + t.string :email, :null => false + t.boolean :status, :default => false + t.string :token, :null => false + t.string :salt, :null => false + t.string :crypted_password, :null => false + t.string :preferences + t.timestamps + end + end + + def self.down + drop_table :<%= typus_users_table_name %> + end + +end diff --git a/vendor/plugins/typus/generators/typus/templates/model.rb b/vendor/plugins/typus/generators/typus/templates/model.rb new file mode 100644 index 0000000..a91a858 --- /dev/null +++ b/vendor/plugins/typus/generators/typus/templates/model.rb @@ -0,0 +1,8 @@ +class <%= options[:user_class_name] %> < ActiveRecord::Base + + ROLE = Typus::Configuration.roles.keys.sort + LANGUAGE = Typus.locales + + enable_as_typus_user + +end diff --git a/vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/blank.gif b/vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/blank.gif new file mode 100755 index 0000000000000000000000000000000000000000..35d42e808f0a8017b8d52a06be2f8fec0b466a66 GIT binary patch literal 43 scmZ?wbhEHbWMp7uXkcLY|NlP&1B2pE7Dgb&paUX6G7L;iE{qJ;0LZEa`2YX_ literal 0 HcmV?d00001 diff --git a/vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_close.png b/vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_close.png new file mode 100755 index 0000000000000000000000000000000000000000..07035307ad435f8f2f8eedf0bce50f7ec8a858c2 GIT binary patch literal 1517 zcmV1To%f)hA(E>uTT$~N#GA0orBqo9-jKM;POccZrXJjTzge4|Sa0ca~7y<+{ z2m7~>41(Jqf9L`mBM6zAjf4;hkjP@@B~d6Xz385|dB5iCM=Ro&JZZmk-uHdZd2i=@ zK0a@Md;u9DFE7t8BO^nxckf<*yC?SckUFGmX^jwM@NV80+eiP zQ*s##s^a3}Ldwd@cHO*r^T5i=%Fj}=Cr_R@78e&C((#usU;YFS>C)2Dw4tG)YO=*P zWt;6ZfL46;=u!R1$jGM-hhvcpVyCa+S}Q!T2ALHx;BHe#M~BsHHos=s2iW})#C?}q ztqvud-gYjKsG$zHm2XhmYPB(Bn>kzw z=gS!w6cG`jJ$?H00VK+=!cMnBDn?IFkCkj7KmNq~hrkZvU@n=EP}|7Gxw*M}1_lPI zNx@_?IS^|%_ok<(o3gXBH^f+@(X7_g)K~%n0$gMM{{Ab=%gZ*hH99)_Eo>!VJd8_C zE)WMoNsBB#u&}W3BMEnPby>y64F-cra9>kX)4DJoA0KZ5fitNn`NTT4wY3%+fA;Lz zZ+K4ucJi+Mg!m%<>Ug8kSg^LX_JD-5va;NEM#+V_H)8UHgaj8UJ?LiZVx92t@KxlB zb1oz#Bo|{kAO!IDVfOII$VfwRad8C+y?XV^;VEu~g@tQka>%(zhlYl1p7P=0!-vj9 zYiMYw3l0uW##jWq+eZ-;6r@4F%{+PXGcz;xx78|Q_F7Eb+}ynGO@4TI*h!27r4#SzfR=K~ zhtpe&%-o-olT$}R&!0cHdm}}wbdd`2lO~)PlarHXnm>2$+(ng2^$EtJ+=vwl#Xg-* zSA%x<9|=lJ3CXuACMEY46&1O~{LGm%7HKm8lhZ|+Pv?nF1LcJswy+L%zshO4HzpR4skij zxq<8a{QPpl!oq4$R(*n7$-q`gsjcF2;NWZ?##l9wBW)lu_Bpk)RJgGO&Ey+2dDr3J z*x2~aJFl#)G^5U)q~qh`_b^ru6q9Xf%arlfse$W(T#z5f?cqE0>k)x`c6QcMUS4jN z#$B996B84z1O(|{7{3S{Bb#j7?T~OCi+pq$fP9eGqJ%Evk~i}B@#8tcAnk_QAg)9f z!qn81MJO5W0n6>}?Q|$y25QL`+uU$0x?KbSI<(UOBavf=wCW!^J3Ie)^yty-8!yk& z($YLG4fjwT{k&5mHL@*_7Xi1c4?x$HT^y5qc2zyPPCG3CUKl!f@Zj&~&!7K?fD>&z zDk^G(=74sN=`q$#Wm{gaK5myi7K~vRQ8s=CoB+NC8j<}iKpXzI(SMmt*2r@wST=`s zW7t-}X4hPqXy3W00000NkvXXu0mjftFGKG literal 0 HcmV?d00001 diff --git a/vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_loading.png b/vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_loading.png new file mode 100755 index 0000000000000000000000000000000000000000..2503017960b3972499d3aa92f89953935ae40934 GIT binary patch literal 10195 zcmZvCRa6{Z)GRK+A-I#l3GNJT8Egn7KyZS)ySwY)GC**5cXtmOAh^3rfXjE+eY*eu zvb$HWe&}AO&aSFmCtO)c7UKiS2N)O_4A2)TmG>(H3=HfB3ex-CA}8B>rB4S*iGOoj zIbB0`GB%#)yQsNe_Z(XHJVzvTksi>+`6l(%$`7%p5{2L+{tq=VJ?V0JL-5DetdIHF|rZRGiB+~M$cAs!3L4m1WqS5m4Uut{B{sus$nl}9N zp#?4R@YNv8YM{JrwP-Li8Ynr~UO3E8cBsK321T79L4oqq#7><+nH-uo4c3S zzbjdhtN2LE+Wk$ypLztVwTlowGQqng!^I&U`;KFsDxwwAwF4PR(`@g%I}B1@?aN<; z9cJzX7khkNkJG|u_OY88t2=a(9k|tRF|O^~620}B74q3{|Mu}rUKMRU=5i@t4rH}t zWMo)9&m6ObjvNsA;yz~`O>f^l&kjH&j=Aexy0cfmC&I>@QU7`Ql zPU3_q?7Cqi%{r7|wPeZc`_s9mfR2B_K39;>*-yWV=qR41Ls>bqydL@}bse|D>1|L> zSvMFEQ2vnWJKlHRcZAw{ZIfc@+_x^0qqpf`uaLP9OH$Mxyno5YuLvbooxn?EWW9?3 z!YB&gf0xHo{M%6#qA!QwrjFO!Dm~{w(pCL9Z1XeAf)Nj@AQGyB2^*KX+-VJJjiv1` z<4I`VooCdOm?}gf8PD(k+m)s!AE5Z?+0=PkK{!n$OKo*{K2N95Y`L?t*m<`z<@&zR zp~CHRl4dh@$sJ4b-?gm;KP++XcWjfN6N#Qw_o;QATHBKP9&7y-bUDZkt@PRB%5E8d zyIxSjYTf;8+p-~Y-!k=O$;kfFCPu};=7d4N%l)KG@8xK)nb+&}I$Q6pWy;&;g|G86 zI-2s|2J)g^1XG`LO53Wj0gJDEZw-Oyi2)Wft0k{z<}G%H3dQ>?Y(D?CDZ2o#2V1hj zM_=W)_N5IX(aMyXUqh1U_WG#TC%LuB%3bK~)3%|v<)+ah|2DDoR!5Ri1|w~KpZ~C> zj*1KZd%Z~(gdF2RFMx01Wj`AW>Y$yS`Ndy3rPZS*pr6~#`6Q{ z%20=uSgaS;|E%9NE(<&vHm9^dubopg^XZ9&z5b1D ztpelNuc?SSpElb&~gE~4TESBIw z4hXi+ap2YNx8^D{Y~U3Q@Y|(~)|YhqOBukuK1!NNCMG7sGZ6A#)2w8O6Kn zdChi*Bi4O9!Q85-l}W!%4SCss_ceWT5CR9)!>d)k=W(}t8zRG>zPaIpd-bRcl+8}< zyZAFh+)b7i2(xFGQ1NiT*Ss*nf$|V%2{)tO&r?qsL@GB0#g&?RJHuU!w|`-+L=^sL zBkr*m4+?S5Lim?WVQJ4G?3fKVc}Q*JmJmX3?v`M44RD$Chi8S>0a5i2&wbyXSv8dY zyfv7Z{pAwk7MSBUu@ z5G6tLJnE1!1UjyO1R`?s4&aNgugC^{U9o!idxxDc93pcZ7raY)Xn7Pw`)<#e)4& zcN7v?6cRi?#`bl9ECtBz_QVZ0guMA?CDv=_ljYyH*ZV4aa_^g&fXJni?@vAE{G+P77pVW4Tj}s-(;*& z1STX!WHYF!Btlft>2`qz&1ijPaSdm%!UIMua~VRnoET&%1AAf)#vSfWj=q$8;qo|vcK_;z1j(+l2X0@o7C&Rzg8!2h$XZGbenx^q2; zApAgMeMi;{fO?<|f=I--(6#z(IL}cC|D24*dg^rhIE3G^yTJFZF55a-#}tYH=P$~* zb}RzkLIDvK`;ZA4OnYPQQ?;ssg`Ml>vON8NVnk@fl0k&o2W`-r3Bg-8NJYuCo0$rb zAKi(Z+>hRKA>bjOr%LHS@;94B&obY#4yCecQ0pdAnSV&v!vLF&-`Mm?t?}6F z?PaX5mkzFp$i(YKsOTz58Zgc7q)IVxy5hYd;~k@a63_Ja7Z0!ycbH~U&Y;r17f{Z} zwhnd>Xve$Riey{w@OgRi9rKhkQO@>jj2#Py8_PSVvvwxp0HTR7DdE{>K_i9RL= zrPNU6SCAR*HU3BLhMV(aTn;NBJQziUp9-R3QkgnENmN9ZBlJCW?l9$81skWTmD&YK zJ%7bQFP*wlswyu56egGmr!KVx=+KneK+U;f>vSk#hKg0u(yv^fNk=GGdULDg_=itK zp3;*2U!wB8TA$o;k!;o@OA2zx*%c|y0#?BBp?nDDw5rBS_SB_Sbz$6-fYTvnj(ezNfL{$?uz9aa=HGSg$mLTxTf{7e`Oqr?7rp+0`lg6AQpk z9Nsxh5kt+I%$5|50=OZUzms%|OAS{5^$g0~djWjOVxYk^CLD{|njlM2ex}zn9yCa1 zXCSTHoM#Rjq25u6;*Ug2A+S~Y`_kh|<3C=w_~F{9JKTLW^z5D41V2cjL8y+L*0IQ_ z?L+y%E(_`Xj&MzngB*bEt_~znvHKiL&w-ytZ<@L~s{_sdoRaSXOA5{31d;sz#pvvv zgq9-MCupHYRhjX{g`7wlu9(YJkAO)+oP%bGYC{Q>2v4!wD(_QEQe5suxdx(SIXS!9 zV|=hm;s|y$aq8^~zssyzb{|fvQc!Cj#FNH1$?tLP+^0!rIS_gU*h1d?y;X7vm>l>a zwr^N0VzNQ_j$}0!F~;(iG9UmS=QO|XM%w%nK5uQHaLT2-I$_CRCbGr8ymE9J_k{YTcfRFh1nn)R6_X#W#Fg4I=2W=GD|J_UwPwIQsBklSR4`o0$A&X8xn-V`k#d|7nEr9kiD4Dx?q zJBBg6NsFLaJWHtZ+GQr~rb(+STSHpb`9UQ4BbXjmTjDz;@V0H}7=mOf+#fvH-crjF z@uztsU}U)L0`Q{D-mZfkuH|zPNNIKXy+C+QIrQ&23l%VJtwn!M0wNG>wEi_? z``=Fg-bBV*o!jNs*j0n^Sn^x-5T@n{us@koqBnB}HI+tGJ!*iBb=5xNu?gt0oYXmW z8+W9Aca$K535BsvBR3qs~{jn>MoPaD#Aa+9Thdjr^?c!Rm zd+L48(+PM55nZ#`>laDoAVlLUXKyJl;Rm?x@Vv6HMm5<-R6-Z-qq1C{(`EqabpBzG zj;4V!x`7^=;;cYNpRy+iPV>rQAJl)AhcD--7r9MjgEiiV#SR|%E*YZcCryW8uK0m8 zL*X&^7In#HoVp*5gKHN+#O5c>>55A?ba%a_dj$xtqeA|)Js2dMKsh{lLDK@0m9lYa zWh*#0TQ2T27j^N`(t+eEfPUoBbvH_Kxa-u1jcNIe2YA^XT=1{3*Wd)}tKRN&dun&* znJX0Gvn8K!-%j#7%+r_|9qIlzn!o^G{q2MJxsdbiTZx3rG2xVS7HXrp5s;0PD>=hY zBl<_TAVt^N>MxbO(@<=MbHrHR=MZIY*8L>tB_Jja#yQoQZ2U!66gIECXOtndOORap zIR~TG$;oHLIJfQd#!j_3_Qvmx`fn3O*zC1bYC_$3%GfsjXN1z3asw+xTs!lK0I3p~ z7+&tcZUsM&QuO)Rahedf=&&)d1_C6zma`x{C50fHF?zDa=ZblEB;H@x_ z*db{M-tS}6{hx>Au=h4<8bWA8WETt$$|~;BYStwE1pYq48aKuv)4zT2-le|_1FnV@ z&z3AIiy5J{V@~m(2Aps_b7@uMmeTM}Zrs1Cl&)1e*ht|I zj+H9o<}yH3ZLHkB*F?)hWh$+em0HTThaoLx6FA4~msa-#wQzbyJ7ZmQjr#_R2ho^; z^_`?dw}hUR_w8a@8*K8J-lhK2Ot+y`>+{`n0h_lu{26PzN8ov0&f4B@R&y6%I6s2# zaHh%b232N&`aa6F5}eHI$b&SYPEgsOw5r$FS9yGwbRGzrIvbyEgZ9&nFxs0*_O>EKspQWU0tWeX06p%_D|(!O+TmLQ=`cGc+aR*yqXicgOVfS-31*Vth9=M<`>TD z2ecu1@-;8F3cm{pGegNysh5>XjRo{+T&Ak)F?qQ`lGeFVEKm{O*Fh^hd&!`$*H zo5Oc&)hGQS+5HxkD6FQ8nebel#;ty}aAw`K(xh8I_#=)-z$e>p3&-I@Xi7DsewFYp z$O_YrvYr1N$2_XK@wwpD36YvYlkAWY{ImJ=ap?zi$l%xZ*=IqNes{oGZ_d&RUp#M>B0_e>rGRlDA!;QcB^(S{BAOFH9!5r^ucGvwr7zaBu z0nl8=Q**gw{nD9@q{NiDSWk(V7^!=lJ2pWMJjM<6vo&=apq;2<=R}w*8Y1=kz=PCQ z%)%vAD1wFG6WryVg@``Sirh@k%N803_$(=+!8Mvb9?1T!G85NtuNdZnEQyu#A?w`B z)F3b>f5ji+x}KM|Tj2^Y*G*7{b`Tfi5Vo1I10v&)jAXu~zp&^l9_6zJNyTM-8Umo1 z9&95H=Jn67@b=o@EulLxhu9I5NUWA}RT~7aM&6p*w#;#@t_WkoM=N611DP@^AO(5% z_O)wI8+=$Zu|&6GLOI$LM?5!R9z_jmV}oTTbo5w#im;QnduH`c$N zW{BAB52R%1;Rn5cODK_%Sd9)aoctB9zxfjVQ>(H0D(}uy@LHYyAgK3g(>S9( zPtYyFU)v324BQ;?fy(SYzzu)I?S5X)C%oy!_vo35qBl@iLxXeO0=c!$`taf&-nWfH z&;kAR#ny=d^p!J#(|f-;_JYU39P352-lqenf}$VP>n~VNP4fO z7WIbrhM-BLcG@K6C#AME+0)ar)&j3)4d;NqqtG&xvMIB$;{YjyD%@TxXDz(Gn^~Q$ z`{|#$49R1=uT?+cj-swXngY48cUNapbLV7E{z3w$^>d9@EA@w>HM^RNCa!C{AQXMm zpS_ccdl>Gl@TvUqk0?XIXoR{14Qy=kig!<*wYyEI!{IFM!!y{06q1<;ELY*y*mjQT zv-b*OcY}^&CpfUnzo^;VokcN($`aoxgOa2-iM%AbK5g=>;P?fEw9oVMKLygeXnM7D zPtexNCH+(J;~KzQ96%ZTw*j@q*9|u=z0Y-$-X6>%8rAx{yN1?B`D^BfVA-Q>P-Zwe z;|%7ZvMvfrLx6PA)1366l#K`VLUj=^JQGKQr;$;%1P{A3+amuyFpQjUjaj|r5k8@8&dKiV2D0a28K5jva= zscr^-stsDrbQN`~3V1XeM345Wu`L|$V2`1Pl`51 z!sHL}P{WSZ@>@dt0qCwF@)>_sDDUL@v?vgBJUvVtqIV{pdh9z%PiKh$SX?-VD2}@Z6HA6- zt@V4EnoebJo&k^RU@I_2;opR+}*c)nrCI`yn@ErJWz96(SbIVk1>cE!Tka7+3`tF#7q&mOS z`(vja3j^a6Q^nJG3SpdQm0wa<72`6^6xx!7k=(pVAT$qCygHU&2G^*HUT}^RwjJNp zVjsZ-`}x>d3-MAWGZ5r%sw4F*$o{=syLAd8Mu?DV4DF|;2*Jox zqVL%1j1#^%=iX>tz6Qjk3TO);M&rXtl%qgk9grE3>4MXk7Whlg72rmd9g!l$_+3&E z6*h-nCMPb4^T8$kZueK9(P+4T=;!doMXH%k2WDZ$>{4(7lz{?r+!{D2KSt$CV(H_H z09z`;*W-{JA{4V`;ct6^**HAhq-p$yC!Fv{xUAPqWOUMqgwdVO=ShY%=Zt@BDuAe`?$w6~HWQL{`llqWf6s}0s*z#HS;O3a z=ILyMmZ&A@kv(0D+vYjR5o^0XD5avMI0e%)%4(QMuouS5z3U;m`;cPc?0(9-y@U!e z8`cw(kspE<f=vKG@{6#xOuWYLU46A_{#wSGt9nrgw})%Z22yb0fhbwJaqq)%z$PaC_= z3ox7-F_lzT^9!i(CE6 zW<2&Wf2a{(QsxusH!M~2vW)|^uKs)OZ zmI^}fUwIueqDYM}Hp_|Vp>A79nJ8^LR5d1S;Q>w#hmAWb#T`r4AJ~Xv;6gnE-j*Qk zwNw7#)xPg>g$s)62xcF_l*sdm^_NrVX|dvZ&p>qY=srP47z1ewBWITjEe65;a(0E< zsKF5<#?0SAwMHrOG^N5~-08VWNK!`W|E7Jofg`@;V9vxN`V(KMQ7OQ50~f_DqPJi8 z6s(d7BHK|74FG*y=+P~=U{op#TT^k#OBsmpmz7R(n`tLDrm9z&lDKlR$rc{n&Wy_f}H^^xUb{sfU=4ICbJ`(9&;3Z3fCy0rvgB9M zYXJOzI!BVShvjpSRe=NmGVk>cdV`Q015u&=ITQ3#Gp7D;WU9-#Ty@{_tVkMAQNqTD z89X_&nz0hLSxzu+{iZ?fqt!=1tl;^;blU*(sJlZHnmNqp<|A?O8Yqeq>aY}@n1 zBd&ihKHMSw8p9mpUE#S1BM;d0J46}4d<00ZkaWga7oyiz?n2O$_km?HNrL+#l7`D1 zDt>O(bK^#^beJ$Dp;k3Q)+J?E0B-A4flwH2y@}{?;{_nm@P%QMps2J z#`ilc^%ORDrR0HkSAcEzL6MbEuv|s7a0Ar)gMbJT(!}yXkC_|qfJI;E22Fs6`>U2+ zV1&^n-1Dqhq~VvMo!jd|vkg^x@GPMw8SrLWQvGe4@@)xUShf-uDZ8HkE!_>b4{dqT z8096-(q!Ru;Ij<5@|jEX&B4JzS5AqWVG4h+OLc;we*kqEFMhlePe?Xo(mzk0QTAQb zpD2r0t+lznomct39G}wZEMuz0)=dgp3T>?BPsHbx^CB%dqpOboI~ogTn`N9K1hy>{ zDBae4+0e=;4Ed>107Xpg6!O@x>V~|>YdDrp^;g9CF{RNew0I&FVx}{X5%+2=zXe{D z)DMs9SjWl*_A?z_0KcjSCKJ!NP8N(+BX78sW+x%34{ePG(M^UYj%THt zxZ8TL#-|J$Ui@6z9;Yh}Z!tM%V>jJuIJ-?8kmCLBd^|wCgTzGsD_kLyfTJg|Cs%`+8tvvjHT@<@+c88YVruAnGHq;4A%KT z`@dcO=c%}~pTNFPbF|rymrfuW8#gW8GRQQEe8)QF8oAyYmLo%Jv;Y=7EHouB zJQ=5|h)@1}F#B{wX3e#`0jf@ocdnZ;E$5xtwD??6V3z;dPTQBe^HZq-b%{6VCF=FR zL>xf=$+cR=ko_y>!X9j&oZEAcOX#tMNcb;(xuU}kDM|P5mmN<5;map=HhG=w$|}(w z4F*XeZGLzBif3-phMaoKI`4adR)>&}aCKzXy<-RDAU(u_f-$(-Omb^%F>+tQyUWY- z98G`O5ncSRfQ;n3q=LbzbJNk}=XZs1__J63e;DEaOA!A=p#VP2rE}oOH-BMvLgYtc zoAcvckXV;~6fXD|`?DPrCnsupBsl^pc!s>84G60AQrQAUv~pvfJVGH*F3yd1!r-1e zi9&~F;796Dg(Wi1n4+u~#KD>ECTCUiM{t=D!kwPLM7V~k{HGdYq%u(>bX=z9#R zge?YcYjBNZvw0!CXZ)E}yiN$;?-`_vV=weI@%t6E>KQw$qZo?yP7%!-7D}&J;Rd^y z2L}gPL)GDF%_S8P%|t6;LU)8(vhxC{bue%1KQGKL{}`1SxM@5h3BqQW$1UJ=iHVKX z!>q&nVn}oCqRUI42H5o?zjm^4 zhTv#NSZ?tF^7J6}Ds4Id@g55ZMz$AERk7!_lo<;SCuZW33@e=0gl8*tD>!a0k^q_ViXjTmlOQizar{@TPjZ$e(u*)b zl&+l8$FXO3_IyDUh_4-QR3im{;hkU zv{vzd6YBp_9?y3`R?m*xel6XQdQ-D~W%obNJ?_u(^o)Wn2nbCAm5RjF3^UlDjNKOR z{-zm);7^zU^uJ~aeK0&5K7A zk!1|bDtR`F7u}LdQL>XuAiOL)$^!>_q!Rx_qE{et)MEwb@S{@W`+Z4Aw2az8N7*;j z28~WHm*L2qk_1^vZ{qCssnc0&vsCg(7oWohyP@9E!SL}lGkp5Mol&OL@SQWG!*9BR z0qAh(zMth9KCDMQT!@!?YhIMqNDF_IM(>}Gi}a7@vu~0@GO=V5?Pk#Sqt{UE%}PuM{~;(=J78A zSrs-=fTfW`08-7aQ5oi{Ll4And$a}6a7%A+l1f{j62K2!xMxo-1)`o$Id8iOER0N* zxIDeb$xtGU)+USD=qHDg(Y`X~J68tf`TqIO_Tn$%1NaeiYTKadL_2eajT1&)NB+^q2@D9b{MUY_>TNQpZi%SO_bqXjyXHB;Ui$Sf9@s+j;Wb z{id0A9C(t~>E@^vPF(@ScmscJxOc7zNXd^Oh>_aW(3u(xR)buk9$q9y|pmKaV!1QFxCztuHO}!PY}!G@y49mJ z0cZk6!rr+O$%3(;B?-}K84!e8{>9v~L;P_$0eQ4}M1oXBfsT{~ZTR)Ko%2eWMnbKn zb5q1ekkgw_RUy#!uXEEL9eB2&?El4NCZmw3r1hMX#a}lk-dBMCPR4OgqRj$-M;-^< hjOQhwL*8E5RB0mfPrR|R-jC_QfTWeADkby-{tw&r+hqU% literal 0 HcmV?d00001 diff --git a/vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_nav_left.png b/vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_nav_left.png new file mode 100755 index 0000000000000000000000000000000000000000..ebaa6a4fd34e51575a01da366312c20618985cbc GIT binary patch literal 1446 zcmV;X1zGxuP)R`@usIzf?P{x4#0gFqr~|(;IJySuwjr=+Ar78e&sHZ(Lu;P)*wKU%|U#jmpg5~Q6= zNl8{#mZGz>Q!_F$qJ8n=#Z9x>Jn_n|ZEtTsSzllOW_Wn`!@Rt_=!l4jAl`tKb-5%L zv7js_CMF<1KR>Fcr{|nbr~AR4Y-MG|y0EZdwI6@^^5yrikSZ}TQ5hH*C?{R4Q{?KT zKD6U2SFWfB2M0g0TCEGD5GUP%Y0a>J0W!M1fVuVU?d@ix(YV91PjUK7@OzY8E)OJ~ z&Q30n%8njA8kC)#t?uvd&xMXHQZzI)WQmTB-n1vQM_gQ-{_*3-7UA?*_bJ9=m|W(F zT+IHE$H&L3T3T8zSS*%BTHM>)YZi;eI#;9uNVch|X-go#ckf=VQmKq2-ORBYaGo52 zejyg&!SS;_ltMX3~N9_#ORsfn&tMTp}T$j*yAd)6-A(_4O6g z0=-^ug|9bVkxorbSsNQ0x9sPG&EF`laq6qgf=!d ztnQGKnVtDqz_Vx1Y=Kr=TU+Vx?;nS;5H`1m#Lv%9fqI)#T3Y%!3C+yRSpE-E!h;77 zwm7Z1{&Y;%TkkIqz&m9sAKBbnCkzsHry#@vbY{a-wI?zu7 zloV4Q9NtQWLUAT7Ev=G-*4EZ6|HZd^F*!MDB>C#<>PDGN_5sGi_Yq4ZlG7@css!ck z9};wyN`LrygSGPaaLVfqXl2Z+Nkm;ygvo12>(Bf+YwDwC`Hbwy5foiCI>(Z2*F z+nZVe;)K}P*aF#9Y8tUS3{lK|w(!NULrkdP#x17leSb zXU`h&IIwaw4`8eqNV6{>BDOh|vjhZ0E{e&QDDu0Pe|>%Zmb;{dg@s0w$z&rPA0K~+ zu^J$UblaCq5g(ljxEe?Y`8AmFYt-vOfqZ&;+Eh?bV07kp3Z#jN34Zfk3!OW_7k zM!Hz%fopN!Lja&lI}y+lIZjBszTeT&@!Ra|?DQ)q4Us*EN5ey8M=zh0NVTlX;X`2G z(+8kuN)-Dfn@v@Ns?$arfE9ks%*_0?uCDGc0&cYN@bK_KngiO{r&oDx0_$@6^x5~= zW5Gx^5k=$2z;)mYpdQiR47B2ZEBzOVMD;v(on_N_Z6xdRarMj=Ped`)=n zv4Dh?$k=SYcJSdjDa(58`F?t%ZzxBbaRs;9zaA#)un(S!5dZ)H07*qoM6N<$g4RXF AD*ylh literal 0 HcmV?d00001 diff --git a/vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_nav_right.png b/vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_nav_right.png new file mode 100755 index 0000000000000000000000000000000000000000..873294e969db9160f5ddd4e1ab498ff60b080e3f GIT binary patch literal 1454 zcmV;f1yTBmP)Wa6`&Z+!IVkxf`V#(j>y7#5eg z5*PD+C=wGBwT+F9xi*_^fd=>X_FBba@wz8b0c3ma+OG#c&LYnSBp_4S(*6BG8m#QpsI))yBSw}|WBy?ft)>pk?VIMu|0u-xC@UxO$< zHa9o-0~vR8bXeVyB61x;@W6T@vgyO$TgWvPslhu zJ>BGvFeN3$D2UT9wO!c-2M2E;RvddB6cm(&J}nRg`1!DUaA;_#J})n?kc`&W*6f~w z$XoI8@o`6>)z;Ql1O^7iqc4Qr?IQ^Y2vDQmrd_^#`AagIo}RXO6Tw=o)=2K&OZ?8A zJDVKcH{^2p2j~ms)bf#Ff5Y^8{ZZ7~8Zw%koV0nHJ||9`FbS!%u(0sL`TfAafI}Du zN;}#qfQDkqhr?T=R;!O@W@c89(aOq-SHe5pO)Do4INRL6f8R{+tE;Q)Wir`E=nLN^ zERjf#VBjT`yZ^}0T`IW~brs!I17PDwDHNtJpz(@u7&_Ci&*x`nXGh4eva-_hHlhTo z>wKX6jrLg})!Ef*2q(qH#unh5y~V~`*!#E25W2>+0$@y%jAkE;d^% z7KiBQ=;#CV)c|?K?OZZNymTtyIv@+;=i$b0QLhID@u{gPOF=<_+1^cd)FbceJt|Pr3Z2#UW)pC9hbbpr%#_w3xu>9DucKZSqKjwKC}oa!!=;B zxw)ARh3h~maWUsB$KtMw06>R!GGHKatdM5?eS3TRA2TyEQ!m{-s9LkQG(13d^zuqc z)WBRWF9N%+J^)=)qIgeo*i|*CI?Xfzc;V-hCr|!<<;s9veooizpgD1ug<#0dV!Z literal 0 HcmV?d00001 diff --git a/vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_shadow_e.png b/vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_shadow_e.png new file mode 100755 index 0000000000000000000000000000000000000000..2eda0893649371f8d92b92976d8542cdd1b601ed GIT binary patch literal 107 zcmeAS@N?(olHy`uVBq!ia0vp^B0$W@!3HGnP3ltxQbwLGjv*Y^lSRZuwe#}JO|p{EaWGAM`~zK|Yh zF7SQ+m+Ig>B0@o-N8?trihfzZ+Vp1~`{zf0o*#X0$hUAi%N$P)W1wCJ22WQ%mvv4F FO#q)zAp-ya literal 0 HcmV?d00001 diff --git a/vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_shadow_ne.png b/vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_shadow_ne.png new file mode 100755 index 0000000000000000000000000000000000000000..79f6980a3ba5c43de120d963dbba2516b8f27ac7 GIT binary patch literal 347 zcmV-h0i^zkP)dR9Yb&V8f!h)aDezHAsc|y@|hdQ zYJb}?8~~zFbQ)ku!Ey)KSukutuvdZ@MKMX|x|A3tPyx?YVhN^6z!Mi4Mj2f#%<;nh z2{>?YAzu|{u^;Oq!;f7Z4tPBpJEmZ+^GZ#$=9nz(K+UmK7}|u&EPi%aRt_C3qOFB_ zHc`~N>51%{?ijG?xsHt>MwRChgk=x_z0gh3O2xSL)-6?+2LKZL74~Q>MZjWtwukkA tvjRC=&j+0R$&bLyT7MhBcTXDISHC&xXU0&5CWHV0002ovPDHLkV1fX+la~Mh literal 0 HcmV?d00001 diff --git a/vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_shadow_nw.png b/vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_shadow_nw.png new file mode 100755 index 0000000000000000000000000000000000000000..7182cd938ae98e7e28c65a0bc55df576042ff9f5 GIT binary patch literal 324 zcmV-K0lWT*P)2-&4CO{qhKP$XKD&mgeXEM77>~`RA}h@U^Z##eQZVtM>a-K?QT4 z&(8BFf(rD5V61)2I__wHYuRwoaDIqw5Vdr_JSDVr){#J@r;{vbDL|tRyCiirf~4OF zX-l=Ecm>@yR)1nSMt~dy90Zb`^`)TQbhf8jR@fA!l6V$musRyB9Y{p$SCW}!$3==V zk)fW)Xo{s^ez$t+XhmZj;ts)!kTokvmM>z)zt70000 literal 0 HcmV?d00001 diff --git a/vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_shadow_se.png b/vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_shadow_se.png new file mode 100755 index 0000000000000000000000000000000000000000..541e3ffd3e88224b34a4d2097c66a780e6060aeb GIT binary patch literal 352 zcmV-m0iXVfP){pM9=`y8<_IvWD02WY@RZ<9dgjNmAB|sYF}Xw>7Sq@O0000eMf9z;FC21=)67q_`W0*0KnS4AR00W2`RGn3i8UfsEegLO@ zPhds?2e1Tm)FK3=bymIAx?X=YFo3Mdh7W?@I#8s#svp!&PB> zwah@Ngd|l0N4SCfzvjtQnd$dZ0yM)N$X+lqdtN!Pt{Wn*_`0U}m1^#r1 mwpaW{;a?9KKt^WrpTAEd?0j1W(3L*`0000P{ho=rRL|66mGO)=r*Hk83F#~lnc)I$ztaD0e0sy?& B8X5oq literal 0 HcmV?d00001 diff --git a/vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_title_left.png b/vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_title_left.png new file mode 100755 index 0000000000000000000000000000000000000000..6049223d1ec6af46e100499c01f6489c9e2c6240 GIT binary patch literal 503 zcmV+)0005LNklqcp9&~$uJw{{rUub~E?-XJ#Upm4Fe%-Gl z!u%tb0N102a|s5;SPlQvJlFCTBbvYaK@wIW6Gjx@?i20AlVDJcHNfh25WRlbF6CIq zv9_ZnqOH`}ppaUR0@%ZcM9zpDt2uQM>f+Z#wIMmyuui3DeoYXWE|hQ{D$te=Yhgkq zIvyj+$t8T|S1wITzUftNOe(E+Qjn$kDotY;I5}1lRgwi=?K26ke)djLR5W2|!7CVH zJ-`tuAq|`lK978y+CnqGNCkUke_%Gig ukvFM-ftpWh!il7Wg7kz7Y?7xB@G*olNlgoj4E_Yv!rmdKI;Vst0Ha3^zyJUM literal 0 HcmV?d00001 diff --git a/vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_title_right.png b/vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_title_right.png new file mode 100755 index 0000000000000000000000000000000000000000..e36d9db2a7c6e570aec993d3665cbc13620115e2 GIT binary patch literal 506 zcmV+)0005ONklxjQB-g>5=x46nGBwseihc$zfzvTFh(=tCRj6cJ4M&ASrCAq-HbokPnRBAHVa2(-|l wYU(UxfYLN;K{slJ*G&3>>u+mABlACnJzLDTX_`*G$*cot89%W{AUA^13f>LH;@v@20 z*k^;I{qmZeovq=uO%7HuK)l>$A_9~ zh~UD%_EfI;W_rk=o^4fL*<~KbW8|dR+-Jcsn4%n~5u$E040 zaZV}rz?XCfKt~$SN*Y+Ke#KJMPJxPe018%k*%SaZf1aZ;Fl9Z^vc|r*!kM)^F}-T0 zOwVY_Hd3ekn+Ilobdmm@Sg7m4Dk|6-a#9qyXs#u$vqw11kl#|>QmZU@K3C(GTyeHd z!xL%CxAVJ`B!F&ys{X;K(Dqn^hfzUwT*(h%>Q5!noKgZUJ$(Mcn%0cg`plK4u?Alp z^a?;L;MDJ*LJ@hN)w&xSnl~eFLfpg=Tn10w4_M4=&4u+*e|nQR*|U^+ zwzgcNFY$%b!z)?>Mr|YWgXWPl5{@nVuCx4II8zH36;X{(_v^{(wpHn@#M?jER>`Zg z>yG{8Oi7;273Gg4-m2-ZZ3BwBzf0ZyzLoxSrLUQ4eY$s+jHQcE< zzHx}2!uB?A)HUs$KWXSQy&kxJb*%$-Zj04e&=qF;uCXcIBK>>Q2AX+4ia+0yIdFXt0#G=scM(E93H;DTZ^w; zbngMR0l64+p6>zNAGm0nU9oH6+H?axFHT-@aQ9 zxO$;sFQ-iBE+^K}AxrW8=fvRR_xfoz3nrTMsUA)%mcsYqZ_aTVUCf6ANVziX3q+WJ zNLQo6*#z(CT9;+q_GIYwl5vlAVWLGV`7N;g(s;^UfK6nFC>udw+4`d_(H!Ayr8#d- zV>LP8{_F)Lo8Dn^{PjatBF>QZv7{qAjbW#cJMWxeO(ffMo>-w}%7Am@*GZFB|H&PS z$A5_;%qYdn++GSk@?bdrk6bRK+&_u^2cJf3(WRsZ zpsRlFq-NdI*}}oIGVYk~Qqlw_@}iEvFEX9{^XSTnt_^3*TJxV*_oZV~r;ES-CXl1J z79GNW|K#9|IRlODy5PgYox8+1GDoSoM!CoA*Tp(H| zjMhjPW7nygBFs6%P`Zm>$1g!$H2Vo7NumZ=H88{7(U?TO`_nGQ?KHJYD#*mESu4W{ zLw%&CHW<^7eY7c2jLFXorFUy`23Yo>Ci#q4Wd#q&nEyOL!F8eG=n^9NGlquqyAl*kS8|>OuQPRz%vhFrD?VIL+RyzF4@KSX_ z#wL6H9XhkES3?yHQN7JjH5OXLq4^5#0W5##N!S+fs=HC)OF#64x7)6ch-^VazGM6q zEW)_s{Qe?qJh?uht5WHKT*OzBXerJZE5bKXSozjE(@(z!ULC8Us{H&lry$(Bi!G}z zwUwpz^>yvv;y5}d=gF;FfP1ZdkvH!c>l+tCb^8uq(fbt(T_jP3SJX0vI`-z+G>Lm4 z8|UEap}Ttv*jTcpsYjP8Rgw|5~1j~bu|Ih}Iy%0D+u zn6D>hmyDPr6EvMkTN?lBM@gx9=JGQUr1{0KKr8La4h=0V9`L(e5+bcQ&X)ZoaMvI! zbqvNnCC{#;>ZNQdr@g#^T)?TZ!M$*pe_pv$p+hAc7NDIpR!r-{;WrL1ZHVxXt3cEP zR67jNu@zvxnP5i)Aa+xoU051pTe>P3>voY=s8$lP{chgZ#y`f&sas^g^Do|Y{JriT z>tV_g+_VmT2R_|-KNF0E$dEzpf?${+m+Tyo0vz1t zD8_H{MEC}&G!VUjSp?;&Mf=Z)7I9Rs>q@F_+Hh)rK(AmW{X+^j~dslS~g)2+wRy(qoPS zgw!lid*TBgh(5yGLrertM;ZwU1J8+tTdT3Y8{VIN08vXcvKeeq|8%twT0hqo&D2XI z_(OOtXUyRR7-90-mBa92SYz>jaH;mG*)g{UmOO##p&#O2H1BuDx0^IQ_b;qo-}@h$BBMNF?A0T zyJR_&b+s943LH2fb=07lgy@{Zi$3FeBahC8PAtMV)cG8|%TCpYvV=sltusV{19eA*a5pa+>MA zbDc2c_UX6A_)QqvvTn1{%CS3jMB4^e{Z#b3g;3_ff-IHgmu2X?TVry|9Ag3@vfjT_ zTDc5B$^Bl#bJ4MMu9lEEqvLHhWo)tug@KRv?4T+Ln(;)DyZ;Sxf&F1*yu#*scAGxW zeUCP3x4df>`xANr`3i2|vwXOQH&vucJh8_BwO3n}rB9rMAdaER!R`l&Qy()pfysH!v$C+~7+hnA`n%xTc-Qg<?onQ&wnA>?&NBuQq(i-Y>~)i*Y&4Ll@zFqQ2oFn>Gpz*Cri7ME)Iys zFz3sHJm9?m;Cc*aaKE%Pc=yyfG)dZ*Z`l~X5)QXOw0$k=FWS3tx-{S6G90xdK~u?j zEOes|NOmIS2$d7mt!!*}cCVcXpKXW>?4~Ak(ma<}Y8S2qv_M8CJtlMd?^4?a zh~NHIcLsXnRP=V9mCd@J+jgIgJ?N0O;9r$#G)wK%sv???nbFI4V<|X_Z}!%u5}D>d z{i2Vb75VJ*LQh!b%j%rrW{v|5kNiWhB~OIdM~^r_%;_~SUiG8s9RON2IvbV`;YnzN zH+H^0b-#S3zM88kzkf~YYdq@w*e#sXq#se|w?FcDpMQMxxIdj%{%QW*@ql9~F&2$T z7CS0Mi)qXJ2Z`$zEtGb>n@;<3a!bFREbmpXf#QyOT;Zf1aYmA{gEjqK9&dA#Zkv3M zwX_#`l3(@%18v({$_k~B`_vr@k+2Oh?OpL!Vkzk^m7;`AV|q8&V@7fwVd5L$>(d^GI})g8 z)hJGg?0~}qFfsW@(_i5I93NU%3f6P=i15hsM*!*>`#O3h4T~nqM;&HA@1iotoomMt zst0l_rAtGSVX^ulg4JBO(Ra8oQ{$qMkRNw5d--ayWu5i@*Q2Qnk!hRGce(|w&|I}! zq13jcKekIdQxU5be`hL`kx$fSgdBh!hjZDFdB3vcy=k7z>5ADS3q`=ELFmx)bKI1< zv~5jWDWgIJf{Mq&`BeO}?qXOMT=Bb}%@AiKCz7ABJNf|ox;Utbrd|H9J@%cgKBHKyYU9J>;amY->_(^+;HP%Zp zf~t{t;={qAj$gA-G6e6-?=sC`S&Z&pn=d;WQPo%4Lp~PN^$z>H4Q7uJtCw;ljWQGK z@%w=&nc5<1$3gW@%8RDQw$mWerBKy%(l)ch?-Lc=j_m;jm-Z~OAYRN%AU(=QYZa5K znX#@GWYI>40L;s$=+>ZHGm%phJ^}&Wb_}|OA^Zc4fa{M>IA3Ll64qq>I?Y;kUn_;Y zxUUF`(MpJcUm76|3X~o%!Ge-%=-=BBf z)C9bZg{^Pg(>g22tY%13F9Tx`z_NAd0;3Ue$B1I??SP-&OGzMAScyaQoXgc6K5Ty& z&-!p=qTx<^*y=_@u%tMd9wBzed;f-vBld20o~c*iGfx!(?mdER6$^9A%!5PL`G}JC z>xn@03FS$Mb;Ik__6-^Rfn+(&uVjj~wa@1!j#7#3QHx>pBOSLAnNYP-;vL0g(s+c$ zi2;5ZXws8F+_UC}^K8zfg&XpH(u~`!l|+t#Lz%g0qPbVCZ!KK;7Atd(^9b;*Op*=H zZud9}%!6*L>~Ho-epFZ$hO=tG;|Ua)I2*(I7Ecch->mp8|6w>*qu~2TH+k}mRc9Sw z;w^YhUy5=GfaVwY6u!C84%hCB?T?LwdClRxmiiNZNq#5@^2$U2k0!nuWHWP2^e331 zz4!XHJIcPkwqkMly{IPes^;~>G$Yxt{Iow^ z`VxSi##qd~*eute-u=@n`t$dcRLRo;mG=WS=4@O$thU0R7tjnCmEolE{_S@9Q*Bj4s{Hb5Ee%@no{N*5DS zzF@(X*H3ttA$#5Fuz_@pPfU(nq>tA(XA)nCm{+U6qecFb^Uu*yZC!G5yAO@1&?i@E z?Vo^z6Ox1tQ60zU>h+Hnnh(i$F8~^cQ(ynPK7M8%I=|msAtNmfaSH5P*eFjdtexCc zJiXYDdpjD&bn6O8ci4(q(P74D5P|=KT)=O_w9+W!Srs`yvfE9rO-1){i=j.data;i.beforeFilter&&i.beforeFilter[a.type]&&!i.beforeFilter[a.type](a)||f.push(j.selector)}else delete x[o]}i=c(a.target).closest(f, +a.currentTarget);m=0;for(s=i.length;m)[^>]*$|^#([\w-]+)$/,Qa=/^.[^:#\[\.,]*$/,Ra=/\S/,Sa=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,Ta=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,O=navigator.userAgent, +va=false,P=[],L,$=Object.prototype.toString,aa=Object.prototype.hasOwnProperty,ba=Array.prototype.push,Q=Array.prototype.slice,wa=Array.prototype.indexOf;c.fn=c.prototype={init:function(a,b){var d,f;if(!a)return this;if(a.nodeType){this.context=this[0]=a;this.length=1;return this}if(typeof a==="string")if((d=Pa.exec(a))&&(d[1]||!b))if(d[1]){f=b?b.ownerDocument||b:r;if(a=Ta.exec(a))if(c.isPlainObject(b)){a=[r.createElement(a[1])];c.fn.attr.call(a,b,true)}else a=[f.createElement(a[1])];else{a=ra([d[1]], +[f]);a=(a.cacheable?a.fragment.cloneNode(true):a.fragment).childNodes}}else{if(b=r.getElementById(d[2])){if(b.id!==d[2])return S.find(a);this.length=1;this[0]=b}this.context=r;this.selector=a;return this}else if(!b&&/^\w+$/.test(a)){this.selector=a;this.context=r;a=r.getElementsByTagName(a)}else return!b||b.jquery?(b||S).find(a):c(b).find(a);else if(c.isFunction(a))return S.ready(a);if(a.selector!==v){this.selector=a.selector;this.context=a.context}return c.isArray(a)?this.setArray(a):c.makeArray(a, +this)},selector:"",jquery:"1.4.1",length:0,size:function(){return this.length},toArray:function(){return Q.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this.slice(a)[0]:this[a]},pushStack:function(a,b,d){a=c(a||null);a.prevObject=this;a.context=this.context;if(b==="find")a.selector=this.selector+(this.selector?" ":"")+d;else if(b)a.selector=this.selector+"."+b+"("+d+")";return a},setArray:function(a){this.length=0;ba.apply(this,a);return this},each:function(a,b){return c.each(this, +a,b)},ready:function(a){c.bindReady();if(c.isReady)a.call(r,c);else P&&P.push(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(Q.apply(this,arguments),"slice",Q.call(arguments).join(","))},map:function(a){return this.pushStack(c.map(this,function(b,d){return a.call(b,d,b)}))},end:function(){return this.prevObject||c(null)},push:ba,sort:[].sort,splice:[].splice}; +c.fn.init.prototype=c.fn;c.extend=c.fn.extend=function(){var a=arguments[0]||{},b=1,d=arguments.length,f=false,e,i,j,n;if(typeof a==="boolean"){f=a;a=arguments[1]||{};b=2}if(typeof a!=="object"&&!c.isFunction(a))a={};if(d===b){a=this;--b}for(;b
    a";var e=d.getElementsByTagName("*"),i=d.getElementsByTagName("a")[0];if(!(!e||!e.length||!i)){c.support= +{leadingWhitespace:d.firstChild.nodeType===3,tbody:!d.getElementsByTagName("tbody").length,htmlSerialize:!!d.getElementsByTagName("link").length,style:/red/.test(i.getAttribute("style")),hrefNormalized:i.getAttribute("href")==="/a",opacity:/^0.55$/.test(i.style.opacity),cssFloat:!!i.style.cssFloat,checkOn:d.getElementsByTagName("input")[0].value==="on",optSelected:r.createElement("select").appendChild(r.createElement("option")).selected,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null}; +b.type="text/javascript";try{b.appendChild(r.createTextNode("window."+f+"=1;"))}catch(j){}a.insertBefore(b,a.firstChild);if(z[f]){c.support.scriptEval=true;delete z[f]}a.removeChild(b);if(d.attachEvent&&d.fireEvent){d.attachEvent("onclick",function n(){c.support.noCloneEvent=false;d.detachEvent("onclick",n)});d.cloneNode(true).fireEvent("onclick")}d=r.createElement("div");d.innerHTML="";a=r.createDocumentFragment();a.appendChild(d.firstChild); +c.support.checkClone=a.cloneNode(true).cloneNode(true).lastChild.checked;c(function(){var n=r.createElement("div");n.style.width=n.style.paddingLeft="1px";r.body.appendChild(n);c.boxModel=c.support.boxModel=n.offsetWidth===2;r.body.removeChild(n).style.display="none"});a=function(n){var o=r.createElement("div");n="on"+n;var m=n in o;if(!m){o.setAttribute(n,"return;");m=typeof o[n]==="function"}return m};c.support.submitBubbles=a("submit");c.support.changeBubbles=a("change");a=b=d=e=i=null}})();c.props= +{"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var G="jQuery"+J(),Ua=0,xa={},Va={};c.extend({cache:{},expando:G,noData:{embed:true,object:true,applet:true},data:function(a,b,d){if(!(a.nodeName&&c.noData[a.nodeName.toLowerCase()])){a=a==z?xa:a;var f=a[G],e=c.cache;if(!b&&!f)return null;f||(f=++Ua);if(typeof b==="object"){a[G]=f;e=e[f]=c.extend(true, +{},b)}else e=e[f]?e[f]:typeof d==="undefined"?Va:(e[f]={});if(d!==v){a[G]=f;e[b]=d}return typeof b==="string"?e[b]:e}},removeData:function(a,b){if(!(a.nodeName&&c.noData[a.nodeName.toLowerCase()])){a=a==z?xa:a;var d=a[G],f=c.cache,e=f[d];if(b){if(e){delete e[b];c.isEmptyObject(e)&&c.removeData(a)}}else{try{delete a[G]}catch(i){a.removeAttribute&&a.removeAttribute(G)}delete f[d]}}}});c.fn.extend({data:function(a,b){if(typeof a==="undefined"&&this.length)return c.data(this[0]);else if(typeof a==="object")return this.each(function(){c.data(this, +a)});var d=a.split(".");d[1]=d[1]?"."+d[1]:"";if(b===v){var f=this.triggerHandler("getData"+d[1]+"!",[d[0]]);if(f===v&&this.length)f=c.data(this[0],a);return f===v&&d[1]?this.data(d[0]):f}else return this.trigger("setData"+d[1]+"!",[d[0],b]).each(function(){c.data(this,a,b)})},removeData:function(a){return this.each(function(){c.removeData(this,a)})}});c.extend({queue:function(a,b,d){if(a){b=(b||"fx")+"queue";var f=c.data(a,b);if(!d)return f||[];if(!f||c.isArray(d))f=c.data(a,b,c.makeArray(d));else f.push(d); +return f}},dequeue:function(a,b){b=b||"fx";var d=c.queue(a,b),f=d.shift();if(f==="inprogress")f=d.shift();if(f){b==="fx"&&d.unshift("inprogress");f.call(a,function(){c.dequeue(a,b)})}}});c.fn.extend({queue:function(a,b){if(typeof a!=="string"){b=a;a="fx"}if(b===v)return c.queue(this[0],a);return this.each(function(){var d=c.queue(this,a,b);a==="fx"&&d[0]!=="inprogress"&&c.dequeue(this,a)})},dequeue:function(a){return this.each(function(){c.dequeue(this,a)})},delay:function(a,b){a=c.fx?c.fx.speeds[a]|| +a:a;b=b||"fx";return this.queue(b,function(){var d=this;setTimeout(function(){c.dequeue(d,b)},a)})},clearQueue:function(a){return this.queue(a||"fx",[])}});var ya=/[\n\t]/g,ca=/\s+/,Wa=/\r/g,Xa=/href|src|style/,Ya=/(button|input)/i,Za=/(button|input|object|select|textarea)/i,$a=/^(a|area)$/i,za=/radio|checkbox/;c.fn.extend({attr:function(a,b){return X(this,a,b,true,c.attr)},removeAttr:function(a){return this.each(function(){c.attr(this,a,"");this.nodeType===1&&this.removeAttribute(a)})},addClass:function(a){if(c.isFunction(a))return this.each(function(o){var m= +c(this);m.addClass(a.call(this,o,m.attr("class")))});if(a&&typeof a==="string")for(var b=(a||"").split(ca),d=0,f=this.length;d-1)return true;return false},val:function(a){if(a===v){var b=this[0];if(b){if(c.nodeName(b,"option"))return(b.attributes.value|| +{}).specified?b.value:b.text;if(c.nodeName(b,"select")){var d=b.selectedIndex,f=[],e=b.options;b=b.type==="select-one";if(d<0)return null;var i=b?d:0;for(d=b?d+1:e.length;i=0;else if(c.nodeName(this,"select")){var x=c.makeArray(s);c("option",this).each(function(){this.selected=c.inArray(c(this).val(),x)>=0});if(!x.length)this.selectedIndex=-1}else this.value=s}})}});c.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(a,b,d,f){if(!a||a.nodeType===3||a.nodeType===8)return v;if(f&&b in c.attrFn)return c(a)[b](d); +f=a.nodeType!==1||!c.isXMLDoc(a);var e=d!==v;b=f&&c.props[b]||b;if(a.nodeType===1){var i=Xa.test(b);if(b in a&&f&&!i){if(e){b==="type"&&Ya.test(a.nodeName)&&a.parentNode&&c.error("type property can't be changed");a[b]=d}if(c.nodeName(a,"form")&&a.getAttributeNode(b))return a.getAttributeNode(b).nodeValue;if(b==="tabIndex")return(b=a.getAttributeNode("tabIndex"))&&b.specified?b.value:Za.test(a.nodeName)||$a.test(a.nodeName)&&a.href?0:v;return a[b]}if(!c.support.style&&f&&b==="style"){if(e)a.style.cssText= +""+d;return a.style.cssText}e&&a.setAttribute(b,""+d);a=!c.support.hrefNormalized&&f&&i?a.getAttribute(b,2):a.getAttribute(b);return a===null?v:a}return c.style(a,b,d)}});var ab=function(a){return a.replace(/[^\w\s\.\|`]/g,function(b){return"\\"+b})};c.event={add:function(a,b,d,f){if(!(a.nodeType===3||a.nodeType===8)){if(a.setInterval&&a!==z&&!a.frameElement)a=z;if(!d.guid)d.guid=c.guid++;if(f!==v){d=c.proxy(d);d.data=f}var e=c.data(a,"events")||c.data(a,"events",{}),i=c.data(a,"handle"),j;if(!i){j= +function(){return typeof c!=="undefined"&&!c.event.triggered?c.event.handle.apply(j.elem,arguments):v};i=c.data(a,"handle",j)}if(i){i.elem=a;b=b.split(/\s+/);for(var n,o=0;n=b[o++];){var m=n.split(".");n=m.shift();if(o>1){d=c.proxy(d);if(f!==v)d.data=f}d.type=m.slice(0).sort().join(".");var s=e[n],x=this.special[n]||{};if(!s){s=e[n]={};if(!x.setup||x.setup.call(a,f,m,d)===false)if(a.addEventListener)a.addEventListener(n,i,false);else a.attachEvent&&a.attachEvent("on"+n,i)}if(x.add)if((m=x.add.call(a, +d,f,m,s))&&c.isFunction(m)){m.guid=m.guid||d.guid;m.data=m.data||d.data;m.type=m.type||d.type;d=m}s[d.guid]=d;this.global[n]=true}a=null}}},global:{},remove:function(a,b,d){if(!(a.nodeType===3||a.nodeType===8)){var f=c.data(a,"events"),e,i,j;if(f){if(b===v||typeof b==="string"&&b.charAt(0)===".")for(i in f)this.remove(a,i+(b||""));else{if(b.type){d=b.handler;b=b.type}b=b.split(/\s+/);for(var n=0;i=b[n++];){var o=i.split(".");i=o.shift();var m=!o.length,s=c.map(o.slice(0).sort(),ab);s=new RegExp("(^|\\.)"+ +s.join("\\.(?:.*\\.)?")+"(\\.|$)");var x=this.special[i]||{};if(f[i]){if(d){j=f[i][d.guid];delete f[i][d.guid]}else for(var A in f[i])if(m||s.test(f[i][A].type))delete f[i][A];x.remove&&x.remove.call(a,o,j);for(e in f[i])break;if(!e){if(!x.teardown||x.teardown.call(a,o)===false)if(a.removeEventListener)a.removeEventListener(i,c.data(a,"handle"),false);else a.detachEvent&&a.detachEvent("on"+i,c.data(a,"handle"));e=null;delete f[i]}}}}for(e in f)break;if(!e){if(A=c.data(a,"handle"))A.elem=null;c.removeData(a, +"events");c.removeData(a,"handle")}}}},trigger:function(a,b,d,f){var e=a.type||a;if(!f){a=typeof a==="object"?a[G]?a:c.extend(c.Event(e),a):c.Event(e);if(e.indexOf("!")>=0){a.type=e=e.slice(0,-1);a.exclusive=true}if(!d){a.stopPropagation();this.global[e]&&c.each(c.cache,function(){this.events&&this.events[e]&&c.event.trigger(a,b,this.handle.elem)})}if(!d||d.nodeType===3||d.nodeType===8)return v;a.result=v;a.target=d;b=c.makeArray(b);b.unshift(a)}a.currentTarget=d;(f=c.data(d,"handle"))&&f.apply(d, +b);f=d.parentNode||d.ownerDocument;try{if(!(d&&d.nodeName&&c.noData[d.nodeName.toLowerCase()]))if(d["on"+e]&&d["on"+e].apply(d,b)===false)a.result=false}catch(i){}if(!a.isPropagationStopped()&&f)c.event.trigger(a,b,f,true);else if(!a.isDefaultPrevented()){d=a.target;var j;if(!(c.nodeName(d,"a")&&e==="click")&&!(d&&d.nodeName&&c.noData[d.nodeName.toLowerCase()])){try{if(d[e]){if(j=d["on"+e])d["on"+e]=null;this.triggered=true;d[e]()}}catch(n){}if(j)d["on"+e]=j;this.triggered=false}}},handle:function(a){var b, +d;a=arguments[0]=c.event.fix(a||z.event);a.currentTarget=this;d=a.type.split(".");a.type=d.shift();b=!d.length&&!a.exclusive;var f=new RegExp("(^|\\.)"+d.slice(0).sort().join("\\.(?:.*\\.)?")+"(\\.|$)");d=(c.data(this,"events")||{})[a.type];for(var e in d){var i=d[e];if(b||f.test(i.type)){a.handler=i;a.data=i.data;i=i.apply(this,arguments);if(i!==v){a.result=i;if(i===false){a.preventDefault();a.stopPropagation()}}if(a.isImmediatePropagationStopped())break}}return a.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "), +fix:function(a){if(a[G])return a;var b=a;a=c.Event(b);for(var d=this.props.length,f;d;){f=this.props[--d];a[f]=b[f]}if(!a.target)a.target=a.srcElement||r;if(a.target.nodeType===3)a.target=a.target.parentNode;if(!a.relatedTarget&&a.fromElement)a.relatedTarget=a.fromElement===a.target?a.toElement:a.fromElement;if(a.pageX==null&&a.clientX!=null){b=r.documentElement;d=r.body;a.pageX=a.clientX+(b&&b.scrollLeft||d&&d.scrollLeft||0)-(b&&b.clientLeft||d&&d.clientLeft||0);a.pageY=a.clientY+(b&&b.scrollTop|| +d&&d.scrollTop||0)-(b&&b.clientTop||d&&d.clientTop||0)}if(!a.which&&(a.charCode||a.charCode===0?a.charCode:a.keyCode))a.which=a.charCode||a.keyCode;if(!a.metaKey&&a.ctrlKey)a.metaKey=a.ctrlKey;if(!a.which&&a.button!==v)a.which=a.button&1?1:a.button&2?3:a.button&4?2:0;return a},guid:1E8,proxy:c.proxy,special:{ready:{setup:c.bindReady,teardown:c.noop},live:{add:function(a,b){c.extend(a,b||{});a.guid+=b.selector+b.live;b.liveProxy=a;c.event.add(this,b.live,na,b)},remove:function(a){if(a.length){var b= +0,d=new RegExp("(^|\\.)"+a[0]+"(\\.|$)");c.each(c.data(this,"events").live||{},function(){d.test(this.type)&&b++});b<1&&c.event.remove(this,a[0],na)}},special:{}},beforeunload:{setup:function(a,b,d){if(this.setInterval)this.onbeforeunload=d;return false},teardown:function(a,b){if(this.onbeforeunload===b)this.onbeforeunload=null}}}};c.Event=function(a){if(!this.preventDefault)return new c.Event(a);if(a&&a.type){this.originalEvent=a;this.type=a.type}else this.type=a;this.timeStamp=J();this[G]=true}; +c.Event.prototype={preventDefault:function(){this.isDefaultPrevented=Z;var a=this.originalEvent;if(a){a.preventDefault&&a.preventDefault();a.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=Z;var a=this.originalEvent;if(a){a.stopPropagation&&a.stopPropagation();a.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=Z;this.stopPropagation()},isDefaultPrevented:Y,isPropagationStopped:Y,isImmediatePropagationStopped:Y};var Aa=function(a){for(var b= +a.relatedTarget;b&&b!==this;)try{b=b.parentNode}catch(d){break}if(b!==this){a.type=a.data;c.event.handle.apply(this,arguments)}},Ba=function(a){a.type=a.data;c.event.handle.apply(this,arguments)};c.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){c.event.special[a]={setup:function(d){c.event.add(this,b,d&&d.selector?Ba:Aa,a)},teardown:function(d){c.event.remove(this,b,d&&d.selector?Ba:Aa)}}});if(!c.support.submitBubbles)c.event.special.submit={setup:function(a,b,d){if(this.nodeName.toLowerCase()!== +"form"){c.event.add(this,"click.specialSubmit."+d.guid,function(f){var e=f.target,i=e.type;if((i==="submit"||i==="image")&&c(e).closest("form").length)return ma("submit",this,arguments)});c.event.add(this,"keypress.specialSubmit."+d.guid,function(f){var e=f.target,i=e.type;if((i==="text"||i==="password")&&c(e).closest("form").length&&f.keyCode===13)return ma("submit",this,arguments)})}else return false},remove:function(a,b){c.event.remove(this,"click.specialSubmit"+(b?"."+b.guid:""));c.event.remove(this, +"keypress.specialSubmit"+(b?"."+b.guid:""))}};if(!c.support.changeBubbles){var da=/textarea|input|select/i;function Ca(a){var b=a.type,d=a.value;if(b==="radio"||b==="checkbox")d=a.checked;else if(b==="select-multiple")d=a.selectedIndex>-1?c.map(a.options,function(f){return f.selected}).join("-"):"";else if(a.nodeName.toLowerCase()==="select")d=a.selectedIndex;return d}function ea(a,b){var d=a.target,f,e;if(!(!da.test(d.nodeName)||d.readOnly)){f=c.data(d,"_change_data");e=Ca(d);if(a.type!=="focusout"|| +d.type!=="radio")c.data(d,"_change_data",e);if(!(f===v||e===f))if(f!=null||e){a.type="change";return c.event.trigger(a,b,d)}}}c.event.special.change={filters:{focusout:ea,click:function(a){var b=a.target,d=b.type;if(d==="radio"||d==="checkbox"||b.nodeName.toLowerCase()==="select")return ea.call(this,a)},keydown:function(a){var b=a.target,d=b.type;if(a.keyCode===13&&b.nodeName.toLowerCase()!=="textarea"||a.keyCode===32&&(d==="checkbox"||d==="radio")||d==="select-multiple")return ea.call(this,a)},beforeactivate:function(a){a= +a.target;a.nodeName.toLowerCase()==="input"&&a.type==="radio"&&c.data(a,"_change_data",Ca(a))}},setup:function(a,b,d){for(var f in T)c.event.add(this,f+".specialChange."+d.guid,T[f]);return da.test(this.nodeName)},remove:function(a,b){for(var d in T)c.event.remove(this,d+".specialChange"+(b?"."+b.guid:""),T[d]);return da.test(this.nodeName)}};var T=c.event.special.change.filters}r.addEventListener&&c.each({focus:"focusin",blur:"focusout"},function(a,b){function d(f){f=c.event.fix(f);f.type=b;return c.event.handle.call(this, +f)}c.event.special[b]={setup:function(){this.addEventListener(a,d,true)},teardown:function(){this.removeEventListener(a,d,true)}}});c.each(["bind","one"],function(a,b){c.fn[b]=function(d,f,e){if(typeof d==="object"){for(var i in d)this[b](i,f,d[i],e);return this}if(c.isFunction(f)){e=f;f=v}var j=b==="one"?c.proxy(e,function(n){c(this).unbind(n,j);return e.apply(this,arguments)}):e;return d==="unload"&&b!=="one"?this.one(d,f,e):this.each(function(){c.event.add(this,d,j,f)})}});c.fn.extend({unbind:function(a, +b){if(typeof a==="object"&&!a.preventDefault){for(var d in a)this.unbind(d,a[d]);return this}return this.each(function(){c.event.remove(this,a,b)})},trigger:function(a,b){return this.each(function(){c.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0]){a=c.Event(a);a.preventDefault();a.stopPropagation();c.event.trigger(a,b,this[0]);return a.result}},toggle:function(a){for(var b=arguments,d=1;d0){y=t;break}}t=t[g]}l[q]=y}}}var f=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,e=0,i=Object.prototype.toString,j=false,n=true;[0,0].sort(function(){n=false;return 0});var o=function(g,h,k,l){k=k||[];var q=h=h||r;if(h.nodeType!==1&&h.nodeType!==9)return[];if(!g|| +typeof g!=="string")return k;for(var p=[],u,t,y,R,H=true,M=w(h),I=g;(f.exec(""),u=f.exec(I))!==null;){I=u[3];p.push(u[1]);if(u[2]){R=u[3];break}}if(p.length>1&&s.exec(g))if(p.length===2&&m.relative[p[0]])t=fa(p[0]+p[1],h);else for(t=m.relative[p[0]]?[h]:o(p.shift(),h);p.length;){g=p.shift();if(m.relative[g])g+=p.shift();t=fa(g,t)}else{if(!l&&p.length>1&&h.nodeType===9&&!M&&m.match.ID.test(p[0])&&!m.match.ID.test(p[p.length-1])){u=o.find(p.shift(),h,M);h=u.expr?o.filter(u.expr,u.set)[0]:u.set[0]}if(h){u= +l?{expr:p.pop(),set:A(l)}:o.find(p.pop(),p.length===1&&(p[0]==="~"||p[0]==="+")&&h.parentNode?h.parentNode:h,M);t=u.expr?o.filter(u.expr,u.set):u.set;if(p.length>0)y=A(t);else H=false;for(;p.length;){var D=p.pop();u=D;if(m.relative[D])u=p.pop();else D="";if(u==null)u=h;m.relative[D](y,u,M)}}else y=[]}y||(y=t);y||o.error(D||g);if(i.call(y)==="[object Array]")if(H)if(h&&h.nodeType===1)for(g=0;y[g]!=null;g++){if(y[g]&&(y[g]===true||y[g].nodeType===1&&E(h,y[g])))k.push(t[g])}else for(g=0;y[g]!=null;g++)y[g]&& +y[g].nodeType===1&&k.push(t[g]);else k.push.apply(k,y);else A(y,k);if(R){o(R,q,k,l);o.uniqueSort(k)}return k};o.uniqueSort=function(g){if(C){j=n;g.sort(C);if(j)for(var h=1;h":function(g,h){var k=typeof h==="string";if(k&&!/\W/.test(h)){h=h.toLowerCase();for(var l=0,q=g.length;l=0))k||l.push(u);else if(k)h[p]=false;return false},ID:function(g){return g[1].replace(/\\/g,"")},TAG:function(g){return g[1].toLowerCase()},CHILD:function(g){if(g[1]==="nth"){var h=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(g[2]==="even"&&"2n"||g[2]==="odd"&& +"2n+1"||!/\D/.test(g[2])&&"0n+"+g[2]||g[2]);g[2]=h[1]+(h[2]||1)-0;g[3]=h[3]-0}g[0]=e++;return g},ATTR:function(g,h,k,l,q,p){h=g[1].replace(/\\/g,"");if(!p&&m.attrMap[h])g[1]=m.attrMap[h];if(g[2]==="~=")g[4]=" "+g[4]+" ";return g},PSEUDO:function(g,h,k,l,q){if(g[1]==="not")if((f.exec(g[3])||"").length>1||/^\w/.test(g[3]))g[3]=o(g[3],null,null,h);else{g=o.filter(g[3],h,k,true^q);k||l.push.apply(l,g);return false}else if(m.match.POS.test(g[0])||m.match.CHILD.test(g[0]))return true;return g},POS:function(g){g.unshift(true); +return g}},filters:{enabled:function(g){return g.disabled===false&&g.type!=="hidden"},disabled:function(g){return g.disabled===true},checked:function(g){return g.checked===true},selected:function(g){return g.selected===true},parent:function(g){return!!g.firstChild},empty:function(g){return!g.firstChild},has:function(g,h,k){return!!o(k[3],g).length},header:function(g){return/h\d/i.test(g.nodeName)},text:function(g){return"text"===g.type},radio:function(g){return"radio"===g.type},checkbox:function(g){return"checkbox"=== +g.type},file:function(g){return"file"===g.type},password:function(g){return"password"===g.type},submit:function(g){return"submit"===g.type},image:function(g){return"image"===g.type},reset:function(g){return"reset"===g.type},button:function(g){return"button"===g.type||g.nodeName.toLowerCase()==="button"},input:function(g){return/input|select|textarea|button/i.test(g.nodeName)}},setFilters:{first:function(g,h){return h===0},last:function(g,h,k,l){return h===l.length-1},even:function(g,h){return h%2=== +0},odd:function(g,h){return h%2===1},lt:function(g,h,k){return hk[3]-0},nth:function(g,h,k){return k[3]-0===h},eq:function(g,h,k){return k[3]-0===h}},filter:{PSEUDO:function(g,h,k,l){var q=h[1],p=m.filters[q];if(p)return p(g,k,h,l);else if(q==="contains")return(g.textContent||g.innerText||a([g])||"").indexOf(h[3])>=0;else if(q==="not"){h=h[3];k=0;for(l=h.length;k= +0}},ID:function(g,h){return g.nodeType===1&&g.getAttribute("id")===h},TAG:function(g,h){return h==="*"&&g.nodeType===1||g.nodeName.toLowerCase()===h},CLASS:function(g,h){return(" "+(g.className||g.getAttribute("class"))+" ").indexOf(h)>-1},ATTR:function(g,h){var k=h[1];g=m.attrHandle[k]?m.attrHandle[k](g):g[k]!=null?g[k]:g.getAttribute(k);k=g+"";var l=h[2];h=h[4];return g==null?l==="!=":l==="="?k===h:l==="*="?k.indexOf(h)>=0:l==="~="?(" "+k+" ").indexOf(h)>=0:!h?k&&g!==false:l==="!="?k!==h:l==="^="? +k.indexOf(h)===0:l==="$="?k.substr(k.length-h.length)===h:l==="|="?k===h||k.substr(0,h.length+1)===h+"-":false},POS:function(g,h,k,l){var q=m.setFilters[h[2]];if(q)return q(g,k,h,l)}}},s=m.match.POS;for(var x in m.match){m.match[x]=new RegExp(m.match[x].source+/(?![^\[]*\])(?![^\(]*\))/.source);m.leftMatch[x]=new RegExp(/(^(?:.|\r|\n)*?)/.source+m.match[x].source.replace(/\\(\d+)/g,function(g,h){return"\\"+(h-0+1)}))}var A=function(g,h){g=Array.prototype.slice.call(g,0);if(h){h.push.apply(h,g);return h}return g}; +try{Array.prototype.slice.call(r.documentElement.childNodes,0)}catch(B){A=function(g,h){h=h||[];if(i.call(g)==="[object Array]")Array.prototype.push.apply(h,g);else if(typeof g.length==="number")for(var k=0,l=g.length;k";var k=r.documentElement;k.insertBefore(g,k.firstChild);if(r.getElementById(h)){m.find.ID=function(l,q,p){if(typeof q.getElementById!=="undefined"&&!p)return(q=q.getElementById(l[1]))?q.id===l[1]||typeof q.getAttributeNode!=="undefined"&&q.getAttributeNode("id").nodeValue===l[1]?[q]:v:[]};m.filter.ID=function(l,q){var p=typeof l.getAttributeNode!=="undefined"&&l.getAttributeNode("id"); +return l.nodeType===1&&p&&p.nodeValue===q}}k.removeChild(g);k=g=null})();(function(){var g=r.createElement("div");g.appendChild(r.createComment(""));if(g.getElementsByTagName("*").length>0)m.find.TAG=function(h,k){k=k.getElementsByTagName(h[1]);if(h[1]==="*"){h=[];for(var l=0;k[l];l++)k[l].nodeType===1&&h.push(k[l]);k=h}return k};g.innerHTML="";if(g.firstChild&&typeof g.firstChild.getAttribute!=="undefined"&&g.firstChild.getAttribute("href")!=="#")m.attrHandle.href=function(h){return h.getAttribute("href", +2)};g=null})();r.querySelectorAll&&function(){var g=o,h=r.createElement("div");h.innerHTML="

    ";if(!(h.querySelectorAll&&h.querySelectorAll(".TEST").length===0)){o=function(l,q,p,u){q=q||r;if(!u&&q.nodeType===9&&!w(q))try{return A(q.querySelectorAll(l),p)}catch(t){}return g(l,q,p,u)};for(var k in g)o[k]=g[k];h=null}}();(function(){var g=r.createElement("div");g.innerHTML="
    ";if(!(!g.getElementsByClassName||g.getElementsByClassName("e").length=== +0)){g.lastChild.className="e";if(g.getElementsByClassName("e").length!==1){m.order.splice(1,0,"CLASS");m.find.CLASS=function(h,k,l){if(typeof k.getElementsByClassName!=="undefined"&&!l)return k.getElementsByClassName(h[1])};g=null}}})();var E=r.compareDocumentPosition?function(g,h){return g.compareDocumentPosition(h)&16}:function(g,h){return g!==h&&(g.contains?g.contains(h):true)},w=function(g){return(g=(g?g.ownerDocument||g:0).documentElement)?g.nodeName!=="HTML":false},fa=function(g,h){var k=[], +l="",q;for(h=h.nodeType?[h]:h;q=m.match.PSEUDO.exec(g);){l+=q[0];g=g.replace(m.match.PSEUDO,"")}g=m.relative[g]?g+"*":g;q=0;for(var p=h.length;q=0===d})};c.fn.extend({find:function(a){for(var b=this.pushStack("","find",a),d=0,f=0,e=this.length;f0)for(var i=d;i0},closest:function(a,b){if(c.isArray(a)){var d=[],f=this[0],e,i={},j;if(f&&a.length){e=0;for(var n=a.length;e +-1:c(f).is(e)){d.push({selector:j,elem:f});delete i[j]}}f=f.parentNode}}return d}var o=c.expr.match.POS.test(a)?c(a,b||this.context):null;return this.map(function(m,s){for(;s&&s.ownerDocument&&s!==b;){if(o?o.index(s)>-1:c(s).is(a))return s;s=s.parentNode}return null})},index:function(a){if(!a||typeof a==="string")return c.inArray(this[0],a?c(a):this.parent().children());return c.inArray(a.jquery?a[0]:a,this)},add:function(a,b){a=typeof a==="string"?c(a,b||this.context):c.makeArray(a);b=c.merge(this.get(), +a);return this.pushStack(pa(a[0])||pa(b[0])?b:c.unique(b))},andSelf:function(){return this.add(this.prevObject)}});c.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return c.dir(a,"parentNode")},parentsUntil:function(a,b,d){return c.dir(a,"parentNode",d)},next:function(a){return c.nth(a,2,"nextSibling")},prev:function(a){return c.nth(a,2,"previousSibling")},nextAll:function(a){return c.dir(a,"nextSibling")},prevAll:function(a){return c.dir(a,"previousSibling")}, +nextUntil:function(a,b,d){return c.dir(a,"nextSibling",d)},prevUntil:function(a,b,d){return c.dir(a,"previousSibling",d)},siblings:function(a){return c.sibling(a.parentNode.firstChild,a)},children:function(a){return c.sibling(a.firstChild)},contents:function(a){return c.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:c.makeArray(a.childNodes)}},function(a,b){c.fn[a]=function(d,f){var e=c.map(this,b,d);bb.test(a)||(f=d);if(f&&typeof f==="string")e=c.filter(f,e);e=this.length>1?c.unique(e): +e;if((this.length>1||db.test(f))&&cb.test(a))e=e.reverse();return this.pushStack(e,a,Q.call(arguments).join(","))}});c.extend({filter:function(a,b,d){if(d)a=":not("+a+")";return c.find.matches(a,b)},dir:function(a,b,d){var f=[];for(a=a[b];a&&a.nodeType!==9&&(d===v||a.nodeType!==1||!c(a).is(d));){a.nodeType===1&&f.push(a);a=a[b]}return f},nth:function(a,b,d){b=b||1;for(var f=0;a;a=a[d])if(a.nodeType===1&&++f===b)break;return a},sibling:function(a,b){for(var d=[];a;a=a.nextSibling)a.nodeType===1&&a!== +b&&d.push(a);return d}});var Fa=/ jQuery\d+="(?:\d+|null)"/g,V=/^\s+/,Ga=/(<([\w:]+)[^>]*?)\/>/g,eb=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,Ha=/<([\w:]+)/,fb=/"},F={option:[1,""],legend:[1,"
    ","
    "],thead:[1,"","
    "],tr:[2,"","
    "],td:[3,"","
    "], +col:[2,"","
    "],area:[1,"",""],_default:[0,"",""]};F.optgroup=F.option;F.tbody=F.tfoot=F.colgroup=F.caption=F.thead;F.th=F.td;if(!c.support.htmlSerialize)F._default=[1,"div
    ","
    "];c.fn.extend({text:function(a){if(c.isFunction(a))return this.each(function(b){var d=c(this);d.text(a.call(this,b,d.text()))});if(typeof a!=="object"&&a!==v)return this.empty().append((this[0]&&this[0].ownerDocument||r).createTextNode(a));return c.getText(this)}, +wrapAll:function(a){if(c.isFunction(a))return this.each(function(d){c(this).wrapAll(a.call(this,d))});if(this[0]){var b=c(a,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var d=this;d.firstChild&&d.firstChild.nodeType===1;)d=d.firstChild;return d}).append(this)}return this},wrapInner:function(a){if(c.isFunction(a))return this.each(function(b){c(this).wrapInner(a.call(this,b))});return this.each(function(){var b=c(this),d=b.contents();d.length? +d.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){c(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){c.nodeName(this,"body")||c(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments, +false,function(b){this.parentNode.insertBefore(b,this)});else if(arguments.length){var a=c(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this.nextSibling)});else if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,c(arguments[0]).toArray());return a}},clone:function(a){var b=this.map(function(){if(!c.support.noCloneEvent&& +!c.isXMLDoc(this)){var d=this.outerHTML,f=this.ownerDocument;if(!d){d=f.createElement("div");d.appendChild(this.cloneNode(true));d=d.innerHTML}return c.clean([d.replace(Fa,"").replace(V,"")],f)[0]}else return this.cloneNode(true)});if(a===true){qa(this,b);qa(this.find("*"),b.find("*"))}return b},html:function(a){if(a===v)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(Fa,""):null;else if(typeof a==="string"&&!/ + HTML + +=end + partial = "admin/helpers/quick_edit" + options = { :options => { :path => "articles/edit/1", + :message => "Edit this article" } } + + assert_equal [ partial, options], output + + end + + def admin_quick_edit_path + 'quick_edit' + end + +end \ No newline at end of file diff --git a/vendor/plugins/typus/test/helpers/admin/sidebar_helper_test.rb b/vendor/plugins/typus/test/helpers/admin/sidebar_helper_test.rb new file mode 100644 index 0000000..457e2b8 --- /dev/null +++ b/vendor/plugins/typus/test/helpers/admin/sidebar_helper_test.rb @@ -0,0 +1,320 @@ +# coding: utf-8 + +require 'test/helper' + +class Admin::SidebarHelperTest < ActiveSupport::TestCase + + include Admin::SidebarHelper + + include ActionView::Helpers::UrlHelper + include ActionController::UrlWriter + include ActionView::Helpers::TagHelper + include ActionView::Helpers::FormTagHelper + + def render(*args); args; end + + def setup + default_url_options[:host] = 'test.host' + end + + # TODO + def test_actions + end + + def test_export + + @resource = { :class => Post } + + params = { :controller => 'admin/posts', :action => 'index' } + self.expects(:params).at_least_once.returns(params) + + output = export + + expected = [ "admin/helpers/list", { :items => [ %Q[CSV], + %Q[XML] ], + :header => "Export", + :options => { :header => "export" } } ] + + assert_equal expected, output + + end + + def test_build_typus_list_with_empty_content_and_empty_header + output = build_typus_list([], :header => nil) + assert output.empty? + end + + def test_build_typus_list_with_content_and_header + + output = build_typus_list(['item1', 'item2'], :header => "Chunky Bacon") + assert !output.empty? + + expected = [ "admin/helpers/list", { :header=>"Chunky bacon", + :options => { :header=>"Chunky Bacon" }, + :items => [ "item1", "item2" ] } ] + + assert_equal expected, output + + end + + def test_build_typus_list_with_content_without_header + + output = build_typus_list(['item1', 'item2']) + expected = [ "admin/helpers/list", { :header => nil, + :options => {}, + :items=>["item1", "item2"] } ] + assert_equal expected, output + + end + + def test_search + + @resource = { :class => TypusUser, :self => 'typus_users' } + + params = { :controller => 'admin/typus_users', :action => 'index' } + self.expects(:params).at_least_once.returns(params) + + output = search + + partial = "admin/helpers/search" + options = { :hidden_params => [ %Q[], + %Q[] ], + :search_by => "First name, Last name, Email, and Role" } + + assert_equal [ partial, options ], output + + end + + def test_filters + + @resource = { :class => TypusUser, :self => 'typus_users' } + + @resource[:class].expects(:typus_filters).returns(Array.new) + + output = filters + assert output.nil? + + end + + # TODO: Test filters when @resource[:class].typus_filters returns filters. + def test_filters_with_filters + return + end + + # TODO + def test_relationship_filter + return + end + + def test_date_filter + + @resource = { :class => TypusUser, :self => 'typus_users' } + filter = 'created_at' + + params = { :controller => 'admin/typus_users', :action => 'index' } + self.expects(:params).at_least_once.returns(params) + + # With an empty request. + + request = "" + output = date_filter(request, filter) + + partial = "admin/helpers/list" + options = { :items => [ %Q[Today], + %Q[Last few days], + %Q[Last 7 days], + %Q[Last 30 days] ], + :header => "Created at", + :options => { :attribute => "created_at" } } + + assert_equal [ partial, options ], output + + # With a request. + + request = "created_at=today&page=1" + output = date_filter(request, filter) + + partial = "admin/helpers/list" + options = { :items => [ %Q[Today], + %Q[Last few days], + %Q[Last 7 days], + %Q[Last 30 days] ], + :header => "Created at", + :options => { :attribute => "created_at" } } + + assert_equal [ partial, options ], output + + end + + def test_boolean_filter + + @resource = { :class => TypusUser, :self => 'typus_users' } + filter = 'status' + + params = { :controller => 'admin/typus_users', :action => 'index' } + self.expects(:params).at_least_once.returns(params) + + # Status is true + + request = "status=true&page=1" + output = boolean_filter(request, filter) + + partial = "admin/helpers/list" + options = { :items => [ %Q[Active], + %Q[Inactive] ], + :header => "Status", + :options => { :attribute => "status" } } + + assert_equal [ partial, options ], output + + # Status is false + + request = "status=false&page=1" + output = boolean_filter(request, filter) + + partial = "admin/helpers/list" + options = { :items => [ %Q[Active], + %Q[Inactive] ], + :header => "Status", + :options => { :attribute => "status" } } + + assert_equal [ partial, options ], output + + end + +=begin + + # FIXME + + def test_string_filter_when_values_are_strings + + @resource = { :class => TypusUser, :self => 'typus_users' } + filter = 'role' + + params = { :controller => 'admin/typus_users', :action => 'index' } + self.expects(:params).at_least_once.returns(params) + + # Roles is admin + + request = 'role=admin&page=1' + # @resource[:class].expects('role').returns(['admin', 'designer', 'editor']) + output = string_filter(request, filter) + + =begin + expected = <<-HTML +

    Role

    + + HTML + =end + + partial = "admin/helpers/list" + options = { :items => [ "Admin", + "Designer", + "Editor" ], + :header => "Role", + :options => { :attribute => "role" } } + + assert_equal [ partial, options ], output + + # Roles is editor + + request = 'role=editor&page=1' + @resource[:class].expects('role').returns(['admin', 'designer', 'editor']) + output = string_filter(request, filter) + + =begin + expected = <<-HTML +

    Role

    + + HTML + =end + + partial = "admin/helpers/list" + options = { :items => [ "Admin", + "Designer", + "Editor" ], + :header => "Role", + :options => { :attribute => "role" } } + + assert_equal [ partial, options ], output + + end + +=end + +=begin + + # FIXME + + def test_string_filter_when_values_are_arrays_of_strings + + @resource = { :class => TypusUser, :self => 'typus_users' } + filter = 'role' + + params = { :controller => 'admin/typus_users', :action => 'index' } + self.expects(:params).at_least_once.returns(params) + + request = 'role=admin&page=1' + + =begin + + array = [['Administrador', 'admin'], + ['Diseñador', 'designer'], + ['Editor', 'editor']] + @resource[:class].expects('role').returns(array) + + =end + + output = string_filter(request, filter) + + =begin + expected = <<-HTML +

    Role

    + + HTML + =end + + partial = "admin/helpers/list" + options = { :items => [ "Administrador", + "Diseñador", + "Editor" ], + :header => "Role", + :options => { :attribute => "role" } } + + assert_equal [ partial, options ], output + + end + +=end + +=begin + + # FIXME + + def test_string_filter_when_empty_values + + @resource = { :class => TypusUser } + filter = 'role' + + request = 'role=admin&page=1' + @resource[:class].expects('role').returns([]) + output = string_filter(request, filter) + assert output.empty? + + end + +=end + +end \ No newline at end of file diff --git a/vendor/plugins/typus/test/helpers/admin/table_helper_test.rb b/vendor/plugins/typus/test/helpers/admin/table_helper_test.rb new file mode 100644 index 0000000..f71f1bf --- /dev/null +++ b/vendor/plugins/typus/test/helpers/admin/table_helper_test.rb @@ -0,0 +1,266 @@ +require 'test/helper' + +class Admin::TableHelperTest < ActiveSupport::TestCase + + include Admin::TableHelper + + include ActionView::Helpers::UrlHelper + include ActionController::UrlWriter + include ActionView::Helpers::TagHelper + include ActionView::Helpers::TextHelper + + def setup + default_url_options[:host] = 'test.host' + end + + # FIXME + def test_build_typus_table + + return + + @current_user = typus_users(:admin) + + params = { :controller => 'admin/typus_users', :action => 'index' } + self.expects(:params).at_least_once.returns(params) + + fields = TypusUser.typus_fields_for(:list) + items = TypusUser.find(:all) + + output = build_typus_table(TypusUser, fields, items) + expected = <<-HTML + +Email +Role +Status +  + + HTML + + assert_equal expected, output + + end + + def test_typus_table_header + + @current_user = mock() + @current_user.expects(:can?).with('delete', TypusUser).returns(true) + + fields = TypusUser.typus_fields_for(:list) + + params = { :controller => 'admin/typus_users', :action => 'index' } + self.expects(:params).at_least_once.returns(params) + + output = typus_table_header(TypusUser, fields) + expected = <<-HTML + +Email +Role +Status +  + + HTML + + assert_equal expected, output + + end + + def test_typus_table_header_with_params + + @current_user = mock() + @current_user.expects(:can?).with('delete', TypusUser).returns(true) + + fields = TypusUser.typus_fields_for(:list) + + params = { :controller => 'admin/typus_users', :action => 'index', :search => 'admin' } + self.expects(:params).at_least_once.returns(params) + + output = typus_table_header(TypusUser, fields) + expected = <<-HTML + +Email +Role +Status +  + + HTML + + assert_equal expected, output + + end + + def test_typus_table_header_when_user_cannot_delete_items + + @current_user = mock() + @current_user.expects(:can?).with('delete', TypusUser).returns(false) + + fields = TypusUser.typus_fields_for(:list) + + params = { :controller => 'admin/typus_users', :action => 'index' } + self.expects(:params).at_least_once.returns(params) + + output = typus_table_header(TypusUser, fields) + expected = <<-HTML + +Email +Role +Status + + HTML + + assert_equal expected, output + + end + + def test_typus_table_header_when_user_cannot_delete_items_with_params + + @current_user = mock() + @current_user.expects(:can?).with('delete', TypusUser).returns(false) + + fields = TypusUser.typus_fields_for(:list) + + params = { :controller => 'admin/typus_users', :action => 'index', :search => 'admin' } + self.expects(:params).at_least_once.returns(params) + + output = typus_table_header(TypusUser, fields) + expected = <<-HTML + +Email +Role +Status + + HTML + + assert_equal expected, output + + end + + + def test_typus_table_belongs_to_field + + @current_user = typus_users(:admin) + + comment = comments(:without_post_id) + output = typus_table_belongs_to_field('post', comment) + expected = "" + + assert_equal expected, output + default_url_options[:host] = 'test.host' + + comment = comments(:with_post_id) + output = typus_table_belongs_to_field('post', comment) + expected = <<-HTML +Post#1 + HTML + + assert_equal expected.strip, output + + end + + def test_typus_table_has_and_belongs_to_many_field + + post = Post.find(1) + + output = typus_table_has_and_belongs_to_many_field('comments', post) + expected = <<-HTML +John
    Me
    Me + HTML + + assert_equal expected.strip, output + + end + + def test_typus_table_string_field + + post = posts(:published) + output = typus_table_string_field(:title, post, :created_at) + expected = <<-HTML +#{post.title} + HTML + + assert_equal expected.strip, output + + end + + def test_typus_table_string_field_with_link + + post = posts(:published) + output = typus_table_string_field(:title, post, :title) + expected = <<-HTML +#{post.title} + HTML + + assert_equal expected.strip, output + + end + + def test_typus_table_tree_field + + return if !defined?(ActiveRecord::Acts::Tree) + + page = pages(:published) + output = typus_table_tree_field('test', page) + expected = <<-HTML + +HTML + + assert_equal expected, output + + page = pages(:unpublished) + output = typus_table_tree_field('test', page) + expected = <<-HTML +Page#1 +HTML + + assert_equal expected, output + + end + + def test_typus_table_datetime_field + + post = posts(:published) + Time::DATE_FORMATS[:post_short] = '%m/%y' + + output = typus_table_datetime_field(:created_at, post) + expected = <<-HTML +#{post.created_at.strftime('%m/%y')} + HTML + + assert_equal expected.strip, output + + end + + def test_typus_table_datetime_field_with_link + + post = posts(:published) + Time::DATE_FORMATS[:post_short] = '%m/%y' + + output = typus_table_datetime_field(:created_at, post, :created_at) + expected = <<-HTML +#{post.created_at.strftime('%m/%y')} + HTML + + assert_equal expected.strip, output + + end + + def test_typus_table_boolean_field + + post = typus_users(:admin) + output = typus_table_boolean_field('status', post) + expected = <<-HTML +Active + HTML + + assert_equal expected.strip, output + + post = typus_users(:disabled_user) + output = typus_table_boolean_field('status', post) + expected = <<-HTML +Inactive + HTML + + assert_equal expected.strip, output + + end + +end \ No newline at end of file diff --git a/vendor/plugins/typus/test/helpers/typus_helper_test.rb b/vendor/plugins/typus/test/helpers/typus_helper_test.rb new file mode 100644 index 0000000..d233164 --- /dev/null +++ b/vendor/plugins/typus/test/helpers/typus_helper_test.rb @@ -0,0 +1,144 @@ +require 'test/helper' + +class TypusHelperTest < ActiveSupport::TestCase + + include TypusHelper + include ActionView::Helpers::UrlHelper + include ActionView::Helpers::TextHelper + include ActionController::UrlWriter + + def render(*args); args; end + + # FIXME: Pending to verify the applications included. Use the keys. + def test_applications + + @current_user = typus_users(:admin) + + output = applications + + partial = "admin/helpers/applications" + options = { :applications => { [ "Blog", [ "Comment", "Post" ] ]=> nil, + [ "Site", [ "Asset", "Page" ] ] => nil, + [ "System", [ "Delayed::Task" ] ] => nil, + [ "Typus", [ "TypusUser" ] ] => nil } } + + assert_equal partial, output.first + # assert_equal options, output.last + + end + + # FIXME: Pending to add the options. + def test_resources + + @current_user = typus_users(:admin) + + output = resources + partial = "admin/helpers/resources" + options = {} + + assert_equal partial, output.first + # assert_equal options, output.last + + end + + def test_typus_block_when_partial_does_not_exist + output = typus_block(:resource => 'posts', :location => 'sidebar', :partial => 'pum') + assert output.nil? + end + + def test_page_title + params = {} + options = { :app_name => 'whatistypus.com' } + Typus::Configuration.stubs(:options).returns(options) + output = page_title('custom_action') + assert_equal 'whatistypus.com - Custom action', output + end + + def test_header_with_root_path + + # Add root named route + ActionController::Routing::Routes.add_named_route :root, "/", { :controller => "posts" } + + # ActionView::Helpers::UrlHelper does not support strings, which are returned by named routes + # link root_path + self.stubs(:link_to).returns(%(View site)) + self.stubs(:link_to_unless_current).returns(%(Dashboard)) + + output = header + +=begin + expected = <<-HTML +

    #{Typus::Configuration.options[:app_name]}

    + + HTML +=end + + partial = "admin/helpers/header" + options = { :links => [ "Dashboard", + "Dashboard", + "View site" ] } + + assert_equal [ partial, options ], output + + end + + # TODO: Clean + def test_header_without_root_path + + # Remove root route from list + ActionController::Routing::Routes.named_routes.routes.reject! { |key, route| key == :root } + + self.stubs(:link_to_unless_current).returns(%(Dashboard)) + +=begin + expected = <<-HTML +

    #{Typus::Configuration.options[:app_name]}

    + + HTML +=end + + output = header + partial = "admin/helpers/header" + options = { :links => [ "Dashboard", + "Dashboard" ] } + + assert_equal [ partial, options ], output + + end + + def test_display_flash_message + + message = { :test => 'This is the message.' } + + output = display_flash_message(message) + +=begin + expected = <<-HTML +
    +

    This is the message.

    +
    + HTML +=end + + partial = "admin/helpers/flash_message" + options = { :flash_type => :test, + :message => { :test => 'This is the message.' } } + + assert_equal [ partial, options ], output + + end + + def test_display_flash_message_with_empty_message + message = {} + output = display_flash_message(message) + assert output.nil? + end + +end \ No newline at end of file diff --git a/vendor/plugins/typus/test/lib/active_record_test.rb b/vendor/plugins/typus/test/lib/active_record_test.rb new file mode 100644 index 0000000..8a806bf --- /dev/null +++ b/vendor/plugins/typus/test/lib/active_record_test.rb @@ -0,0 +1,356 @@ +require "test/helper" + +class ActiveRecordTest < ActiveSupport::TestCase + + def test_should_verify_model_fields_is_an_instance_of_active_support_ordered_hash + assert TypusUser.model_fields.instance_of?(ActiveSupport::OrderedHash) + end + + def test_should_return_model_fields_for_typus_user + expected_fields = [[:id, :integer], + [:first_name, :string], + [:last_name, :string], + [:role, :string], + [:email, :string], + [:status, :boolean], + [:token, :string], + [:salt, :string], + [:crypted_password, :string], + [:preferences, :string], + [:created_at, :datetime], + [:updated_at, :datetime]] + assert_equal expected_fields.map { |i| i.first }, TypusUser.model_fields.keys + assert_equal expected_fields.map { |i| i.last }, TypusUser.model_fields.values + end + + def test_should_return_model_fields_for_post + expected_fields = [[:id, :integer], + [:title, :string], + [:body, :text], + [:status, :string], + [:favorite_comment_id, :integer], + [:created_at, :datetime], + [:updated_at, :datetime], + [:published_at, :datetime], + [:typus_user_id, :integer]] + assert_equal expected_fields.map { |i| i.first }, Post.model_fields.keys + assert_equal expected_fields.map { |i| i.last }, Post.model_fields.values + end + + def test_should_verify_model_relationships_is_an_instance_of_active_support_ordered_hash + assert TypusUser.model_relationships.instance_of?(ActiveSupport::OrderedHash) + end + + def test_should_return_model_relationships_for_post + expected = [[:comments, :has_many], + [:categories, :has_and_belongs_to_many], + [:user, nil], + [:assets, :has_many]] + expected.each do |i| + assert_equal i.last, Post.model_relationships[i.first] + end + end + + def test_should_return_description_of_a_model + assert TypusUser.respond_to?(:typus_description) + assert_equal "System Users Administration", TypusUser.typus_description + end + + def test_should_return_typus_fields_for_list_for_typus_user + expected_fields = [["email", :string], + ["role", :selector], + ["status", :boolean]] + assert_equal expected_fields.map { |i| i.first }, TypusUser.typus_fields_for("list").keys + assert_equal expected_fields.map { |i| i.last }, TypusUser.typus_fields_for("list").values + assert_equal expected_fields.map { |i| i.first }, TypusUser.typus_fields_for(:list).keys + assert_equal expected_fields.map { |i| i.last }, TypusUser.typus_fields_for(:list).values + end + + def test_should_return_typus_fields_for_list_for_post + expected_fields = [["title", :string], + ["created_at", :datetime], + ["status", :selector]] + assert_equal expected_fields.map { |i| i.first }, Post.typus_fields_for("list").keys + assert_equal expected_fields.map { |i| i.last }, Post.typus_fields_for("list").values + assert_equal expected_fields.map { |i| i.first }, Post.typus_fields_for(:list).keys + assert_equal expected_fields.map { |i| i.last }, Post.typus_fields_for(:list).values + end + + def test_should_return_typus_fields_for_form_for_typus_user + expected_fields = [["first_name", :string], + ["last_name", :string], + ["role", :selector], + ["email", :string], + ["password", :password], + ["password_confirmation", :password]] + assert_equal expected_fields.map { |i| i.first }, TypusUser.typus_fields_for("form").keys + assert_equal expected_fields.map { |i| i.last }, TypusUser.typus_fields_for("form").values + assert_equal expected_fields.map { |i| i.first }, TypusUser.typus_fields_for(:form).keys + assert_equal expected_fields.map { |i| i.last }, TypusUser.typus_fields_for(:form).values + end + + def test_should_return_typus_fields_for_form_for_picture + expected_fields = [["title", :string], + ["picture", :file]] + assert_equal expected_fields.map { |i| i.first }, Picture.typus_fields_for("form").keys + assert_equal expected_fields.map { |i| i.last }, Picture.typus_fields_for("form").values + assert_equal expected_fields.map { |i| i.first }, Picture.typus_fields_for(:form).keys + assert_equal expected_fields.map { |i| i.last }, Picture.typus_fields_for(:form).values + end + + def test_should_return_typus_fields_for_a_model_without_configuration + expected_fields = [] + klass = Class.new(ActiveRecord::Base) + assert_equal expected_fields, klass.typus_fields_for(:form) + assert_equal expected_fields, klass.typus_fields_for(:list) + end + + def test_should_return_typus_fields_for_relationship_for_typus_user + expected_fields = [["email", :string], + ["role", :selector], + ["status", :boolean]] + assert_equal expected_fields.map { |i| i.first }, TypusUser.typus_fields_for("relationship").keys + assert_equal expected_fields.map { |i| i.last }, TypusUser.typus_fields_for("relationship").values + assert_equal expected_fields.map { |i| i.first }, TypusUser.typus_fields_for(:relationship).keys + assert_equal expected_fields.map { |i| i.last }, TypusUser.typus_fields_for(:relationship).values + end + + def test_should_return_all_fields_for_undefined_field_type_on_typus_user + expected_fields = [["email", :string], + ["role", :selector], + ["status", :boolean]] + assert_equal expected_fields.map { |i| i.first }, TypusUser.typus_fields_for("undefined").keys + assert_equal expected_fields.map { |i| i.last }, TypusUser.typus_fields_for("undefined").values + assert_equal expected_fields.map { |i| i.first }, TypusUser.typus_fields_for(:undefined).keys + assert_equal expected_fields.map { |i| i.last }, TypusUser.typus_fields_for(:undefined).values + end + + def test_should_return_filters_for_typus_user + expected = [["status", :boolean], + ["role", :string]] + assert_equal "status, role", Typus::Configuration.config["TypusUser"]["filters"] + assert_equal expected.map { |i| i.first }, TypusUser.typus_filters.keys + assert_equal expected.map { |i| i.last }, TypusUser.typus_filters.values + end + + def test_should_return_post_typus_filters + expected = [["status", :string], + ["created_at", :datetime], + ["user", nil], + ["user_id", nil]] + assert_equal expected.map { |i| i.first }.join(", "), Typus::Configuration.config["Post"]["filters"] + assert_equal expected.map { |i| i.first }, Post.typus_filters.keys + assert_equal expected.map { |i| i.last }, Post.typus_filters.values + end + + def test_should_return_actions_on_list_for_typus_user + assert TypusUser.typus_actions_on("list").empty? + assert TypusUser.typus_actions_on(:list).empty? + end + + def test_should_return_post_actions_on_index + assert_equal %w( cleanup ), Post.typus_actions_on("index") + assert_equal %w( cleanup ), Post.typus_actions_on(:index) + end + + def test_should_return_post_actions_on_edit + assert_equal %w( send_as_newsletter preview ), Post.typus_actions_on("edit") + assert_equal %w( send_as_newsletter preview ), Post.typus_actions_on(:edit) + end + + def test_should_return_post_actions + assert_equal %w( cleanup preview send_as_newsletter ), Post.typus_actions.sort + end + + def test_should_return_field_options_for_post + assert_equal [ :status ], Post.typus_field_options_for("selectors") + assert_equal [ :status ], Post.typus_field_options_for(:selectors) + assert_equal [ :permalink ], Post.typus_field_options_for("read_only") + assert_equal [ :permalink ], Post.typus_field_options_for(:read_only) + assert_equal [ :created_at ], Post.typus_field_options_for("auto_generated") + assert_equal [ :created_at ], Post.typus_field_options_for(:auto_generated) + end + + def test_should_return_options_for_post_and_page + + assert_equal 15, Post.typus_options_for(:form_rows) + assert_equal 15, Post.typus_options_for("form_rows") + + assert_equal 25, Page.typus_options_for(:form_rows) + assert_equal 25, Page.typus_options_for("form_rows") + + assert_equal 15, Asset.typus_options_for(:form_rows) + assert_equal 15, Asset.typus_options_for("form_rows") + + assert_equal 15, TypusUser.typus_options_for(:form_rows) + assert_equal 15, TypusUser.typus_options_for("form_rows") + + assert Page.typus_options_for(:on_header) + assert !TypusUser.typus_options_for(:on_header) + + assert_nil TypusUser.typus_options_for(:unexisting) + + end + + def test_should_verify_typus_boolean_is_an_instance_of_active_support_ordered_hash + assert TypusUser.typus_boolean("status").instance_of?(ActiveSupport::OrderedHash) + end + + def test_should_return_booleans_for_typus_users + assert_equal [ :true, :false ], TypusUser.typus_boolean("status").keys + assert_equal [ "Active", "Inactive" ], TypusUser.typus_boolean("status").values + assert_equal [ :true, :false ], TypusUser.typus_boolean(:status).keys + assert_equal [ "Active", "Inactive" ], TypusUser.typus_boolean(:status).values + end + + def test_should_return_booleans_for_post + assert_equal [ :true, :false ], Post.typus_boolean("status").keys + assert_equal [ "True", "False" ], Post.typus_boolean("status").values + assert_equal [ :true, :false ], Post.typus_boolean(:status).keys + assert_equal [ "True", "False" ], Post.typus_boolean(:status).values + end + + def test_should_return_date_formats_for_post + assert_equal :post_short, Post.typus_date_format("created_at") + assert_equal :post_short, Post.typus_date_format(:created_at) + assert_equal :db, Post.typus_date_format + assert_equal :db, Post.typus_date_format("unknown") + assert_equal :db, Post.typus_date_format(:unknown) + end + + def test_should_return_defaults_for_post + assert_equal %w( title ), Post.typus_defaults_for("search") + assert_equal %w( title ), Post.typus_defaults_for(:search) + assert_equal %w( title -created_at ), Post.typus_defaults_for("order_by") + assert_equal %w( title -created_at ), Post.typus_defaults_for(:order_by) + end + + def test_should_return_relationships_for_post + assert_equal %w( assets categories comments views ), Post.typus_defaults_for("relationships") + assert_equal %w( assets categories comments views ), Post.typus_defaults_for(:relationships) + assert !Post.typus_defaults_for("relationships").empty? + assert !Post.typus_defaults_for(:relationships).empty? + end + + def test_should_return_order_by_for_model + assert_equal "posts.title ASC, posts.created_at DESC", Post.typus_order_by + assert_equal %w( title -created_at ), Post.typus_defaults_for("order_by") + assert_equal %w( title -created_at ), Post.typus_defaults_for(:order_by) + end + + def test_should_return_sql_conditions_on_search_for_typus_user + expected = "(first_name LIKE '%francesc%' OR last_name LIKE '%francesc%' OR email LIKE '%francesc%' OR role LIKE '%francesc%')" + params = { :search => "francesc" } + assert_equal expected, TypusUser.build_conditions(params).first + params = { :search => "Francesc" } + assert_equal expected, TypusUser.build_conditions(params).first + end + + def test_should_return_sql_conditions_on_search_and_filter_for_typus_user + + case ENV["DB"] + when /mysql/ + boolean_true = "(`typus_users`.`status` = 1)" + boolean_false = "(`typus_users`.`status` = 0)" + else + boolean_true = "(\"typus_users\".\"status\" = 't')" + boolean_false = "(\"typus_users\".\"status\" = 'f')" + end + + expected = "((first_name LIKE '%francesc%' OR last_name LIKE '%francesc%' OR email LIKE '%francesc%' OR role LIKE '%francesc%')) AND #{boolean_true}" + params = { :search => "francesc", :status => "true" } + assert_equal expected, TypusUser.build_conditions(params).first + params = { :search => "francesc", :status => "false" } + assert_match /#{boolean_false}/, TypusUser.build_conditions(params).first + + end + + def test_should_return_sql_conditions_on_filtering_typus_users_by_status + + case ENV["DB"] + when /mysql/ + boolean_true = "(`typus_users`.`status` = 1)" + boolean_false = "(`typus_users`.`status` = 0)" + else + boolean_true = "(\"typus_users\".\"status\" = 't')" + boolean_false = "(\"typus_users\".\"status\" = 'f')" + end + + params = { :status => "true" } + assert_equal boolean_true, TypusUser.build_conditions(params).first + params = { :status => "false" } + assert_equal boolean_false, TypusUser.build_conditions(params).first + + end + + def test_should_return_sql_conditions_on_filtering_typus_users_by_created_at + + expected = case ENV["DB"] + when /postgresql/ + "(created_at BETWEEN E'#{Time.new.midnight.to_s(:db)}' AND E'#{Time.new.midnight.tomorrow.to_s(:db)}')" + else + "(created_at BETWEEN '#{Time.new.midnight.to_s(:db)}' AND '#{Time.new.midnight.tomorrow.to_s(:db)}')" + end + params = { :created_at => "today" } + assert_equal expected, TypusUser.build_conditions(params).first + + expected = case ENV["DB"] + when /postgresql/ + "(created_at BETWEEN E'#{3.days.ago.midnight.to_s(:db)}' AND E'#{Time.new.midnight.tomorrow.to_s(:db)}')" + else + "(created_at BETWEEN '#{3.days.ago.midnight.to_s(:db)}' AND '#{Time.new.midnight.tomorrow.to_s(:db)}')" + end + params = { :created_at => "last_few_days" } + assert_equal expected, TypusUser.build_conditions(params).first + + expected = case ENV["DB"] + when /postgresql/ + "(created_at BETWEEN E'#{6.days.ago.midnight.to_s(:db)}' AND E'#{Time.new.midnight.tomorrow.to_s(:db)}')" + else + "(created_at BETWEEN '#{6.days.ago.midnight.to_s(:db)}' AND '#{Time.new.midnight.tomorrow.to_s(:db)}')" + end + params = { :created_at => "last_7_days" } + assert_equal expected, TypusUser.build_conditions(params).first + + + expected = case ENV["DB"] + when /postgresql/ + "(created_at BETWEEN E'#{Time.new.midnight.last_month.to_s(:db)}' AND E'#{Time.new.midnight.tomorrow.to_s(:db)}')" + else + "(created_at BETWEEN '#{Time.new.midnight.last_month.to_s(:db)}' AND '#{Time.new.midnight.tomorrow.to_s(:db)}')" + end + params = { :created_at => "last_30_days" } + assert_equal expected, TypusUser.build_conditions(params).first + + end + + def test_should_return_sql_conditions_on_filtering_posts_by_published_at + expected = case ENV["DB"] + when /postgresql/ + "(published_at BETWEEN E'#{Time.new.midnight.to_s(:db)}' AND E'#{Time.new.midnight.tomorrow.to_s(:db)}')" + else + "(published_at BETWEEN '#{Time.new.midnight.to_s(:db)}' AND '#{Time.new.midnight.tomorrow.to_s(:db)}')" + end + params = { :published_at => "today" } + assert_equal expected, Post.build_conditions(params).first + end + + def test_should_return_sql_conditions_on_filtering_posts_by_string + expected = case ENV["DB"] + when /postgresql/ + "(\"typus_users\".\"role\" = E'admin')" + when /mysql/ + "(`typus_users`.`role` = 'admin')" + else + "(\"typus_users\".\"role\" = 'admin')" + end + params = { :role => "admin" } + assert_equal expected, TypusUser.build_conditions(params).first + end + + def test_should_verify_typus_user_id + assert Post.typus_user_id? + assert !TypusUser.typus_user_id? + end + +end diff --git a/vendor/plugins/typus/test/lib/configuration_test.rb b/vendor/plugins/typus/test/lib/configuration_test.rb new file mode 100644 index 0000000..867679d --- /dev/null +++ b/vendor/plugins/typus/test/lib/configuration_test.rb @@ -0,0 +1,92 @@ +require "test/helper" + +class ConfigurationTest < ActiveSupport::TestCase + + def test_should_verify_configuration_responds_to_options + assert Typus::Configuration.respond_to?(:options) + end + + def test_should_verify_application_wide_configuration_options + initializer = "#{Rails.root}/config/initializers/typus.rb" + return if File.exist?(initializer) + assert_equal "Typus", Typus::Configuration.options[:app_name] + assert_equal "vendor/plugins/typus/test/config/working", Typus::Configuration.options[:config_folder] + assert_equal "columbia", Typus::Configuration.options[:default_password] + assert_equal nil, Typus::Configuration.options[:email] + assert_equal :typus_preview, Typus::Configuration.options[:file_preview] + assert_equal :typus_thumbnail, Typus::Configuration.options[:file_thumbnail] + assert_equal "typus_users", Typus::Configuration.options[:relationship] + assert_equal "admin", Typus::Configuration.options[:root] + assert_equal "TypusUser", Typus::Configuration.options[:user_class_name] + assert_equal "typus_user_id", Typus::Configuration.options[:user_fk] + end + + def test_should_verify_model_configuration_options + initializer = "#{Rails.root}/config/initializers/typus.rb" + return if File.exist?(initializer) + assert_equal "edit", Typus::Configuration.options[:default_action_on_item] + assert_nil Typus::Configuration.options[:end_year] + assert_equal 15, Typus::Configuration.options[:form_rows] + assert_equal false, Typus::Configuration.options[:index_after_save] + assert_equal 5, Typus::Configuration.options[:minute_step] + assert_equal "nil", Typus::Configuration.options[:nil] + assert_equal false, Typus::Configuration.options[:on_header] + assert_equal false, Typus::Configuration.options[:only_user_items] + assert_equal 15, Typus::Configuration.options[:per_page] + assert_equal 5, Typus::Configuration.options[:sidebar_selector] + assert_nil Typus::Configuration.options[:start_year] + end + + def test_should_verify_typus_roles_is_loaded + assert Typus::Configuration.respond_to?(:roles!) + assert Typus::Configuration.roles!.kind_of?(Hash) + end + + def test_should_verify_typus_config_file_is_loaded + assert Typus::Configuration.respond_to?(:config!) + assert Typus::Configuration.config!.kind_of?(Hash) + end + + def test_should_load_configuration_files_from_config_broken + options = { :config_folder => "vendor/plugins/typus/test/config/broken" } + Typus::Configuration.stubs(:options).returns(options) + assert_not_equal Hash.new, Typus::Configuration.roles! + assert_not_equal Hash.new, Typus::Configuration.config! + end + + def test_should_load_configuration_files_from_config_empty + options = { :config_folder => "vendor/plugins/typus/test/config/empty" } + Typus::Configuration.stubs(:options).returns(options) + assert_equal Hash.new, Typus::Configuration.roles! + assert_equal Hash.new, Typus::Configuration.config! + end + + def test_should_load_configuration_files_from_config_ordered + options = { :config_folder => "vendor/plugins/typus/test/config/ordered" } + Typus::Configuration.stubs(:options).returns(options) + files = Dir["#{Rails.root}/#{Typus::Configuration.options[:config_folder]}/*_roles.yml"] + expected = files.collect { |file| File.basename(file) }.sort + assert_equal expected, ["001_roles.yml", "002_roles.yml"] + expected = { "admin" => { "categories" => "read" } } + assert_equal expected, Typus::Configuration.roles! + end + + def test_should_load_configuration_files_from_config_unordered + options = { :config_folder => "vendor/plugins/typus/test/config/unordered" } + Typus::Configuration.stubs(:options).returns(options) + files = Dir["#{Rails.root}/#{Typus::Configuration.options[:config_folder]}/*_roles.yml"] + expected = files.collect { |file| File.basename(file) } + assert_equal expected, ["app_one_roles.yml", "app_two_roles.yml"] + expected = { "admin" => { "categories" => "read, update" } } + assert_equal expected, Typus::Configuration.roles! + end + + def test_should_load_configuration_files_from_config_default + options = { :config_folder => "vendor/plugins/typus/test/config/default" } + Typus::Configuration.stubs(:options).returns(options) + assert_not_equal Hash.new, Typus::Configuration.roles! + assert_not_equal Hash.new, Typus::Configuration.config! + assert Typus.resources.empty? + end + +end \ No newline at end of file diff --git a/vendor/plugins/typus/test/lib/routes_test.rb b/vendor/plugins/typus/test/lib/routes_test.rb new file mode 100644 index 0000000..63ed69d --- /dev/null +++ b/vendor/plugins/typus/test/lib/routes_test.rb @@ -0,0 +1,71 @@ +require 'test/helper' + +class RoutesTest < ActiveSupport::TestCase + + include ActionController::TestCase::Assertions + + def test_should_verify_admin_named_routes + + routes = ActionController::Routing::Routes.named_routes.routes.keys + + expected = [ :admin_sign_up, :admin_sign_in, :admin_sign_out, + :admin_recover_password, :admin_reset_password, + :admin_dashboard, + :admin_quick_edit ] + + expected.each { |route| assert routes.include?(route) } + + end + + def test_should_verify_admin_named_routes_for_typus_users + + routes = ActionController::Routing::Routes.named_routes.routes.keys + + expected = [ :admin_typus_users, + :admin_typus_user ] + + expected.each { |route| assert !routes.include?(route) } + + expected = [ :relate_admin_typus_user, + :unrelate_admin_typus_user ] + + expected.each { |route| assert !routes.include?(route) } + + end + + def test_should_verify_default_admin_named_routes_for_posts + + routes = ActionController::Routing::Routes.named_routes.routes.keys + + expected = [ :admin_posts, + :admin_post ] + + expected.each { |route| assert !routes.include?(route) } + + end + + def test_should_verify_custom_admin_named_routes_for_posts + + routes = ActionController::Routing::Routes.named_routes.routes.keys + + expected = [ :cleanup_admin_posts, + :send_as_newsletter_admin_post, + :preview_admin_post ] + + expected.each { |route| assert !routes.include?(route) } + + end + + def test_should_verify_generated_routes_for_typus_controller + + assert_routing '/admin', :controller => 'typus', :action => 'dashboard' + + actions = [ 'sign_up', 'sign_in', 'sign_out', + 'recover_password', 'reset_password', + 'quick_edit' ] + + actions.each { |a| assert_routing "/admin/#{a}", :controller => 'typus', :action => a } + + end + +end \ No newline at end of file diff --git a/vendor/plugins/typus/test/lib/typus_test.rb b/vendor/plugins/typus/test/lib/typus_test.rb new file mode 100644 index 0000000..960dd22 --- /dev/null +++ b/vendor/plugins/typus/test/lib/typus_test.rb @@ -0,0 +1,69 @@ +require 'test/helper' + +class TypusTest < ActiveSupport::TestCase + + def test_should_return_path + expected = Dir.pwd + '/lib/../' + assert_equal expected, Typus.root + end + + def test_should_return_applications_and_should_be_sorted + assert Typus.respond_to?(:applications) + assert Typus.applications.kind_of?(Array) + assert_equal %w( Blog Site System Typus ), Typus.applications + end + + def test_should_return_modules_of_an_application + assert Typus.respond_to?(:application) + assert_equal %w( Comment Post ), Typus.application('Blog') + end + + def test_should_return_models_and_should_be_sorted + assert Typus.respond_to?(:models) + assert Typus.models.kind_of?(Array) + assert_equal %w( Asset Category Comment CustomUser Delayed::Task Page Post TypusUser View ), Typus.models + end + + def test_should_return_an_array_of_models_on_header + assert Typus.models_on_header.kind_of?(Array) + assert_equal ["Page"], Typus.models_on_header + end + + # FIXME: Somehow excludes the Order resource. + def test_should_verify_resources_class_method + return + assert Typus.respond_to?(:resources) + assert_equal %w( Git Order Status WatchDog ), Typus.resources + end + + def test_should_return_user_class + assert_equal TypusUser, Typus.user_class + end + + def test_should_return_overwritted_user_class + options = { :user_class_name => 'CustomUser' } + Typus::Configuration.stubs(:options).returns(options) + assert_equal CustomUser, Typus.user_class + end + + def test_should_return_user_fk + assert_equal 'typus_user_id', Typus.user_fk + end + + def test_should_return_overwritted_user_fk + options = { :user_fk => 'my_user_fk' } + Typus::Configuration.stubs(:options).returns(options) + assert_equal 'my_user_fk', Typus.user_fk + end + + def test_should_return_relationship + assert_equal 'typus_users', Typus.relationship + end + + def test_should_return_overwritted_user_fk + options = { :relationship => 'my_typus_users' } + Typus::Configuration.stubs(:options).returns(options) + assert_equal 'my_typus_users', Typus.relationship + end + +end \ No newline at end of file diff --git a/vendor/plugins/typus/test/schema.rb b/vendor/plugins/typus/test/schema.rb new file mode 100644 index 0000000..0b2c77a --- /dev/null +++ b/vendor/plugins/typus/test/schema.rb @@ -0,0 +1,86 @@ +ActiveRecord::Migration.verbose = false + +ActiveRecord::Schema.define do + + create_table :assets, :force => true do |t| + t.string :caption + t.string :resource_type + t.integer :resource_id + t.integer :position + end + + create_table :categories, :force => true do |t| + t.string :name + t.string :permalink + t.text :description + t.integer :position + end + + create_table :comments, :force => true do |t| + t.string :email, :name + t.text :body + t.integer :post_id + end + + add_index :comments, :post_id + + create_table :delayed_tasks, :force => true do |t| + t.string :name + end + + create_table :pages, :force => true do |t| + t.string :title + t.text :body + t.boolean :is_published + t.integer :parent_id + end + + create_table :posts, :force => true do |t| + t.string :title + t.text :body + t.string :status + t.integer :favorite_comment_id + t.timestamps + t.datetime :published_at + t.integer :typus_user_id + end + + create_table :pictures, :force => true do |t| + t.string :title + t.string :picture_file_name + t.string :picture_content_type + t.integer :picture_file_size + t.datetime :picture_updated_at + t.datetime :created_at + t.datetime :updated_at + t.integer :typus_user_id + end + + create_table :typus_users, :force => true do |t| + t.string :first_name, :default => "", :null => false + t.string :last_name, :default => "", :null => false + t.string :role, :null => false + t.string :email, :null => false + t.boolean :status, :default => false + t.string :token, :null => false + t.string :salt, :null => false + t.string :crypted_password, :null => false + t.string :preferences + t.timestamps + end + + create_table :views, :force => true do |t| + t.string :ip, :default => '127.0.0.1' + t.integer :post_id + t.timestamps + end + + create_table :categories_posts, :force => true, :id => false do |t| + t.column :category_id, :integer + t.column :post_id, :integer + end + + add_index :categories_posts, :category_id + add_index :categories_posts, :post_id + +end diff --git a/vendor/plugins/typus/test/unit/typus_mailer_test.rb b/vendor/plugins/typus/test/unit/typus_mailer_test.rb new file mode 100644 index 0000000..9345f53 --- /dev/null +++ b/vendor/plugins/typus/test/unit/typus_mailer_test.rb @@ -0,0 +1,29 @@ +require 'test/helper' + +class TypusMailerTest < ActiveSupport::TestCase + + def setup + @user = typus_users(:admin) + url = "http://test.host/admin/reset_password?token=#{@user.token}" + @response = TypusMailer.deliver_reset_password_link(@user, url) + end + + def test_should_verify_email_from_is_defined_by_typus_options + assert_equal Typus::Configuration.options[:email], @response.from + end + + def test_should_verify_email_to_is_typus_user_email + assert_equal [ @user.email ], @response.to + end + + def test_should_verify_email_subject + expected = "[#{Typus::Configuration.options[:app_name]}] Reset password" + assert_equal expected, @response.subject + end + + def test_should_verify_email_contains_reset_password_link_with_token + expected = "http://test.host/admin/reset_password?token=1A2B3C4D5E6F" + assert_match expected, @response.body + end + +end \ No newline at end of file diff --git a/vendor/plugins/typus/test/unit/typus_test.rb b/vendor/plugins/typus/test/unit/typus_test.rb new file mode 100644 index 0000000..467beb6 --- /dev/null +++ b/vendor/plugins/typus/test/unit/typus_test.rb @@ -0,0 +1,17 @@ +require 'test/helper' + +class TypusTest < ActiveSupport::TestCase + + def test_should_verify_models + models = [ Category, Comment, Post, TypusUser ] + models.each { |m| assert m.superclass.equal?(ActiveRecord::Base) } + end + + def test_should_verify_fixtures_are_loaded + assert_equal 3, Category.count + assert_equal 4, Comment.count + assert_equal 4, Post.count + assert_equal 5, TypusUser.count + end + +end \ No newline at end of file diff --git a/vendor/plugins/typus/test/unit/typus_user_roles_test.rb b/vendor/plugins/typus/test/unit/typus_user_roles_test.rb new file mode 100644 index 0000000..fd47a4a --- /dev/null +++ b/vendor/plugins/typus/test/unit/typus_user_roles_test.rb @@ -0,0 +1,97 @@ +require 'test/helper' + +class TypusUserRolesTest < ActiveSupport::TestCase + + def test_should_get_list_of_roles + roles = %w( admin designer editor ) + assert_equal roles, Typus::Configuration.roles.map(&:first).sort + end + + def test_admin_role_settings + + typus_user = typus_users(:admin) + assert_equal 'admin', typus_user.role + + models = %w( Asset Category Comment Delayed::Task Git Page Post Status TypusUser View WatchDog ) + assert_equal models, typus_user.resources.map(&:first).sort + + # Order exists on the roles, but, as we compact the hash, the + # resource is removed. + assert !typus_user.resources.map(&:first).include?('Order') + + resources = %w( Git Status WatchDog ) + models.delete_if { |m| resources.include?(m) } + + %w( create read update destroy ).each do |action| + models.each { |model| assert typus_user.can?(action, model), "Error on #{model} #{action}" } + end + + # Order resource doesn't have an index action, so we current user + # cannot perform the action. + assert typus_user.cannot?('index', 'Order') + + # Status resource has an index action, but not a show one. + # We add the { :special => true } option to by-pass the action + # renaming performed in the TypusUser#can? method. + assert typus_user.can?('index', 'Status', { :special => true }) + assert typus_user.cannot?('show', 'Status', { :special => true }) + + end + + def test_editor_role_settings + + typus_user = typus_users(:editor) + assert_equal 'editor', typus_user.role + + %w( Category Comment Git Post TypusUser ).each do |model| + assert typus_user.resources.map(&:first).include?(model) + end + + # Category: create, read, update + %w( create read update ).each { |action| assert typus_user.can?(action, 'Category') } + %w( delete ).each { |action| assert typus_user.cannot?(action, 'Category') } + + # Post: create, read, update + %w( create read update ).each { |action| assert typus_user.can?(action, 'Post') } + %w( delete ).each { |action| assert typus_user.cannot?(action, 'Post') } + + # Comment: read, update, delete + %w( read update delete ).each { |action| assert typus_user.can?(action, 'Comment') } + %w( create ).each { |action| assert typus_user.cannot?(action, 'Comment') } + + # TypusUser: read, update + %w( read update ).each { |action| assert typus_user.can?(action, 'TypusUser') } + %w( create delete ).each { |action| assert typus_user.cannot?(action, 'TypusUser') } + + end + + def test_designer_role_settings + + typus_user = typus_users(:designer) + assert_equal 'designer', typus_user.role + + models = %w( Category Comment Post ) + assert_equal models, typus_user.resources.map(&:first).sort + + # Category: read, update + %w( read update ).each { |action| assert typus_user.can?(action, 'Category') } + %w( create delete ).each { |action| assert typus_user.cannot?(action, 'Category') } + + # Comment: read + %w( read ).each { |action| assert typus_user.can?(action, 'Comment') } + %w( create update delete ).each { |action| assert typus_user.cannot?(action, 'Comment') } + + # Post: read, update + %w( read update ).each { |action| assert typus_user.can?(action, 'Post') } + %w( create delete ).each { |action| assert typus_user.cannot?(action, 'Post') } + + end + + def test_admin_can_perform_any_action_on_delayed_task_model + typus_user = typus_users(:admin) + action = 'whatever_i_want_to' + klass = Delayed::Task + assert typus_user.can?(action, klass), "Admin can't perform `#{action}` on `#{klass}`." + end + +end \ No newline at end of file diff --git a/vendor/plugins/typus/test/unit/typus_user_test.rb b/vendor/plugins/typus/test/unit/typus_user_test.rb new file mode 100644 index 0000000..e5c99b8 --- /dev/null +++ b/vendor/plugins/typus/test/unit/typus_user_test.rb @@ -0,0 +1,179 @@ +require 'test/helper' + +class TypusUserTest < ActiveSupport::TestCase + + def setup + @data = { :first_name => '', + :last_name => '', + :email => 'test@example.com', + :password => '12345678', + :password_confirmation => '12345678', + :role => Typus::Configuration.options[:root], + :preferences => { :locale => :en } } + @typus_user = TypusUser.new(@data) + end + + def test_should_verify_typus_user_attributes + [ :first_name, :last_name, :email, :role, :salt, :crypted_password ].each do |attribute| + assert TypusUser.instance_methods.map { |i| i.to_sym }.include?(attribute) + end + end + + def test_should_verify_definition_on_instance_methods + [ :is_root?, :authenticated? ].each do |instance_method| + assert TypusUser.instance_methods.map { |i| i.to_sym }.include?(instance_method) + end + end + + def test_should_verify_email_format + @typus_user.email = 'admin' + assert @typus_user.invalid? + assert @typus_user.errors.invalid?(:email) + end + + def test_should_verify_email_is_not_valid + email = <<-RAW +this_is_chelm@example.com + + RAW + @typus_user.email = email + assert @typus_user.invalid? + assert @typus_user.errors.invalid?(:email) + end + + def test_should_verify_emails_are_downcase + email = 'TEST@EXAMPLE.COM' + @typus_user.email = email + assert @typus_user.invalid? + assert @typus_user.errors.invalid?(:email) + end + + def test_should_verify_some_valid_emails_schemas + emails = [ 'test+filter@example.com', + 'test.filter@example.com', + 'test@example.co.uk', + 'test@example.es' ] + emails.each do |email| + @typus_user.email = email + assert @typus_user.valid? + end + end + + def test_should_verify_invalid_emails_are_detected + emails = [ 'test@example', 'test@example.c', 'testexample.com' ] + emails.each do |email| + @typus_user.email = email + assert @typus_user.invalid? + assert @typus_user.errors.invalid?(:email) + end + end + + def test_should_verify_email_is_unique + @typus_user.save + @another_typus_user = TypusUser.new(@data) + assert @another_typus_user.invalid? + assert @another_typus_user.errors.invalid?(:email) + end + + def test_should_verify_length_of_password_when_under_within + @typus_user.password = '1234' + @typus_user.password_confirmation = '1234' + assert @typus_user.invalid? + assert @typus_user.errors.invalid?(:password) + end + + def test_should_verify_length_of_password_when_its_within_on_lower_limit + @typus_user.password = '=' * 8 + @typus_user.password_confirmation = '=' * 8 + assert @typus_user.valid? + end + + def test_should_verify_length_of_password_when_its_within_on_upper_limit + @typus_user.password = '=' * 40 + @typus_user.password_confirmation = '=' * 40 + assert @typus_user.valid? + end + + def test_should_verify_length_of_password_when_its_over_within + @typus_user.password = '=' * 50 + @typus_user.password_confirmation = '=' * 50 + assert @typus_user.invalid? + assert @typus_user.errors.invalid?(:password) + end + + def test_should_verify_confirmation_of_password + + @typus_user.password = '12345678' + @typus_user.password_confirmation = '87654321' + assert @typus_user.invalid? + assert @typus_user.errors.invalid?(:password) + + @typus_user.password = '12345678' + @typus_user.password_confirmation = '' + assert @typus_user.invalid? + assert @typus_user.errors.invalid?(:password) + + end + + def test_should_verify_role + @typus_user.role = '' + assert @typus_user.invalid? + assert @typus_user.errors.invalid?(:role) + assert_equal "can't be blank", @typus_user.errors[:role] + end + + def test_should_return_name_when_only_email + assert_equal @typus_user.email, @typus_user.name + end + + def test_should_return_name_when_theres_first_name_and_last_name + @typus_user.first_name = 'John' + @typus_user.last_name = 'Smith' + assert_equal 'John Smith', @typus_user.name + end + + def test_should_return_verify_is_root + assert @typus_user.is_root? + editor = typus_users(:editor) + assert editor.is_not_root? + end + + def test_should_verify_authenticated + @typus_user.save + assert @typus_user.authenticated?('12345678') + assert !@typus_user.authenticated?('87654321') + end + + def test_should_verify_typus_user_can_be_created + assert_difference 'TypusUser.count' do + TypusUser.create(@data) + end + end + + def test_should_verify_salt_on_user_never_changes + + @typus_user.save + salt = @typus_user.salt + crypted_password = @typus_user.crypted_password + + @typus_user.update_attributes :password => '11111111', :password_confirmation => '11111111' + assert_equal salt, @typus_user.salt + assert_not_equal crypted_password, @typus_user.crypted_password + + end + + def test_should_verify_generate + assert TypusUser.respond_to?(:generate) + assert TypusUser.generate(:email => 'demo@example.com', :password => 'XXXXXXXX').invalid? + assert TypusUser.generate(:email => 'demo@example.com', :password => 'XXXXXXXX', :role => 'admin').valid? + end + + def test_should_verify_can? + assert TypusUser.instance_methods.map { |i| i.to_sym }.include?(:can?) + @current_user = TypusUser.find(:first) + assert @current_user.can?('delete', TypusUser) + assert @current_user.can?('delete', 'TypusUser') + assert !@current_user.cannot?('delete', 'TypusUser') + end + +end \ No newline at end of file diff --git a/vendor/plugins/typus/test/vendor/paginator_test.rb b/vendor/plugins/typus/test/vendor/paginator_test.rb new file mode 100644 index 0000000..29235fb --- /dev/null +++ b/vendor/plugins/typus/test/vendor/paginator_test.rb @@ -0,0 +1,138 @@ +require 'test/helper' + +class PaginatorTest < ActiveSupport::TestCase + + PER_PAGE = 10 + + def setup + @data = (0..43).to_a + @pager = Paginator.new(@data.size, PER_PAGE) do |offset,per_page| + @data[offset,per_page] + end + end + + def test_initializing_paginator_raises_exception + assert_raises(Paginator::MissingSelectError) do + @pager = Paginator.new(@data.size, PER_PAGE) + end + end + + def test_can_get_last_page_from_page_object + assert_equal @pager.last, @pager.page(2).last + end + + # FIXME: Problem with paginator.rb. + def test_can_get_first_page_from_page_object + return + assert_equal @pager.first, @pager.page(2).first + end + + def test_does_not_exceed_per_page + @pager.each do |page| + assert page.items.size <= PER_PAGE + end + end + + def test_only_last_page_has_less_items + @pager.each do |page| + if page != @pager.last + assert page.items.size <= PER_PAGE + else + assert page.items.size < PER_PAGE + end + end + end + + def test_returns_correct_first_page + assert_equal @pager.page(1).number, @pager.first.number + end + + def test_returns_correct_last_page + assert_equal @pager.page(5).number, @pager.last.number + end + + def test_last_page_has_no_next_page + assert !@pager.last.next? + assert !@pager.last.next + end + + def test_first_page_has_no_prev_page + assert !@pager.first.prev? + assert !@pager.first.prev + end + + def test_page_enumerable + @pager.each do |page| + assert page + page.each do |item| + assert item + end + page.each_with_index do |item, index| + assert_equal page.items[index], item + end + assert_equal page.items, page.inject([]) { |list, item| list << item } + end + end + + def test_each_with_index + page_offset = 0 + @pager.each_with_index do |page, page_index| + assert page + assert_equal page_offset, page_index + item_offset = 0 + page.each_with_index do |item, item_index| + assert item + assert_equal item_offset, item_index + item_offset += 1 + end + page_offset += 1 + end + end + + def test_number_of_pages + assert_equal 5, @pager.number_of_pages + end + + def test_passing_block_to_initializer_with_arity_of_two_yields_per_page + pager = Paginator.new(20,2) do |offset,per_page| + assert_equal 2, per_page + end + pager.page(1).items + end + + def test_passing_block_to_initializer_with_arity_of_one_does_not_yield_per_page + pager = Paginator.new(20,2) do |offset| + assert_equal 0, offset + end + pager.page(1).items + end + + def test_page_object_knows_first_and_last_item_numbers + items = (1..11).to_a + pager = Paginator.new(items.size,3) do |offset, per_page| + items[offset, per_page] + end + page = pager.page(1) + assert_equal 1, page.first_item_number + assert_equal 3, page.last_item_number + page = pager.page(2) + assert_equal 4, page.first_item_number + assert_equal 6, page.last_item_number + page = pager.page(3) + assert_equal 7, page.first_item_number + assert_equal 9, page.last_item_number + page = pager.page(4) + assert_equal 10, page.first_item_number + assert_equal 11, page.last_item_number + end + +end + +class PaginatorTestWithMathN < PaginatorTest + + def setup + require 'mathn' + super + end + +end \ No newline at end of file diff --git a/vendor/plugins/typus/typus.gemspec b/vendor/plugins/typus/typus.gemspec new file mode 100644 index 0000000..2db962b --- /dev/null +++ b/vendor/plugins/typus/typus.gemspec @@ -0,0 +1,24 @@ +# -*- encoding: utf-8 -*- +lib = File.expand_path('../lib/', __FILE__) +$:.unshift lib unless $:.include?(lib) + +require "typus/version" + +Gem::Specification.new do |s| + + s.name = "typus" + s.version = Typus::VERSION + s.platform = Gem::Platform::RUBY + s.authors = ["Francesc Esplugas"] + s.email = ["francesc@intraducibles.com"] + s.homepage = "http://labs.intraducibles.com/projects/typus" + s.summary = "Effortless backend interface for Ruby on Rails applications. (Admin scaffold generator.)" + s.description = "Awesone admin scaffold generator for Ruby on Rails applications." + + s.required_rubygems_version = ">= 1.3.6" + s.rubyforge_project = "typus" + + s.files = Dir.glob("**/*") + s.require_path = "lib" + +end