1
0
mirror of https://github.com/danbee/danbarberphoto synced 2025-03-04 08:49:07 +00:00

Added 'featured' boolean to photo model. Home and portfolio pages will only pull in random photos that are marked 'featured'.

This commit is contained in:
Dan Barber 2010-10-14 05:00:19 -04:00
parent 48584657de
commit e9df965498
9 changed files with 612 additions and 7 deletions

2
.gitignore vendored
View File

@ -3,3 +3,5 @@ db/*.sqlite3
log/*.log log/*.log
tmp/**/* tmp/**/*
public/system public/system
.*~
.*.swp

View File

@ -7,7 +7,7 @@ class CategoriesController < ApplicationController
@num_categories = @categories.count @num_categories = @categories.count
@photos = Photo.all(:limit => 2, :order => 'RANDOM()') @photos = Photo.all(:limit => 2, :order => 'RANDOM()', :conditions => { :featured => true })
respond_to do |format| respond_to do |format|
format.html # index.html.erb format.html # index.html.erb

View File

@ -2,7 +2,7 @@ class PagesController < ApplicationController
layout "photos" layout "photos"
def index def index
@photo = Photo.first(:order => 'RANDOM()') @photo = Photo.first(:order => 'RANDOM()', :conditions => { :featured => true })
end end
def about def about

View File

@ -3,7 +3,7 @@ class Notifier < ActionMailer::Base
def contact_notification(sender) def contact_notification(sender)
@sender = sender @sender = sender
mail( :to => 'danbee@gmail.com', mail( :to => 'enquiries@danbarberphoto.com',
:from => sender.email, :from => sender.email,
:subject => sender.subject) :subject => sender.subject)
end end

View File

@ -14,8 +14,8 @@ Category:
Photo: Photo:
fields: fields:
default: title, sort default: title, sort, featured
form: photo, title, description, flickr_url, sort form: photo, title, description, flickr_url, featured, sort
order_by: order_by:
relationships: categories relationships: categories
filters: filters:
@ -30,4 +30,4 @@ Page:
relationships: relationships:
filters: filters:
search: title search: title
application: Photos application: Photos

View File

@ -0,0 +1,9 @@
class PhotoShowcase < ActiveRecord::Migration
def self.up
add_column :photos, :featured, :boolean, :default => false
end
def self.down
remove_column :photos, :featured
end
end

View File

@ -10,7 +10,7 @@
# #
# It's strongly recommended to check this file into your version control system. # It's strongly recommended to check this file into your version control system.
ActiveRecord::Schema.define(:version => 20101012132954) do ActiveRecord::Schema.define(:version => 20101013165208) do
create_table "admin_users", :force => true do |t| create_table "admin_users", :force => true do |t|
t.string "first_name", :default => "", :null => false t.string "first_name", :default => "", :null => false
@ -60,6 +60,7 @@ ActiveRecord::Schema.define(:version => 20101012132954) do
t.string "title" t.string "title"
t.text "description" t.text "description"
t.integer "sort" t.integer "sort"
t.boolean "featured", :default => false
end end
end end

View File

@ -8077,3 +8077,596 @@ Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/view
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/_login_info.html.erb (0.6ms) Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/_login_info.html.erb (0.6ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/resources/edit.html.erb within layouts/admin/base (161.6ms) Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/resources/edit.html.erb within layouts/admin/base (161.6ms)
Completed 200 OK in 344ms (Views: 171.4ms | ActiveRecord: 4.2ms) Completed 200 OK in 344ms (Views: 171.4ms | ActiveRecord: 4.2ms)
DEPRECATION WARNING: Use toplevel init.rb; rails/init.rb is deprecated: /Users/danbee/Sites/rails/photos/vendor/plugins/jrails/rails/init.rb. (called from <top (required)> at /Users/danbee/Sites/rails/photos/config/environment.rb:5)
DEPRECATION WARNING: reset_javascript_include_default is deprecated. Please manipulate config.action_view.javascript_expansions[:defaults] directly. (called from block in <class:Plugin> at /Users/danbee/Sites/rails/photos/vendor/plugins/jrails/rails/init.rb:14)
DEPRECATION WARNING: RAILS_ENV is deprecated. Please use ::Rails.env. (called from block in <class:Plugin> at /Users/danbee/Sites/rails/photos/vendor/plugins/jrails/rails/init.rb:16)
DEPRECATION WARNING: Use toplevel init.rb; rails/init.rb is deprecated: /Users/danbee/Sites/rails/photos/vendor/plugins/paperclip/rails/init.rb. (called from <top (required)> at /Users/danbee/Sites/rails/photos/config/environment.rb:5)
DEPRECATION WARNING: ActionController::Base.cookie_verifier_secret= is deprecated. Please configure it on your application with config.secret_token=. (called from <top (required)> at /Users/danbee/Sites/rails/photos/config/initializers/cookie_verification_secret.rb:7)
DEPRECATION WARNING: Use toplevel init.rb; rails/init.rb is deprecated: /Users/danbee/Sites/rails/photos/vendor/plugins/jrails/rails/init.rb. (called from <top (required)> at /Users/danbee/Sites/rails/photos/config/environment.rb:5)
DEPRECATION WARNING: reset_javascript_include_default is deprecated. Please manipulate config.action_view.javascript_expansions[:defaults] directly. (called from block in <class:Plugin> at /Users/danbee/Sites/rails/photos/vendor/plugins/jrails/rails/init.rb:14)
DEPRECATION WARNING: RAILS_ENV is deprecated. Please use ::Rails.env. (called from block in <class:Plugin> at /Users/danbee/Sites/rails/photos/vendor/plugins/jrails/rails/init.rb:16)
DEPRECATION WARNING: Use toplevel init.rb; rails/init.rb is deprecated: /Users/danbee/Sites/rails/photos/vendor/plugins/paperclip/rails/init.rb. (called from <top (required)> at /Users/danbee/Sites/rails/photos/config/environment.rb:5)
DEPRECATION WARNING: ActionController::Base.cookie_verifier_secret= is deprecated. Please configure it on your application with config.secret_token=. (called from <top (required)> at /Users/danbee/Sites/rails/photos/config/initializers/cookie_verification_secret.rb:7)
Started GET "/" for 127.0.0.1 at 2010-10-13 12:33:49 -0400
Processing by PagesController#index as HTML
SQL (0.2ms)  SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'

Photo Load (6.9ms) SELECT "photos".* FROM "photos" ORDER BY RANDOM() LIMIT 1
Rendered pages/index.html.erb within layouts/photos (45.6ms)
Completed 200 OK in 164ms (Views: 103.1ms | ActiveRecord: 7.1ms)
DEPRECATION WARNING: Use toplevel init.rb; rails/init.rb is deprecated: /Users/danbee/Sites/rails/photos/vendor/plugins/jrails/rails/init.rb. (called from <top (required)> at /Users/danbee/Sites/rails/photos/config/environment.rb:5)
DEPRECATION WARNING: reset_javascript_include_default is deprecated. Please manipulate config.action_view.javascript_expansions[:defaults] directly. (called from block in <class:Plugin> at /Users/danbee/Sites/rails/photos/vendor/plugins/jrails/rails/init.rb:14)
DEPRECATION WARNING: RAILS_ENV is deprecated. Please use ::Rails.env. (called from block in <class:Plugin> at /Users/danbee/Sites/rails/photos/vendor/plugins/jrails/rails/init.rb:16)
DEPRECATION WARNING: Use toplevel init.rb; rails/init.rb is deprecated: /Users/danbee/Sites/rails/photos/vendor/plugins/paperclip/rails/init.rb. (called from <top (required)> at /Users/danbee/Sites/rails/photos/config/environment.rb:5)
DEPRECATION WARNING: ActionController::Base.cookie_verifier_secret= is deprecated. Please configure it on your application with config.secret_token=. (called from <top (required)> at /Users/danbee/Sites/rails/photos/config/initializers/cookie_verification_secret.rb:7)
DEPRECATION WARNING: Use toplevel init.rb; rails/init.rb is deprecated: /Users/danbee/Sites/rails/photos/vendor/plugins/jrails/rails/init.rb. (called from <top (required)> at /Users/danbee/Sites/rails/photos/config/environment.rb:5)
DEPRECATION WARNING: reset_javascript_include_default is deprecated. Please manipulate config.action_view.javascript_expansions[:defaults] directly. (called from block in <class:Plugin> at /Users/danbee/Sites/rails/photos/vendor/plugins/jrails/rails/init.rb:14)
DEPRECATION WARNING: RAILS_ENV is deprecated. Please use ::Rails.env. (called from block in <class:Plugin> at /Users/danbee/Sites/rails/photos/vendor/plugins/jrails/rails/init.rb:16)
DEPRECATION WARNING: Use toplevel init.rb; rails/init.rb is deprecated: /Users/danbee/Sites/rails/photos/vendor/plugins/paperclip/rails/init.rb. (called from <top (required)> at /Users/danbee/Sites/rails/photos/config/environment.rb:5)
DEPRECATION WARNING: ActionController::Base.cookie_verifier_secret= is deprecated. Please configure it on your application with config.secret_token=. (called from <top (required)> at /Users/danbee/Sites/rails/photos/config/initializers/cookie_verification_secret.rb:7)
DEPRECATION WARNING: Use toplevel init.rb; rails/init.rb is deprecated: /Users/danbee/Sites/rails/photos/vendor/plugins/jrails/rails/init.rb. (called from <top (required)> at /Users/danbee/Sites/rails/photos/config/environment.rb:5)
DEPRECATION WARNING: reset_javascript_include_default is deprecated. Please manipulate config.action_view.javascript_expansions[:defaults] directly. (called from block in <class:Plugin> at /Users/danbee/Sites/rails/photos/vendor/plugins/jrails/rails/init.rb:14)
DEPRECATION WARNING: RAILS_ENV is deprecated. Please use ::Rails.env. (called from block in <class:Plugin> at /Users/danbee/Sites/rails/photos/vendor/plugins/jrails/rails/init.rb:16)
DEPRECATION WARNING: Use toplevel init.rb; rails/init.rb is deprecated: /Users/danbee/Sites/rails/photos/vendor/plugins/paperclip/rails/init.rb. (called from <top (required)> at /Users/danbee/Sites/rails/photos/config/environment.rb:5)
DEPRECATION WARNING: ActionController::Base.cookie_verifier_secret= is deprecated. Please configure it on your application with config.secret_token=. (called from <top (required)> at /Users/danbee/Sites/rails/photos/config/initializers/cookie_verification_secret.rb:7)
SQL (0.5ms)  SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'

SQL (0.1ms) SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
SQL (0.1ms) SELECT "schema_migrations"."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 CreateAdminUsers (20101011133558)
Migrating to CreatePages (20101012132954)
Migrating to PhotoShowcase (20101013165208)
SQL (0.0ms) select sqlite_version(*)
SQL (20.8ms) ALTER TABLE "photos" ADD "showcase" boolean
SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101013165208')
SQL (0.4ms)  SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'

SQL (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
SQL (0.1ms)  SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'

SQL (0.1ms) PRAGMA index_list("admin_users")
SQL (0.0ms) PRAGMA index_list("categories")
SQL (0.0ms) PRAGMA index_list("categories_photos")
SQL (0.0ms) PRAGMA index_list("pages")
SQL (0.0ms) PRAGMA index_list("photos")
DEPRECATION WARNING: Use toplevel init.rb; rails/init.rb is deprecated: /Users/danbee/Sites/rails/photos/vendor/plugins/jrails/rails/init.rb. (called from <top (required)> at /Users/danbee/Sites/rails/photos/config/environment.rb:5)
DEPRECATION WARNING: reset_javascript_include_default is deprecated. Please manipulate config.action_view.javascript_expansions[:defaults] directly. (called from block in <class:Plugin> at /Users/danbee/Sites/rails/photos/vendor/plugins/jrails/rails/init.rb:14)
DEPRECATION WARNING: RAILS_ENV is deprecated. Please use ::Rails.env. (called from block in <class:Plugin> at /Users/danbee/Sites/rails/photos/vendor/plugins/jrails/rails/init.rb:16)
DEPRECATION WARNING: Use toplevel init.rb; rails/init.rb is deprecated: /Users/danbee/Sites/rails/photos/vendor/plugins/paperclip/rails/init.rb. (called from <top (required)> at /Users/danbee/Sites/rails/photos/config/environment.rb:5)
DEPRECATION WARNING: ActionController::Base.cookie_verifier_secret= is deprecated. Please configure it on your application with config.secret_token=. (called from <top (required)> at /Users/danbee/Sites/rails/photos/config/initializers/cookie_verification_secret.rb:7)
SQL (0.5ms)  SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'

SQL (0.1ms) SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
SQL (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
SQL (0.1ms) select sqlite_version(*)
SQL (0.8ms) CREATE TEMPORARY TABLE "altered_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, "showcase" boolean) 
SQL (0.0ms) PRAGMA index_list("photos")
SQL (0.6ms) DROP TABLE "photos"
SQL (0.3ms) 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.4ms) DROP TABLE "altered_photos"
SQL (1.2ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20101013165208'
SQL (0.3ms) SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
SQL (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
SQL (0.1ms) SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
SQL (0.0ms) PRAGMA index_list("admin_users")
SQL (0.0ms) PRAGMA index_list("categories")
SQL (0.0ms) PRAGMA index_list("categories_photos")
SQL (0.0ms) PRAGMA index_list("pages")
SQL (0.1ms) PRAGMA index_list("photos")
DEPRECATION WARNING: Use toplevel init.rb; rails/init.rb is deprecated: /Users/danbee/Sites/rails/photos/vendor/plugins/jrails/rails/init.rb. (called from <top (required)> at /Users/danbee/Sites/rails/photos/config/environment.rb:5)
DEPRECATION WARNING: reset_javascript_include_default is deprecated. Please manipulate config.action_view.javascript_expansions[:defaults] directly. (called from block in <class:Plugin> at /Users/danbee/Sites/rails/photos/vendor/plugins/jrails/rails/init.rb:14)
DEPRECATION WARNING: RAILS_ENV is deprecated. Please use ::Rails.env. (called from block in <class:Plugin> at /Users/danbee/Sites/rails/photos/vendor/plugins/jrails/rails/init.rb:16)
DEPRECATION WARNING: Use toplevel init.rb; rails/init.rb is deprecated: /Users/danbee/Sites/rails/photos/vendor/plugins/paperclip/rails/init.rb. (called from <top (required)> at /Users/danbee/Sites/rails/photos/config/environment.rb:5)
DEPRECATION WARNING: ActionController::Base.cookie_verifier_secret= is deprecated. Please configure it on your application with config.secret_token=. (called from <top (required)> at /Users/danbee/Sites/rails/photos/config/initializers/cookie_verification_secret.rb:7)
SQL (0.5ms)  SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'

SQL (0.1ms) SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
SQL (0.1ms) SELECT "schema_migrations"."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 CreateAdminUsers (20101011133558)
Migrating to CreatePages (20101012132954)
Migrating to PhotoShowcase (20101013165208)
SQL (0.1ms) select sqlite_version(*)
SQL (0.5ms) ALTER TABLE "photos" ADD "featured" boolean
SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101013165208')
SQL (0.2ms)  SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'

SQL (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
SQL (0.1ms)  SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'

SQL (0.1ms) PRAGMA index_list("admin_users")
SQL (0.0ms) PRAGMA index_list("categories")
SQL (0.0ms) PRAGMA index_list("categories_photos")
SQL (0.0ms) PRAGMA index_list("pages")
SQL (0.0ms) PRAGMA index_list("photos")
Started GET "/admin" for 127.0.0.1 at 2010-10-13 12:55:19 -0400
Started GET "/admin/dashboard" for 127.0.0.1 at 2010-10-13 12:55:19 -0400
Processing by Admin::DashboardController#show as HTML
AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE ("admin_users"."id" = 1) LIMIT 1
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/dashboard/_sidebar.html.erb (0.4ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/dashboard/_applications.html.erb (85.6ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/dashboard/_resources.html.erb (0.6ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/_header.html.erb (0.8ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/_apps.html.erb (2.1ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/_login_info.html.erb (0.8ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/dashboard/show.html.erb within layouts/admin/base (161.0ms)
Completed 200 OK in 237ms (Views: 171.5ms | ActiveRecord: 0.2ms)
Started GET "/admin/photos" for 127.0.0.1 at 2010-10-13 12:55:21 -0400
Processing by Admin::PhotosController#index as HTML
AdminUser Load (0.3ms) SELECT "admin_users".* FROM "admin_users" WHERE ("admin_users"."id" = 1) LIMIT 1
SQL (0.2ms) SELECT COUNT(*) AS count_id FROM "photos"
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/sidebar/_sidebar.html.erb (2.4ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/resources/_index.html.erb (0.3ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/search/_search.html.erb (0.9ms)
CACHE (0.0ms) SELECT COUNT(*) AS count_id FROM "photos"
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/search/_search.html.erb (0.9ms)
CACHE (0.0ms) SELECT COUNT(*) AS count_id FROM "photos"
Photo Load (34.5ms) SELECT "photos".* FROM "photos" LIMIT 15 OFFSET 0
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/table/_table.html.erb (12.9ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/_header.html.erb (0.7ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/_apps.html.erb (2.7ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/_login_info.html.erb (0.9ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/resources/index.html.erb within layouts/admin/base (133.6ms)
Completed 200 OK in 233ms (Views: 111.2ms | ActiveRecord: 35.0ms)
Started GET "/admin/photos/edit/28" for 127.0.0.1 at 2010-10-13 12:55:23 -0400
Processing by Admin::PhotosController#edit as HTML
Parameters: {"id"=>"28"}
AdminUser Load (0.4ms) SELECT "admin_users".* FROM "admin_users" WHERE ("admin_users"."id" = 1) LIMIT 1
Photo Load (0.5ms) SELECT "photos".* FROM "photos" WHERE ("photos"."id" = 28) LIMIT 1
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/sidebar/_sidebar.html.erb (2.9ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/resources/_edit.html.erb (0.4ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/_preview.html.erb (1.5ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/templates/_file.html.erb (8.9ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/templates/_string.html.erb (1.4ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/templates/_text.html.erb (0.8ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/templates/_string.html.erb (1.1ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/templates/_boolean.html.erb (1.0ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/templates/_string.html.erb (1.5ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/resources/_form.html.erb (55.8ms)
Category Load (43.9ms) SELECT "categories".* 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 = 28 )
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/templates/_relate_form.html.erb (1.8ms)
CACHE (0.0ms) SELECT "photos".* FROM "photos" WHERE ("photos"."id" = 28) LIMIT 1
SQL (0.2ms) SELECT COUNT(*) AS count_id FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 28 )
CACHE (0.0ms) SELECT "photos".* FROM "photos" WHERE ("photos"."id" = 28) LIMIT 1
Category Load (1.0ms) SELECT "categories".* FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 28 ) LIMIT 15 OFFSET 0
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/table/_table.html.erb (6.7ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/templates/_has_n.html.erb (1.5ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/_header.html.erb (0.7ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/_apps.html.erb (2.3ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/_login_info.html.erb (1.3ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/resources/edit.html.erb within layouts/admin/base (211.5ms)
Completed 200 OK in 377ms (Views: 225.8ms | ActiveRecord: 46.6ms)
Started POST "/admin/photos/update/28" for 127.0.0.1 at 2010-10-13 12:55:28 -0400
Processing by Admin::PhotosController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"qXI/EVGrai3ZKvzFWeagi05czgp8I0TF8vdeWdEkaMs=", "photo"=>{"title"=>"Croagh Patrick Sunset", "description"=>"The west of Ireland is so photogenic!", "flickr_url"=>"", "featured"=>"0", "sort"=>""}, "commit"=>"Save Photo", "id"=>"28"}
AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE ("admin_users"."id" = 1) LIMIT 1
Photo Load (0.4ms) SELECT "photos".* FROM "photos" WHERE ("photos"."id" = 28) LIMIT 1
SQL (0.3ms) UPDATE "photos" SET "featured" = 'f', "updated_at" = '2010-10-13 16:55:29.126939' WHERE ("photos"."id" = 28)
[paperclip] Saving attachments.
Redirected to http://localhost:4000/admin/photos/edit/28
Completed 302 Found in 97ms
Started GET "/admin/photos/edit/28" for 127.0.0.1 at 2010-10-13 12:55:29 -0400
Processing by Admin::PhotosController#edit as HTML
Parameters: {"id"=>"28"}
AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE ("admin_users"."id" = 1) LIMIT 1
Photo Load (0.4ms) SELECT "photos".* FROM "photos" WHERE ("photos"."id" = 28) LIMIT 1
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/sidebar/_sidebar.html.erb (1.9ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/_flash_message.html.erb (0.9ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/resources/_edit.html.erb (0.4ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/_preview.html.erb (1.3ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/templates/_file.html.erb (9.0ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/templates/_string.html.erb (1.0ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/templates/_text.html.erb (0.7ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/templates/_string.html.erb (0.9ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/templates/_boolean.html.erb (0.6ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/templates/_string.html.erb (0.9ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/resources/_form.html.erb (63.7ms)
Category Load (1.8ms) SELECT "categories".* 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 = 28 )
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/templates/_relate_form.html.erb (1.7ms)
CACHE (0.0ms) SELECT "photos".* FROM "photos" WHERE ("photos"."id" = 28) LIMIT 1
SQL (0.2ms) SELECT COUNT(*) AS count_id FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 28 )
CACHE (0.0ms) SELECT "photos".* FROM "photos" WHERE ("photos"."id" = 28) LIMIT 1
Category Load (0.6ms) SELECT "categories".* FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 28 ) LIMIT 15 OFFSET 0
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/table/_table.html.erb (3.9ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/templates/_has_n.html.erb (0.8ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/_header.html.erb (0.8ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/_apps.html.erb (2.5ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/_login_info.html.erb (0.8ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/resources/edit.html.erb within layouts/admin/base (238.2ms)
Completed 200 OK in 335ms (Views: 247.7ms | ActiveRecord: 3.7ms)
Started GET "/admin/photos" for 127.0.0.1 at 2010-10-13 12:55:31 -0400
Processing by Admin::PhotosController#index as HTML
AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE ("admin_users"."id" = 1) LIMIT 1
SQL (0.2ms) SELECT COUNT(*) AS count_id FROM "photos"
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/sidebar/_sidebar.html.erb (1.6ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/resources/_index.html.erb (0.3ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/search/_search.html.erb (0.9ms)
CACHE (0.0ms) SELECT COUNT(*) AS count_id FROM "photos"
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/search/_search.html.erb (0.8ms)
CACHE (0.0ms) SELECT COUNT(*) AS count_id FROM "photos"
Photo Load (42.9ms) SELECT "photos".* FROM "photos" LIMIT 15 OFFSET 0
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/table/_table.html.erb (13.5ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/_header.html.erb (0.7ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/_apps.html.erb (2.1ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/_login_info.html.erb (0.8ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/resources/index.html.erb within layouts/admin/base (111.9ms)
Completed 200 OK in 199ms (Views: 81.3ms | ActiveRecord: 44.3ms)
DEPRECATION WARNING: Use toplevel init.rb; rails/init.rb is deprecated: /Users/danbee/Sites/rails/photos/vendor/plugins/jrails/rails/init.rb. (called from <top (required)> at /Users/danbee/Sites/rails/photos/config/environment.rb:5)
DEPRECATION WARNING: reset_javascript_include_default is deprecated. Please manipulate config.action_view.javascript_expansions[:defaults] directly. (called from block in <class:Plugin> at /Users/danbee/Sites/rails/photos/vendor/plugins/jrails/rails/init.rb:14)
DEPRECATION WARNING: RAILS_ENV is deprecated. Please use ::Rails.env. (called from block in <class:Plugin> at /Users/danbee/Sites/rails/photos/vendor/plugins/jrails/rails/init.rb:16)
DEPRECATION WARNING: Use toplevel init.rb; rails/init.rb is deprecated: /Users/danbee/Sites/rails/photos/vendor/plugins/paperclip/rails/init.rb. (called from <top (required)> at /Users/danbee/Sites/rails/photos/config/environment.rb:5)
DEPRECATION WARNING: ActionController::Base.cookie_verifier_secret= is deprecated. Please configure it on your application with config.secret_token=. (called from <top (required)> at /Users/danbee/Sites/rails/photos/config/initializers/cookie_verification_secret.rb:7)
SQL (0.5ms)  SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'

SQL (0.1ms) SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
SQL (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
SQL (0.1ms) select sqlite_version(*)
SQL (0.7ms) CREATE TEMPORARY TABLE "altered_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, "featured" boolean) 
SQL (0.0ms) PRAGMA index_list("photos")
SQL (0.6ms) 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.4ms) DROP TABLE "altered_photos"
SQL (1.2ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20101013165208'
SQL (0.2ms) SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
SQL (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
SQL (0.1ms) SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
SQL (0.0ms) PRAGMA index_list("admin_users")
SQL (0.0ms) PRAGMA index_list("categories")
SQL (0.0ms) PRAGMA index_list("categories_photos")
SQL (0.0ms) PRAGMA index_list("pages")
SQL (0.0ms) PRAGMA index_list("photos")
DEPRECATION WARNING: Use toplevel init.rb; rails/init.rb is deprecated: /Users/danbee/Sites/rails/photos/vendor/plugins/jrails/rails/init.rb. (called from <top (required)> at /Users/danbee/Sites/rails/photos/config/environment.rb:5)
DEPRECATION WARNING: reset_javascript_include_default is deprecated. Please manipulate config.action_view.javascript_expansions[:defaults] directly. (called from block in <class:Plugin> at /Users/danbee/Sites/rails/photos/vendor/plugins/jrails/rails/init.rb:14)
DEPRECATION WARNING: RAILS_ENV is deprecated. Please use ::Rails.env. (called from block in <class:Plugin> at /Users/danbee/Sites/rails/photos/vendor/plugins/jrails/rails/init.rb:16)
DEPRECATION WARNING: Use toplevel init.rb; rails/init.rb is deprecated: /Users/danbee/Sites/rails/photos/vendor/plugins/paperclip/rails/init.rb. (called from <top (required)> at /Users/danbee/Sites/rails/photos/config/environment.rb:5)
DEPRECATION WARNING: ActionController::Base.cookie_verifier_secret= is deprecated. Please configure it on your application with config.secret_token=. (called from <top (required)> at /Users/danbee/Sites/rails/photos/config/initializers/cookie_verification_secret.rb:7)
SQL (0.5ms)  SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'

SQL (0.1ms) SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
SQL (0.1ms) SELECT "schema_migrations"."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 CreateAdminUsers (20101011133558)
Migrating to CreatePages (20101012132954)
Migrating to PhotoShowcase (20101013165208)
SQL (0.0ms) select sqlite_version(*)
SQL (0.5ms) ALTER TABLE "photos" ADD "featured" boolean DEFAULT 'f'
SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101013165208')
SQL (0.2ms)  SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'

SQL (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
SQL (0.1ms)  SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'

SQL (0.0ms) PRAGMA index_list("admin_users")
SQL (0.0ms) PRAGMA index_list("categories")
SQL (0.0ms) PRAGMA index_list("categories_photos")
SQL (0.0ms) PRAGMA index_list("pages")
SQL (0.0ms) PRAGMA index_list("photos")
Started GET "/admin/photos" for 127.0.0.1 at 2010-10-13 12:56:10 -0400
Processing by Admin::PhotosController#index as HTML
AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE ("admin_users"."id" = 1) LIMIT 1
SQL (0.2ms) SELECT COUNT(*) AS count_id FROM "photos"
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/sidebar/_sidebar.html.erb (1.7ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/resources/_index.html.erb (0.3ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/search/_search.html.erb (0.9ms)
CACHE (0.0ms) SELECT COUNT(*) AS count_id FROM "photos"
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/search/_search.html.erb (0.8ms)
CACHE (0.0ms) SELECT COUNT(*) AS count_id FROM "photos"
Photo Load (1.1ms) SELECT "photos".* FROM "photos" LIMIT 15 OFFSET 0
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/table/_table.html.erb (15.4ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/_header.html.erb (0.6ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/_apps.html.erb (1.9ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/_login_info.html.erb (0.6ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/resources/index.html.erb within layouts/admin/base (68.5ms)
Completed 200 OK in 151ms (Views: 77.8ms | ActiveRecord: 1.5ms)
Started GET "/" for 127.0.0.1 at 2010-10-13 12:56:58 -0400
Processing by PagesController#index as HTML
Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE ("photos"."featured" = 't') ORDER BY RANDOM() LIMIT 1
Rendered pages/index.html.erb within layouts/photos (2.8ms)
Completed 200 OK in 73ms (Views: 29.1ms | ActiveRecord: 0.2ms)
Started GET "/admin/photos/edit/36" for 127.0.0.1 at 2010-10-13 12:57:07 -0400
Processing by Admin::PhotosController#edit as HTML
Parameters: {"id"=>"36"}
AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE ("admin_users"."id" = 1) LIMIT 1
Photo Load (0.3ms) SELECT "photos".* FROM "photos" WHERE ("photos"."id" = 36) LIMIT 1
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/sidebar/_sidebar.html.erb (2.6ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/resources/_edit.html.erb (0.2ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/_preview.html.erb (1.2ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/templates/_file.html.erb (7.1ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/templates/_string.html.erb (1.2ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/templates/_text.html.erb (0.9ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/templates/_string.html.erb (1.0ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/templates/_boolean.html.erb (0.8ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/templates/_string.html.erb (1.0ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/resources/_form.html.erb (63.1ms)
Category Load (2.1ms) SELECT "categories".* 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 = 36 )
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/templates/_relate_form.html.erb (1.6ms)
CACHE (0.0ms) SELECT "photos".* FROM "photos" WHERE ("photos"."id" = 36) LIMIT 1
SQL (0.2ms) SELECT COUNT(*) AS count_id FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 36 )
CACHE (0.0ms) SELECT "photos".* FROM "photos" WHERE ("photos"."id" = 36) LIMIT 1
Category Load (0.2ms) SELECT "categories".* FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 36 ) LIMIT 15 OFFSET 0
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/table/_table.html.erb (2.2ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/templates/_has_n.html.erb (1.0ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/_header.html.erb (0.7ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/_apps.html.erb (2.1ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/_login_info.html.erb (0.7ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/resources/edit.html.erb within layouts/admin/base (149.8ms)
Completed 200 OK in 237ms (Views: 157.7ms | ActiveRecord: 3.2ms)
Started POST "/admin/photos/update/36" for 127.0.0.1 at 2010-10-13 12:57:11 -0400
Processing by Admin::PhotosController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"qXI/EVGrai3ZKvzFWeagi05czgp8I0TF8vdeWdEkaMs=", "photo"=>{"title"=>"Bell Tower", "description"=>"Church of Ireland bell tower, Tourmakeady, Co. Mayo.", "flickr_url"=>"", "featured"=>"1", "sort"=>""}, "commit"=>"Save Photo", "id"=>"36"}
AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE ("admin_users"."id" = 1) LIMIT 1
Photo Load (0.3ms) SELECT "photos".* FROM "photos" WHERE ("photos"."id" = 36) LIMIT 1
SQL (0.3ms) UPDATE "photos" SET "featured" = 't', "updated_at" = '2010-10-13 16:57:11.422596' WHERE ("photos"."id" = 36)
[paperclip] Saving attachments.
Redirected to http://localhost:4000/admin/photos/edit/36
Completed 302 Found in 88ms
Started GET "/admin/photos/edit/36" for 127.0.0.1 at 2010-10-13 12:57:11 -0400
Processing by Admin::PhotosController#edit as HTML
Parameters: {"id"=>"36"}
AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE ("admin_users"."id" = 1) LIMIT 1
Photo Load (0.4ms) SELECT "photos".* FROM "photos" WHERE ("photos"."id" = 36) LIMIT 1
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/sidebar/_sidebar.html.erb (1.7ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/_flash_message.html.erb (0.3ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/resources/_edit.html.erb (0.2ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/_preview.html.erb (1.3ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/templates/_file.html.erb (7.9ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/templates/_string.html.erb (1.3ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/templates/_text.html.erb (0.7ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/templates/_string.html.erb (1.2ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/templates/_boolean.html.erb (0.8ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/templates/_string.html.erb (0.9ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/resources/_form.html.erb (65.7ms)
Category Load (2.0ms) SELECT "categories".* 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 = 36 )
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/templates/_relate_form.html.erb (1.7ms)
CACHE (0.0ms) SELECT "photos".* FROM "photos" WHERE ("photos"."id" = 36) LIMIT 1
SQL (0.2ms) SELECT COUNT(*) AS count_id FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 36 )
CACHE (0.0ms) SELECT "photos".* FROM "photos" WHERE ("photos"."id" = 36) LIMIT 1
Category Load (0.2ms) SELECT "categories".* FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 36 ) LIMIT 15 OFFSET 0
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/table/_table.html.erb (1.9ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/templates/_has_n.html.erb (0.8ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/_header.html.erb (0.6ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/_apps.html.erb (2.5ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/_login_info.html.erb (0.7ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/resources/edit.html.erb within layouts/admin/base (157.0ms)
Completed 200 OK in 250ms (Views: 169.1ms | ActiveRecord: 3.1ms)
Started GET "/" for 127.0.0.1 at 2010-10-13 12:57:11 -0400
Processing by PagesController#index as HTML
Photo Load (0.4ms) SELECT "photos".* FROM "photos" WHERE ("photos"."featured" = 't') ORDER BY RANDOM() LIMIT 1
Rendered pages/index.html.erb within layouts/photos (15.5ms)
Completed 200 OK in 37ms (Views: 17.6ms | ActiveRecord: 1.2ms)
Started GET "/admin/photos" for 127.0.0.1 at 2010-10-13 12:57:15 -0400
Processing by Admin::PhotosController#index as HTML
AdminUser Load (0.3ms) SELECT "admin_users".* FROM "admin_users" WHERE ("admin_users"."id" = 1) LIMIT 1
SQL (0.2ms) SELECT COUNT(*) AS count_id FROM "photos"
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/sidebar/_sidebar.html.erb (2.2ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/resources/_index.html.erb (0.5ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/search/_search.html.erb (1.7ms)
CACHE (0.0ms) SELECT COUNT(*) AS count_id FROM "photos"
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/search/_search.html.erb (1.3ms)
CACHE (0.0ms) SELECT COUNT(*) AS count_id FROM "photos"
Photo Load (1.1ms) SELECT "photos".* FROM "photos" LIMIT 15 OFFSET 0
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/table/_table.html.erb (18.5ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/_header.html.erb (0.6ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/_apps.html.erb (3.1ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/_login_info.html.erb (0.9ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/resources/index.html.erb within layouts/admin/base (115.4ms)
Completed 200 OK in 211ms (Views: 127.2ms | ActiveRecord: 1.6ms)
Started GET "/admin/photos/edit/28" for 127.0.0.1 at 2010-10-13 12:57:19 -0400
Processing by Admin::PhotosController#edit as HTML
Parameters: {"id"=>"28"}
AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE ("admin_users"."id" = 1) LIMIT 1
Photo Load (0.3ms) SELECT "photos".* FROM "photos" WHERE ("photos"."id" = 28) LIMIT 1
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/sidebar/_sidebar.html.erb (1.7ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/resources/_edit.html.erb (0.2ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/_preview.html.erb (1.2ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/templates/_file.html.erb (7.0ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/templates/_string.html.erb (1.0ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/templates/_text.html.erb (0.6ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/templates/_string.html.erb (0.9ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/templates/_boolean.html.erb (0.9ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/templates/_string.html.erb (0.9ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/resources/_form.html.erb (61.7ms)
Category Load (1.6ms) SELECT "categories".* 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 = 28 )
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/templates/_relate_form.html.erb (1.6ms)
CACHE (0.0ms) SELECT "photos".* FROM "photos" WHERE ("photos"."id" = 28) LIMIT 1
SQL (0.2ms) SELECT COUNT(*) AS count_id FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 28 )
CACHE (0.0ms) SELECT "photos".* FROM "photos" WHERE ("photos"."id" = 28) LIMIT 1
Category Load (0.5ms) SELECT "categories".* FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 28 ) LIMIT 15 OFFSET 0
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/table/_table.html.erb (3.4ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/templates/_has_n.html.erb (0.7ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/_header.html.erb (0.6ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/_apps.html.erb (2.0ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/_login_info.html.erb (0.6ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/resources/edit.html.erb within layouts/admin/base (143.8ms)
Completed 200 OK in 232ms (Views: 153.0ms | ActiveRecord: 3.2ms)
Started POST "/admin/photos/update/28" for 127.0.0.1 at 2010-10-13 12:57:23 -0400
Processing by Admin::PhotosController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"qXI/EVGrai3ZKvzFWeagi05czgp8I0TF8vdeWdEkaMs=", "photo"=>{"title"=>"Croagh Patrick Sunset", "description"=>"The west of Ireland is so photogenic!", "flickr_url"=>"", "featured"=>"1", "sort"=>""}, "commit"=>"Save Photo", "id"=>"28"}
AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE ("admin_users"."id" = 1) LIMIT 1
Photo Load (0.4ms) SELECT "photos".* FROM "photos" WHERE ("photos"."id" = 28) LIMIT 1
SQL (0.4ms) UPDATE "photos" SET "featured" = 't', "updated_at" = '2010-10-13 16:57:23.768070' WHERE ("photos"."id" = 28)
[paperclip] Saving attachments.
Redirected to http://localhost:4000/admin/photos/edit/28
Completed 302 Found in 93ms
Started GET "/admin/photos/edit/28" for 127.0.0.1 at 2010-10-13 12:57:23 -0400
Processing by Admin::PhotosController#edit as HTML
Parameters: {"id"=>"28"}
AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE ("admin_users"."id" = 1) LIMIT 1
Photo Load (0.3ms) SELECT "photos".* FROM "photos" WHERE ("photos"."id" = 28) LIMIT 1
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/sidebar/_sidebar.html.erb (1.6ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/_flash_message.html.erb (0.3ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/resources/_edit.html.erb (0.2ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/_preview.html.erb (1.5ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/templates/_file.html.erb (8.5ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/templates/_string.html.erb (1.0ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/templates/_text.html.erb (0.6ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/templates/_string.html.erb (0.9ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/templates/_boolean.html.erb (0.6ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/templates/_string.html.erb (0.9ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/resources/_form.html.erb (62.2ms)
Category Load (1.7ms) SELECT "categories".* 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 = 28 )
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/templates/_relate_form.html.erb (1.6ms)
CACHE (0.0ms) SELECT "photos".* FROM "photos" WHERE ("photos"."id" = 28) LIMIT 1
SQL (0.2ms) SELECT COUNT(*) AS count_id FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 28 )
CACHE (0.0ms) SELECT "photos".* FROM "photos" WHERE ("photos"."id" = 28) LIMIT 1
Category Load (0.7ms) SELECT "categories".* FROM "categories" INNER JOIN "categories_photos" ON "categories".id = "categories_photos".category_id WHERE ("categories_photos".photo_id = 28 ) LIMIT 15 OFFSET 0
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/table/_table.html.erb (4.2ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/templates/_has_n.html.erb (0.8ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/_header.html.erb (0.6ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/_apps.html.erb (2.0ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/_login_info.html.erb (0.6ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/resources/edit.html.erb within layouts/admin/base (146.4ms)
Completed 200 OK in 231ms (Views: 154.6ms | ActiveRecord: 3.5ms)
Started GET "/" for 127.0.0.1 at 2010-10-13 12:57:25 -0400
Processing by PagesController#index as HTML
Photo Load (0.5ms) SELECT "photos".* FROM "photos" WHERE ("photos"."featured" = 't') ORDER BY RANDOM() LIMIT 1
Rendered pages/index.html.erb within layouts/photos (21.4ms)
Completed 200 OK in 42ms (Views: 24.2ms | ActiveRecord: 0.5ms)
Started GET "/" for 127.0.0.1 at 2010-10-13 12:57:26 -0400
Processing by PagesController#index as HTML
Photo Load (0.4ms) SELECT "photos".* FROM "photos" WHERE ("photos"."featured" = 't') ORDER BY RANDOM() LIMIT 1
Rendered pages/index.html.erb within layouts/photos (47.4ms)
Completed 200 OK in 68ms (Views: 49.6ms | ActiveRecord: 0.4ms)
Started GET "/categories" for 127.0.0.1 at 2010-10-13 12:57:28 -0400
Processing by CategoriesController#index as HTML
Category Load (0.9ms) SELECT "categories".* FROM "categories" LIMIT 4 OFFSET 0
SQL (0.1ms) SELECT COUNT(*) AS count_id FROM "categories"
Photo Load (32.6ms) SELECT "photos".* FROM "photos" ORDER BY RANDOM() LIMIT 2
Rendered categories/index.html.erb within layouts/photos (22.1ms)
Completed 200 OK in 98ms (Views: 40.8ms | ActiveRecord: 33.6ms)
Started GET "/categories" for 127.0.0.1 at 2010-10-13 12:58:01 -0400
Processing by CategoriesController#index as HTML
Category Load (1.5ms) SELECT "categories".* FROM "categories" LIMIT 4 OFFSET 0
SQL (0.1ms) SELECT COUNT(*) AS count_id FROM "categories"
Photo Load (0.5ms) SELECT "photos".* FROM "photos" WHERE ("photos"."featured" = 't') ORDER BY RANDOM() LIMIT 2
Rendered categories/index.html.erb within layouts/photos (57.5ms)
Completed 200 OK in 130ms (Views: 59.6ms | ActiveRecord: 2.2ms)
Started GET "/categories" for 127.0.0.1 at 2010-10-13 12:58:03 -0400
Processing by CategoriesController#index as HTML
Category Load (0.9ms) SELECT "categories".* FROM "categories" LIMIT 4 OFFSET 0
SQL (0.1ms) SELECT COUNT(*) AS count_id FROM "categories"
Photo Load (0.5ms) SELECT "photos".* FROM "photos" WHERE ("photos"."featured" = 't') ORDER BY RANDOM() LIMIT 2
Rendered categories/index.html.erb within layouts/photos (22.1ms)
Completed 200 OK in 88ms (Views: 24.2ms | ActiveRecord: 1.5ms)
Started GET "/" for 127.0.0.1 at 2010-10-13 12:58:12 -0400
Processing by PagesController#index as HTML
Photo Load (0.4ms) SELECT "photos".* FROM "photos" WHERE ("photos"."featured" = 't') ORDER BY RANDOM() LIMIT 1
Rendered pages/index.html.erb within layouts/photos (48.8ms)
Completed 200 OK in 67ms (Views: 50.7ms | ActiveRecord: 0.4ms)