diff --git a/app/controllers/.categories_controller.rb.un~ b/app/controllers/.categories_controller.rb.un~ new file mode 100644 index 0000000..9f61275 Binary files /dev/null and b/app/controllers/.categories_controller.rb.un~ differ diff --git a/app/controllers/.photos_controller.rb.un~ b/app/controllers/.photos_controller.rb.un~ index f210b11..91b5f93 100644 Binary files a/app/controllers/.photos_controller.rb.un~ and b/app/controllers/.photos_controller.rb.un~ differ diff --git a/app/controllers/categories_controller.rb b/app/controllers/categories_controller.rb new file mode 100644 index 0000000..63d227a --- /dev/null +++ b/app/controllers/categories_controller.rb @@ -0,0 +1,84 @@ +class CategoriesController < ApplicationController + layout "photos" + # GET /categories + # GET /categories.xml + def index + @categories = Category.all + + respond_to do |format| + format.html # index.html.erb + format.xml { render :xml => @categories } + end + end + + # GET /categories/1 + # GET /categories/1.xml + def show + @category = Category.find(params[:id]) + + respond_to do |format| + format.html # show.html.erb + format.xml { render :xml => @category } + end + end + + # GET /categories/new + # GET /categories/new.xml + def new + @category = Category.new + + respond_to do |format| + format.html # new.html.erb + format.xml { render :xml => @category } + end + end + + # GET /categories/1/edit + def edit + @category = Category.find(params[:id]) + end + + # POST /categories + # POST /categories.xml + def create + @category = Category.new(params[:category]) + + respond_to do |format| + if @category.save + format.html { redirect_to(@category, :notice => 'Category was successfully created.') } + format.xml { render :xml => @category, :status => :created, :location => @category } + else + format.html { render :action => "new" } + format.xml { render :xml => @category.errors, :status => :unprocessable_entity } + end + end + end + + # PUT /categories/1 + # PUT /categories/1.xml + def update + @category = Category.find(params[:id]) + + respond_to do |format| + if @category.update_attributes(params[:category]) + format.html { redirect_to(@category, :notice => 'Category was successfully updated.') } + format.xml { head :ok } + else + format.html { render :action => "edit" } + format.xml { render :xml => @category.errors, :status => :unprocessable_entity } + end + end + end + + # DELETE /categories/1 + # DELETE /categories/1.xml + def destroy + @category = Category.find(params[:id]) + @category.destroy + + respond_to do |format| + format.html { redirect_to(categories_url) } + format.xml { head :ok } + end + end +end diff --git a/app/controllers/photos_controller.rb b/app/controllers/photos_controller.rb index e803897..97975e0 100644 --- a/app/controllers/photos_controller.rb +++ b/app/controllers/photos_controller.rb @@ -1,10 +1,16 @@ class PhotosController < ApplicationController def new @photo = Photo.new + @categories = Category.find(:all).map { |c| [c.name, c.id] } end def index - @photos = Photo.find(:all) + if params[:category_id] + @category = Category.find_by_id(params[:category_id]) + @photos = Photo.find(:all, :conditions => { :category_id => params[:category_id] }) + else + @photos = Photo.find(:all) + end end def create diff --git a/app/helpers/categories_helper.rb b/app/helpers/categories_helper.rb new file mode 100644 index 0000000..e06f315 --- /dev/null +++ b/app/helpers/categories_helper.rb @@ -0,0 +1,2 @@ +module CategoriesHelper +end diff --git a/app/models/.photo.rb.un~ b/app/models/.photo.rb.un~ index 0491728..73a28e3 100644 Binary files a/app/models/.photo.rb.un~ and b/app/models/.photo.rb.un~ differ diff --git a/app/models/photo.rb b/app/models/photo.rb index fa477bb..698a23d 100644 --- a/app/models/photo.rb +++ b/app/models/photo.rb @@ -1,5 +1,22 @@ +require 'exifr' + class Photo < ActiveRecord::Base belongs_to :category - has_attached_file :photo, :styles => { :large => "1024x1024>", :thumb => "140x140#", :admin_thumb => "40x40#" } + has_attached_file :photo, :styles => { :original => "1024x1024>", + :size11 => "308x308#", + :size8 => "224x224#", + :size5 => "140x140#", + :size3 => "84x84#", + :size2 => "56x56#" } + + validates_presence_of :category + + before_post_process :get_exif + +private + def get_exif + exif = EXIFR::JPEG.new(photo.queued_for_write[:original].path) + self.description = exif.image_description + end end diff --git a/app/views/categories/.edit.html.erb.un~ b/app/views/categories/.edit.html.erb.un~ new file mode 100644 index 0000000..137d97c Binary files /dev/null and b/app/views/categories/.edit.html.erb.un~ differ diff --git a/app/views/categories/.index.html.erb.un~ b/app/views/categories/.index.html.erb.un~ new file mode 100644 index 0000000..a65991e Binary files /dev/null and b/app/views/categories/.index.html.erb.un~ differ diff --git a/app/views/categories/.new.html.erb.un~ b/app/views/categories/.new.html.erb.un~ new file mode 100644 index 0000000..d6f2b00 Binary files /dev/null and b/app/views/categories/.new.html.erb.un~ differ diff --git a/app/views/categories/edit.html.erb b/app/views/categories/edit.html.erb new file mode 100644 index 0000000..4e7a083 --- /dev/null +++ b/app/views/categories/edit.html.erb @@ -0,0 +1,28 @@ +

Editing category

+ +<% form_for(@category) do |f| %> + <%= f.error_messages %> + +

+ <%= f.label :name %>
+ <%= f.text_field :name %> +

+

+ <%= f.label :description %>
+ <%= f.text_area :description %> +

+

+ <%= f.label :photo_id %>
+ <%= f.text_field :photo_id %> +

+

+ <%= f.label :base_colour %>
+ <%= f.text_field :base_colour %> +

+

+ <%= f.submit 'Update' %> +

+<% end %> + +<%= link_to 'Show', @category %> | +<%= link_to 'Back', categories_path %> diff --git a/app/views/categories/index.html.erb b/app/views/categories/index.html.erb new file mode 100644 index 0000000..28add6b --- /dev/null +++ b/app/views/categories/index.html.erb @@ -0,0 +1,14 @@ +
+ +<% @categories.each do |category| %> +
+
+ <%= link_to '

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

', category_photos_path(category) %> +
+
+<% end %> + +
+
+ +
diff --git a/app/views/categories/new.html.erb b/app/views/categories/new.html.erb new file mode 100644 index 0000000..b336283 --- /dev/null +++ b/app/views/categories/new.html.erb @@ -0,0 +1,27 @@ +

New category

+ +<% form_for(@category) do |f| %> + <%= f.error_messages %> + +

+ <%= f.label :name %>
+ <%= f.text_field :name %> +

+

+ <%= f.label :description %>
+ <%= f.text_area :description %> +

+

+ <%= f.label :photo_id %>
+ <%= f.text_field :photo_id %> +

+

+ <%= f.label :base_colour %>
+ <%= f.text_field :base_colour %> +

+

+ <%= f.submit 'Create' %> +

+<% end %> + +<%= link_to 'Back', categories_path %> diff --git a/app/views/categories/show.html.erb b/app/views/categories/show.html.erb new file mode 100644 index 0000000..56aeefd --- /dev/null +++ b/app/views/categories/show.html.erb @@ -0,0 +1,18 @@ +

+ Name: + <%=h @category.name %> +

+ +

+ Description: + <%=h @category.description %> +

+ +

+ Photo: + <%=h @category.photo_id %> +

+ + +<%= link_to 'Edit', edit_category_path(@category) %> | +<%= link_to 'Back', categories_path %> \ No newline at end of file diff --git a/app/views/layouts/categories.html.erb b/app/views/layouts/categories.html.erb new file mode 100644 index 0000000..76dd042 --- /dev/null +++ b/app/views/layouts/categories.html.erb @@ -0,0 +1,17 @@ + + + + + + Categories: <%= controller.action_name %> + <%= stylesheet_link_tag 'scaffold' %> + + + +

<%= notice %>

+ +<%= yield %> + + + diff --git a/app/views/photos/.index.html.erb.un~ b/app/views/photos/.index.html.erb.un~ index 606d495..35800b1 100644 Binary files a/app/views/photos/.index.html.erb.un~ and b/app/views/photos/.index.html.erb.un~ differ diff --git a/app/views/photos/.new.html.erb.un~ b/app/views/photos/.new.html.erb.un~ index 3604504..df09c9c 100644 Binary files a/app/views/photos/.new.html.erb.un~ and b/app/views/photos/.new.html.erb.un~ differ diff --git a/app/views/photos/.show.html.erb.un~ b/app/views/photos/.show.html.erb.un~ index 31de59c..11ca487 100644 Binary files a/app/views/photos/.show.html.erb.un~ and b/app/views/photos/.show.html.erb.un~ differ diff --git a/app/views/photos/index.html.erb b/app/views/photos/index.html.erb index 5e027cf..607e77e 100644 --- a/app/views/photos/index.html.erb +++ b/app/views/photos/index.html.erb @@ -1,5 +1,11 @@ +<% if @category %> +
+

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

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

+

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

<%= submit_tag 'Upload' %>

diff --git a/app/views/photos/show.html.erb b/app/views/photos/show.html.erb index fb5359c..dda8b77 100644 --- a/app/views/photos/show.html.erb +++ b/app/views/photos/show.html.erb @@ -1 +1 @@ -<%= link_to image_tag(@photo.photo.url(:thumb)), @photo.photo.url(:large) %> +<%= link_to image_tag(@photo.photo.url(:size11)), @photo.photo.url %> diff --git a/config/routes.rb b/config/routes.rb index ab8f4b4..5b8ff67 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,7 +1,4 @@ ActionController::Routing::Routes.draw do |map| - - map.resources :photos - # The priority is based upon order of creation: first created -> highest priority. # Sample of regular route: @@ -41,6 +38,9 @@ ActionController::Routing::Routes.draw do |map| # Install the default routes as the lowest priority. # Note: These default routes make all actions in every controller accessible via GET requests. You should # consider removing or commenting them out if you're using named routes and resources. + map.resources :categories, :has_many => :photos + map.resources :photos + map.connect ':controller/:action/:id' map.connect ':controller/:action/:id.:format' end diff --git a/db/development.sqlite3 b/db/development.sqlite3 index 14e427b..42c02bd 100644 Binary files a/db/development.sqlite3 and b/db/development.sqlite3 differ diff --git a/db/migrate/.20101008101157_add_photo_to_category.rb.un~ b/db/migrate/.20101008101157_add_photo_to_category.rb.un~ new file mode 100644 index 0000000..e6817d9 Binary files /dev/null and b/db/migrate/.20101008101157_add_photo_to_category.rb.un~ differ diff --git a/db/migrate/.20101008103053_add_details_to_photo.rb.un~ b/db/migrate/.20101008103053_add_details_to_photo.rb.un~ new file mode 100644 index 0000000..50a6663 Binary files /dev/null and b/db/migrate/.20101008103053_add_details_to_photo.rb.un~ differ diff --git a/db/migrate/.20101008105348_add_colour_to_category.rb.un~ b/db/migrate/.20101008105348_add_colour_to_category.rb.un~ new file mode 100644 index 0000000..99ddbbb Binary files /dev/null and b/db/migrate/.20101008105348_add_colour_to_category.rb.un~ differ diff --git a/db/migrate/.20101008122736_add_sort_orders.rb.un~ b/db/migrate/.20101008122736_add_sort_orders.rb.un~ new file mode 100644 index 0000000..1c12cc0 Binary files /dev/null and b/db/migrate/.20101008122736_add_sort_orders.rb.un~ differ diff --git a/db/migrate/20101008101157_add_photo_to_category.rb b/db/migrate/20101008101157_add_photo_to_category.rb new file mode 100644 index 0000000..0bbb3cc --- /dev/null +++ b/db/migrate/20101008101157_add_photo_to_category.rb @@ -0,0 +1,9 @@ +class AddPhotoToCategory < ActiveRecord::Migration + def self.up + add_column :categories, :photo_id, :integer + end + + def self.down + remove_column :categories, :photo_id + end +end diff --git a/db/migrate/20101008103053_add_details_to_photo.rb b/db/migrate/20101008103053_add_details_to_photo.rb new file mode 100644 index 0000000..d68bba0 --- /dev/null +++ b/db/migrate/20101008103053_add_details_to_photo.rb @@ -0,0 +1,11 @@ +class AddDetailsToPhoto < ActiveRecord::Migration + def self.up + add_column :photos, :title, :string + add_column :photos, :description, :text + end + + def self.down + remove_column :photos, :title + remove_column :photos, :description + end +end diff --git a/db/migrate/20101008105348_add_colour_to_category.rb b/db/migrate/20101008105348_add_colour_to_category.rb new file mode 100644 index 0000000..47e163f --- /dev/null +++ b/db/migrate/20101008105348_add_colour_to_category.rb @@ -0,0 +1,9 @@ +class AddColourToCategory < ActiveRecord::Migration + def self.up + add_column :categories, :base_colour, :string + end + + def self.down + remove_column :categories, :base_colour + end +end diff --git a/db/migrate/20101008122736_add_sort_orders.rb b/db/migrate/20101008122736_add_sort_orders.rb new file mode 100644 index 0000000..7b5325f --- /dev/null +++ b/db/migrate/20101008122736_add_sort_orders.rb @@ -0,0 +1,11 @@ +class AddSortOrders < ActiveRecord::Migration + def self.up + add_column :photos, :sort, :integer + add_column :categories, :sort, :integer + end + + def self.down + remove_column :photos, :sort + remove_column :categories, :sort + end +end diff --git a/db/schema.rb b/db/schema.rb index 1e01403..53abffa 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -9,13 +9,16 @@ # # It's strongly recommended to check this file into your version control system. -ActiveRecord::Schema.define(:version => 20101006095457) do +ActiveRecord::Schema.define(:version => 20101008122736) do create_table "categories", :force => true do |t| t.string "name" t.text "description" t.datetime "created_at" t.datetime "updated_at" + t.integer "photo_id" + t.string "base_colour" + t.integer "sort" end create_table "photos", :force => true do |t| @@ -27,6 +30,9 @@ ActiveRecord::Schema.define(:version => 20101006095457) do t.datetime "photo_updated_at" t.datetime "created_at" t.datetime "updated_at" + t.string "title" + t.text "description" + t.integer "sort" end end diff --git a/log/development.log b/log/development.log index 73ae108..ae59182 100644 --- a/log/development.log +++ b/log/development.log @@ -1955,3 +1955,3976 @@ Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 05:35:29) [GET] Rendering template within layouts/photos Rendering photos/index Completed in 54ms (View: 49, DB: 1) | 200 OK [http://localhost/photos] + SQL (0.4ms)  SELECT name + FROM sqlite_master + WHERE type = 'table' AND NOT name = 'sqlite_sequence' + + SQL (0.1ms) SELECT version FROM schema_migrations +Migrating to CreateCategories (20101006095323) +Migrating to CreatePhotos (20101006095457) +Migrating to AddPhotoToCategory (20101008101157) + SQL (0.1ms) select sqlite_version(*) + SQL (14.7ms) ALTER TABLE "categories" ADD "photo_id" integer + SQL (0.1ms) INSERT INTO schema_migrations (version) VALUES ('20101008101157') + SQL (0.5ms)  SELECT name + FROM sqlite_master + WHERE type = 'table' AND NOT name = 'sqlite_sequence' + + SQL (0.2ms) 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("photos") + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 06:29:41) [GET] + Category Load (0.3ms) SELECT * FROM "categories"  +Rendering template within layouts/categories +Rendering categories/index +Completed in 72ms (View: 49, DB: 0) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#new (for 127.0.0.1 at 2010-10-08 06:29:44) [GET] +Rendering template within layouts/categories +Rendering categories/new +Completed in 13ms (View: 9, DB: 0) | 200 OK [http://localhost/categories/new] + + +Processing CategoriesController#create (for 127.0.0.1 at 2010-10-08 06:29:53) [POST] + Parameters: {"category"=>{"name"=>"Landscapes", "photo_id"=>"", "description"=>""}, "commit"=>"Create", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw="} + Category Create (0.4ms) INSERT INTO "categories" ("name", "created_at", "updated_at", "description", "photo_id") VALUES('Landscapes', '2010-10-08 10:29:53', '2010-10-08 10:29:53', '', NULL) +Redirected to http://localhost:3000/categories/1 +Completed in 9ms (DB: 0) | 302 Found [http://localhost/categories] + + +Processing CategoriesController#show (for 127.0.0.1 at 2010-10-08 06:29:53) [GET] + Parameters: {"id"=>"1"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = 1)  +Rendering template within layouts/categories +Rendering categories/show +Completed in 9ms (View: 5, DB: 0) | 200 OK [http://localhost/categories/1] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 06:29:55) [GET] + Category Load (0.4ms) SELECT * FROM "categories"  +Rendering template within layouts/categories +Rendering categories/index +Completed in 9ms (View: 4, DB: 0) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#new (for 127.0.0.1 at 2010-10-08 06:29:58) [GET] +Rendering template within layouts/categories +Rendering categories/new +Completed in 10ms (View: 6, DB: 0) | 200 OK [http://localhost/categories/new] + + +Processing CategoriesController#create (for 127.0.0.1 at 2010-10-08 06:30:14) [POST] + Parameters: {"category"=>{"name"=>"Close Up", "photo_id"=>"", "description"=>""}, "commit"=>"Create", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw="} + Category Create (0.4ms) INSERT INTO "categories" ("name", "created_at", "updated_at", "description", "photo_id") VALUES('Close Up', '2010-10-08 10:30:14', '2010-10-08 10:30:14', '', NULL) +Redirected to http://localhost:3000/categories/2 +Completed in 10ms (DB: 0) | 302 Found [http://localhost/categories] + + +Processing CategoriesController#show (for 127.0.0.1 at 2010-10-08 06:30:14) [GET] + Parameters: {"id"=>"2"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = 2)  +Rendering template within layouts/categories +Rendering categories/show +Completed in 7ms (View: 2, DB: 0) | 200 OK [http://localhost/categories/2] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 06:30:16) [GET] + Category Load (0.5ms) SELECT * FROM "categories"  +Rendering template within layouts/categories +Rendering categories/index +Completed in 10ms (View: 6, DB: 0) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#new (for 127.0.0.1 at 2010-10-08 06:30:17) [GET] +Rendering template within layouts/categories +Rendering categories/new +Completed in 11ms (View: 6, DB: 0) | 200 OK [http://localhost/categories/new] + + +Processing CategoriesController#create (for 127.0.0.1 at 2010-10-08 06:30:23) [POST] + Parameters: {"category"=>{"name"=>"Architecture", "photo_id"=>"", "description"=>""}, "commit"=>"Create", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw="} + Category Create (0.3ms) INSERT INTO "categories" ("name", "created_at", "updated_at", "description", "photo_id") VALUES('Architecture', '2010-10-08 10:30:23', '2010-10-08 10:30:23', '', NULL) +Redirected to http://localhost:3000/categories/3 +Completed in 9ms (DB: 0) | 302 Found [http://localhost/categories] + + +Processing CategoriesController#show (for 127.0.0.1 at 2010-10-08 06:30:23) [GET] + Parameters: {"id"=>"3"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = 3)  +Rendering template within layouts/categories +Rendering categories/show +Completed in 7ms (View: 2, DB: 0) | 200 OK [http://localhost/categories/3] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 06:30:24) [GET] + Category Load (0.5ms) SELECT * FROM "categories"  +Rendering template within layouts/categories +Rendering categories/index +Completed in 11ms (View: 7, DB: 0) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#show (for 127.0.0.1 at 2010-10-08 06:30:29) [GET] + Parameters: {"id"=>"1"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = 1)  +Rendering template within layouts/categories +Rendering categories/show +Completed in 7ms (View: 2, DB: 0) | 200 OK [http://localhost/categories/1] + + +Processing CategoriesController#show (for 127.0.0.1 at 2010-10-08 06:30:31) [GET] + Parameters: {"id"=>"1"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = 1)  +Rendering template within layouts/categories +Rendering categories/show +Completed in 7ms (View: 2, DB: 0) | 200 OK [http://localhost/categories/1] + SQL (0.4ms)  SELECT name + FROM sqlite_master + WHERE type = 'table' AND NOT name = 'sqlite_sequence' + + SQL (0.1ms) SELECT version FROM schema_migrations +Migrating to CreateCategories (20101006095323) +Migrating to CreatePhotos (20101006095457) +Migrating to AddPhotoToCategory (20101008101157) +Migrating to AddDetailsToPhoto (20101008103053) + SQL (0.1ms) select sqlite_version(*) + SQL (0.4ms) ALTER TABLE "photos" ADD "title" varchar(255) + SQL (0.1ms) ALTER TABLE "photos" ADD "description" text + SQL (0.2ms) INSERT INTO schema_migrations (version) VALUES ('20101008103053') + SQL (0.3ms)  SELECT name + FROM sqlite_master + WHERE type = 'table' AND NOT name = 'sqlite_sequence' + + SQL (0.2ms) SELECT 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("categories") + SQL (0.1ms) PRAGMA index_list("photos") + + +Processing CategoriesController#new (for 127.0.0.1 at 2010-10-08 06:48:38) [GET] +Rendering template within layouts/categories +Rendering categories/new +Completed in 83ms (View: 32, DB: 0) | 200 OK [http://localhost/categories/new] + + +Processing CategoriesController#create (for 127.0.0.1 at 2010-10-08 06:48:42) [POST] + Parameters: {"category"=>{"name"=>"Black and White", "photo_id"=>"", "description"=>""}, "commit"=>"Create", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw="} + Category Create (0.3ms) INSERT INTO "categories" ("name", "created_at", "updated_at", "description", "photo_id") VALUES('Black and White', '2010-10-08 10:48:42', '2010-10-08 10:48:42', '', NULL) +Redirected to http://localhost:3000/categories/4 +Completed in 8ms (DB: 0) | 302 Found [http://localhost/categories] + + +Processing CategoriesController#show (for 127.0.0.1 at 2010-10-08 06:48:42) [GET] + Parameters: {"id"=>"4"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = 4)  +Rendering template within layouts/categories +Rendering categories/show +Completed in 7ms (View: 2, DB: 0) | 200 OK [http://localhost/categories/4] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 06:48:44) [GET] + Category Load (0.5ms) SELECT * FROM "categories"  +Rendering template within layouts/categories +Rendering categories/index +Completed in 13ms (View: 9, DB: 1) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#new (for 127.0.0.1 at 2010-10-08 06:51:18) [GET] +Rendering template within layouts/categories +Rendering categories/new +Completed in 10ms (View: 6, DB: 0) | 200 OK [http://localhost/categories/new] + + +Processing CategoriesController#create (for 127.0.0.1 at 2010-10-08 06:51:27) [POST] + Parameters: {"category"=>{"name"=>"Flowers & Plants", "photo_id"=>"", "description"=>""}, "commit"=>"Create", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw="} + Category Create (31.1ms) INSERT INTO "categories" ("name", "created_at", "updated_at", "description", "photo_id") VALUES('Flowers & Plants', '2010-10-08 10:51:27', '2010-10-08 10:51:27', '', NULL) +Redirected to http://localhost:3000/categories/5 +Completed in 53ms (DB: 31) | 302 Found [http://localhost/categories] + + +Processing CategoriesController#show (for 127.0.0.1 at 2010-10-08 06:51:27) [GET] + Parameters: {"id"=>"5"} + Category Load (0.3ms) SELECT * FROM "categories" WHERE ("categories"."id" = 5)  +Rendering template within layouts/categories +Rendering categories/show +Completed in 19ms (View: 13, DB: 0) | 200 OK [http://localhost/categories/5] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 06:51:28) [GET] + Category Load (0.6ms) SELECT * FROM "categories"  +Rendering template within layouts/categories +Rendering categories/index +Completed in 15ms (View: 11, DB: 1) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#edit (for 127.0.0.1 at 2010-10-08 06:51:31) [GET] + Parameters: {"id"=>"4"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = 4)  +Rendering template within layouts/categories +Rendering categories/edit +Completed in 13ms (View: 9, DB: 0) | 200 OK [http://localhost/categories/4/edit] + + +Processing CategoriesController#update (for 127.0.0.1 at 2010-10-08 06:51:38) [PUT] + Parameters: {"category"=>{"name"=>"Black & White", "photo_id"=>"", "description"=>""}, "commit"=>"Update", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "id"=>"4"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = 4)  + Category Update (0.2ms) UPDATE "categories" SET "updated_at" = '2010-10-08 10:51:38', "name" = 'Black & White' WHERE "id" = 4 +Redirected to http://localhost:3000/categories/4 +Completed in 9ms (DB: 0) | 302 Found [http://localhost/categories/4] + + +Processing CategoriesController#show (for 127.0.0.1 at 2010-10-08 06:51:38) [GET] + Parameters: {"id"=>"4"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = 4)  +Rendering template within layouts/categories +Rendering categories/show +Completed in 7ms (View: 2, DB: 0) | 200 OK [http://localhost/categories/4] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 06:52:10) [GET] + Category Load (0.6ms) SELECT * FROM "categories"  +Rendering template within layouts/categories +Rendering categories/index +Completed in 44ms (View: 39, DB: 1) | 200 OK [http://localhost/categories] + 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) + SQL (0.1ms) select sqlite_version(*) + SQL (0.5ms) ALTER TABLE "categories" ADD "base_colour" varchar(255) + SQL (0.1ms) INSERT INTO schema_migrations (version) VALUES ('20101008105348') + SQL (0.4ms)  SELECT name + FROM sqlite_master + WHERE type = 'table' AND NOT name = 'sqlite_sequence' + + SQL (0.3ms) SELECT version FROM schema_migrations + SQL (0.2ms)  SELECT name + FROM sqlite_master + WHERE type = 'table' AND NOT name = 'sqlite_sequence' + + SQL (0.2ms) PRAGMA index_list("categories") + SQL (0.1ms) PRAGMA index_list("photos") + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 06:56:46) [GET] + Category Load (0.6ms) SELECT * FROM "categories"  +Rendering template within layouts/categories +Rendering categories/index +Completed in 78ms (View: 11, DB: 1) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#edit (for 127.0.0.1 at 2010-10-08 06:56:48) [GET] + Parameters: {"id"=>"1"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = 1)  +Rendering template within layouts/categories +Rendering categories/edit +Completed in 38ms (View: 33, DB: 0) | 200 OK [http://localhost/categories/1/edit] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 06:57:26) [GET] + Category Load (0.6ms) SELECT * FROM "categories"  +Rendering template within layouts/categories +Rendering categories/index +Completed in 18ms (View: 13, DB: 1) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#edit (for 127.0.0.1 at 2010-10-08 06:57:46) [GET] + Parameters: {"id"=>"1"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = 1)  +Rendering template within layouts/categories +Rendering categories/edit +Completed in 12ms (View: 7, DB: 0) | 200 OK [http://localhost/categories/1/edit] + + +Processing CategoriesController#update (for 127.0.0.1 at 2010-10-08 06:57:50) [PUT] + Parameters: {"category"=>{"name"=>"Landscapes", "base_colour"=>"#99bf00", "photo_id"=>"", "description"=>""}, "commit"=>"Update", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "id"=>"1"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = 1)  + Category Update (0.3ms) UPDATE "categories" SET "updated_at" = '2010-10-08 10:57:50', "base_colour" = '#99bf00' WHERE "id" = 1 +Redirected to http://localhost:3000/categories/1 +Completed in 9ms (DB: 0) | 302 Found [http://localhost/categories/1] + + +Processing CategoriesController#show (for 127.0.0.1 at 2010-10-08 06:57:50) [GET] + Parameters: {"id"=>"1"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = 1)  +Rendering template within layouts/categories +Rendering categories/show +Completed in 7ms (View: 2, DB: 0) | 200 OK [http://localhost/categories/1] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 06:57:52) [GET] + Category Load (0.6ms) SELECT * FROM "categories"  +Rendering template within layouts/categories +Rendering categories/index +Completed in 17ms (View: 13, DB: 1) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 06:59:17) [GET] + Category Load (0.6ms) SELECT * FROM "categories"  +Rendering template within layouts/categories +Rendering categories/index +Completed in 17ms (View: 14, DB: 1) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 06:59:42) [GET] + Category Load (0.6ms) SELECT * FROM "categories"  +Rendering template within layouts/categories +Rendering categories/index +Completed in 23ms (View: 19, DB: 1) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 07:00:25) [GET] + Category Load (0.7ms) SELECT * FROM "categories"  +Rendering template within layouts/categories +Rendering categories/index +Completed in 19ms (View: 14, DB: 1) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#edit (for 127.0.0.1 at 2010-10-08 07:00:39) [GET] + Parameters: {"id"=>"3"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = 3)  +Rendering template within layouts/categories +Rendering categories/edit +Completed in 189ms (View: 185, DB: 0) | 200 OK [http://localhost/categories/3/edit] + + +Processing CategoriesController#update (for 127.0.0.1 at 2010-10-08 07:00:41) [PUT] + Parameters: {"category"=>{"name"=>"Architecture", "base_colour"=>"#bf5e00", "photo_id"=>"", "description"=>""}, "commit"=>"Update", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "id"=>"3"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = 3)  + Category Update (17.8ms) UPDATE "categories" SET "updated_at" = '2010-10-08 11:00:41', "base_colour" = '#bf5e00' WHERE "id" = 3 +Redirected to http://localhost:3000/categories/3 +Completed in 26ms (DB: 18) | 302 Found [http://localhost/categories/3] + + +Processing CategoriesController#show (for 127.0.0.1 at 2010-10-08 07:00:42) [GET] + Parameters: {"id"=>"3"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = 3)  +Rendering template within layouts/categories +Rendering categories/show +Completed in 7ms (View: 2, DB: 0) | 200 OK [http://localhost/categories/3] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 07:00:42) [GET] + Category Load (0.6ms) SELECT * FROM "categories"  +Rendering template within layouts/categories +Rendering categories/index +Completed in 16ms (View: 12, DB: 1) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#edit (for 127.0.0.1 at 2010-10-08 07:00:55) [GET] + Parameters: {"id"=>"4"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = 4)  +Rendering template within layouts/categories +Rendering categories/edit +Completed in 11ms (View: 6, DB: 0) | 200 OK [http://localhost/categories/4/edit] + + +Processing CategoriesController#update (for 127.0.0.1 at 2010-10-08 07:00:58) [PUT] + Parameters: {"category"=>{"name"=>"Black & White", "base_colour"=>"#909090", "photo_id"=>"", "description"=>""}, "commit"=>"Update", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "id"=>"4"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = 4)  + Category Update (0.4ms) UPDATE "categories" SET "updated_at" = '2010-10-08 11:00:58', "base_colour" = '#909090' WHERE "id" = 4 +Redirected to http://localhost:3000/categories/4 +Completed in 9ms (DB: 1) | 302 Found [http://localhost/categories/4] + + +Processing CategoriesController#show (for 127.0.0.1 at 2010-10-08 07:00:58) [GET] + Parameters: {"id"=>"4"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = 4)  +Rendering template within layouts/categories +Rendering categories/show +Completed in 8ms (View: 2, DB: 0) | 200 OK [http://localhost/categories/4] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 07:00:59) [GET] + Category Load (0.6ms) SELECT * FROM "categories"  +Rendering template within layouts/categories +Rendering categories/index +Completed in 70ms (View: 66, DB: 1) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#edit (for 127.0.0.1 at 2010-10-08 07:01:28) [GET] + Parameters: {"id"=>"5"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = 5)  +Rendering template within layouts/categories +Rendering categories/edit +Completed in 12ms (View: 7, DB: 0) | 200 OK [http://localhost/categories/5/edit] + + +Processing CategoriesController#update (for 127.0.0.1 at 2010-10-08 07:01:32) [PUT] + Parameters: {"category"=>{"name"=>"Flowers & Plants", "base_colour"=>"#c73c9e", "photo_id"=>"", "description"=>""}, "commit"=>"Update", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "id"=>"5"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = 5)  + Category Update (0.3ms) UPDATE "categories" SET "updated_at" = '2010-10-08 11:01:32', "base_colour" = '#c73c9e' WHERE "id" = 5 +Redirected to http://localhost:3000/categories/5 +Completed in 10ms (DB: 0) | 302 Found [http://localhost/categories/5] + + +Processing CategoriesController#show (for 127.0.0.1 at 2010-10-08 07:01:32) [GET] + Parameters: {"id"=>"5"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = 5)  +Rendering template within layouts/categories +Rendering categories/show +Completed in 7ms (View: 2, DB: 0) | 200 OK [http://localhost/categories/5] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 07:01:34) [GET] + Category Load (0.6ms) SELECT * FROM "categories"  +Rendering template within layouts/categories +Rendering categories/index +Completed in 15ms (View: 11, DB: 1) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#edit (for 127.0.0.1 at 2010-10-08 07:01:51) [GET] + Parameters: {"id"=>"2"} + Category Load (0.3ms) SELECT * FROM "categories" WHERE ("categories"."id" = 2)  +Rendering template within layouts/categories +Rendering categories/edit +Completed in 43ms (View: 36, DB: 0) | 200 OK [http://localhost/categories/2/edit] + + +Processing CategoriesController#update (for 127.0.0.1 at 2010-10-08 07:01:54) [PUT] + Parameters: {"category"=>{"name"=>"Close Up", "base_colour"=>"#664bda", "photo_id"=>"", "description"=>""}, "commit"=>"Update", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw=", "id"=>"2"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = 2)  + Category Update (0.3ms) UPDATE "categories" SET "updated_at" = '2010-10-08 11:01:54', "base_colour" = '#664bda' WHERE "id" = 2 +Redirected to http://localhost:3000/categories/2 +Completed in 9ms (DB: 0) | 302 Found [http://localhost/categories/2] + + +Processing CategoriesController#show (for 127.0.0.1 at 2010-10-08 07:01:54) [GET] + Parameters: {"id"=>"2"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = 2)  +Rendering template within layouts/categories +Rendering categories/show +Completed in 7ms (View: 2, DB: 0) | 200 OK [http://localhost/categories/2] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 07:01:55) [GET] + Category Load (0.7ms) SELECT * FROM "categories"  +Rendering template within layouts/categories +Rendering categories/index +Completed in 16ms (View: 12, DB: 1) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 07:41:01) [GET] + Category Load (0.8ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 23ms (View: 12, DB: 1) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 07:41:28) [GET] + Category Load (0.6ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 16ms (View: 12, DB: 1) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 07:42:06) [GET] + Category Load (0.7ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 17ms (View: 12, DB: 1) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 07:42:34) [GET] + Category Load (0.6ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 16ms (View: 12, DB: 1) | 200 OK [http://localhost/categories] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 07:42:41) [GET] + Photo Load (1.2ms) SELECT * FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 133ms (View: 63, DB: 1) | 200 OK [http://localhost/photos] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 07:42:48) [GET] + Category Load (0.8ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 37ms (View: 30, DB: 1) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 07:44:21) [GET] + Category Load (0.7ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 60ms (View: 55, DB: 1) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 07:46:07) [GET] + Category Load (0.6ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 10ms (View: 6, DB: 1) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 07:46:22) [GET] + Category Load (0.6ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 10ms (View: 6, DB: 1) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 07:47:36) [GET] + Category Load (0.6ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 10ms (View: 6, DB: 1) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 07:48:21) [GET] + Category Load (0.6ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 8ms (View: 4, DB: 1) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 07:52:08) [GET] + Category Load (0.6ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 11ms (View: 7, DB: 1) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 07:52:18) [GET] + Category Load (0.6ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 10ms (View: 6, DB: 1) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 07:52:38) [GET] + Category Load (0.6ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index + +ActionView::TemplateError (undefined method `lowercase' for "Landscapes":String) on line #5 of app/views/categories/index.html.erb: +2: +3: <% @categories.each do |category| %> +4:
+5: <%=h category.name.lowercase %> +6:
+7: <% end %> +8: + + app/views/categories/index.html.erb:5 + 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 (83.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 07:53:11) [GET] + Category Load (0.6ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 10ms (View: 6, DB: 1) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 07:53:34) [GET] + Category Load (0.7ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 11ms (View: 7, DB: 1) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 07:54:07) [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 CategoriesController#index (for 127.0.0.1 at 2010-10-08 07:54:10) [GET] + Category Load (0.9ms) 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-08 07:54:17) [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 CategoriesController#index (for 127.0.0.1 at 2010-10-08 07:54:55) [GET] + Category Load (0.6ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 32ms (View: 28, DB: 1) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 07:55:07) [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-08 07:59:15) [GET] + Photo Load (1.1ms) SELECT * FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 71ms (View: 50, DB: 1) | 200 OK [http://localhost/photos] + + +Processing PhotosController#new (for 127.0.0.1 at 2010-10-08 08:06:32) [GET] +Rendering template within layouts/photos +Rendering photos/new +Completed in 14ms (View: 10, DB: 0) | 200 OK [http://localhost/photos/new] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 08:06:59) [GET] + Category Load (1.0ms) 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#new (for 127.0.0.1 at 2010-10-08 08:07:10) [GET] +Rendering template within layouts/photos +Rendering photos/new +Completed in 12ms (View: 6, DB: 0) | 200 OK [http://localhost/photos/new] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 08:11:01) [GET] + Photo Load (1.2ms) SELECT * FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 50ms (View: 44, DB: 1) | 200 OK [http://localhost/photos] + + +Processing ApplicationController#index (for 127.0.0.1 at 2010-10-08 08:11:01) [GET] + Parameters: {"1286527141"=>nil} + +ActionController::RoutingError (No route matches "/system/photos/12/thumb/Halfway%20There.jpg" with {:method=>:get}): + + +Rendering rescues/layout (not_found) + + +Processing ApplicationController#index (for 127.0.0.1 at 2010-10-08 08:11:01) [GET] + Parameters: {"1286527241"=>nil} + +ActionController::RoutingError (No route matches "/system/photos/13/thumb/Bubble%20no2.jpg" with {:method=>:get}): + + +Rendering rescues/layout (not_found) + + +Processing ApplicationController#index (for 127.0.0.1 at 2010-10-08 08:11:01) [GET] + Parameters: {"1286527256"=>nil} + +ActionController::RoutingError (No route matches "/system/photos/14/thumb/Church%20of%20Ireland%20Gate.jpg" with {:method=>:get}): + + +Rendering rescues/layout (not_found) + + +Processing ApplicationController#index (for 127.0.0.1 at 2010-10-08 08:11:01) [GET] + Parameters: {"1286527277"=>nil} + +ActionController::RoutingError (No route matches "/system/photos/15/thumb/Dragonfly.jpg" with {:method=>:get}): + + +Rendering rescues/layout (not_found) + + +Processing ApplicationController#index (for 127.0.0.1 at 2010-10-08 08:11:01) [GET] + Parameters: {"1286527290"=>nil} + +ActionController::RoutingError (No route matches "/system/photos/16/thumb/House%20through%20the%20Doorway.jpg" with {:method=>:get}): + + +Rendering rescues/layout (not_found) + + +Processing ApplicationController#index (for 127.0.0.1 at 2010-10-08 08:11:01) [GET] + Parameters: {"1286527373"=>nil} + +ActionController::RoutingError (No route matches "/system/photos/17/thumb/Croagh%20Patrick%20no3.jpg" with {:method=>:get}): + + +Rendering rescues/layout (not_found) + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 08:11:04) [GET] + Photo Load (2.0ms) SELECT * FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 31ms (View: 22, DB: 2) | 200 OK [http://localhost/photos] + + +Processing ApplicationController#index (for 127.0.0.1 at 2010-10-08 08:11:04) [GET] + Parameters: {"1286527141"=>nil} + +ActionController::RoutingError (No route matches "/system/photos/12/thumb/Halfway%20There.jpg" with {:method=>:get}): + + +Rendering rescues/layout (not_found) + + +Processing ApplicationController#index (for 127.0.0.1 at 2010-10-08 08:11:04) [GET] + Parameters: {"1286527241"=>nil} + +ActionController::RoutingError (No route matches "/system/photos/13/thumb/Bubble%20no2.jpg" with {:method=>:get}): + + +Rendering rescues/layout (not_found) + + +Processing ApplicationController#index (for 127.0.0.1 at 2010-10-08 08:11:04) [GET] + Parameters: {"1286527256"=>nil} + +ActionController::RoutingError (No route matches "/system/photos/14/thumb/Church%20of%20Ireland%20Gate.jpg" with {:method=>:get}): + + +Rendering rescues/layout (not_found) + + +Processing ApplicationController#index (for 127.0.0.1 at 2010-10-08 08:11:04) [GET] + Parameters: {"1286527277"=>nil} + +ActionController::RoutingError (No route matches "/system/photos/15/thumb/Dragonfly.jpg" with {:method=>:get}): + + +Rendering rescues/layout (not_found) + + +Processing ApplicationController#index (for 127.0.0.1 at 2010-10-08 08:11:04) [GET] + Parameters: {"1286527290"=>nil} + +ActionController::RoutingError (No route matches "/system/photos/16/thumb/House%20through%20the%20Doorway.jpg" with {:method=>:get}): + + +Rendering rescues/layout (not_found) + + +Processing ApplicationController#index (for 127.0.0.1 at 2010-10-08 08:11:05) [GET] + Parameters: {"1286527373"=>nil} + +ActionController::RoutingError (No route matches "/system/photos/17/thumb/Croagh%20Patrick%20no3.jpg" with {:method=>:get}): + + +Rendering rescues/layout (not_found) + + +Processing ApplicationController#index (for 127.0.0.1 at 2010-10-08 08:11:05) [GET] + Parameters: {"1286473694"=>nil} + +ActionController::RoutingError (No route matches "/system/photos/3/thumb/Buttercup.jpg" with {:method=>:get}): + + +Rendering rescues/layout (not_found) + + +Processing ApplicationController#index (for 127.0.0.1 at 2010-10-08 08:11:05) [GET] + Parameters: {"1286473899"=>nil} + +ActionController::RoutingError (No route matches "/system/photos/4/thumb/Bell%20Tower.jpg" with {:method=>:get}): + + +Rendering rescues/layout (not_found) + + +Processing ApplicationController#index (for 127.0.0.1 at 2010-10-08 08:11:05) [GET] + Parameters: {"1286473911"=>nil} + +ActionController::RoutingError (No route matches "/system/photos/5/thumb/Church%20of%20Ireland.jpg" with {:method=>:get}): + + +Rendering rescues/layout (not_found) + + +Processing ApplicationController#index (for 127.0.0.1 at 2010-10-08 08:11:05) [GET] + Parameters: {"1286473925"=>nil} + +ActionController::RoutingError (No route matches "/system/photos/6/thumb/Emerald%20Panarama.jpg" with {:method=>:get}): + + +Rendering rescues/layout (not_found) + + +Processing ApplicationController#index (for 127.0.0.1 at 2010-10-08 08:11:05) [GET] + Parameters: {"1286474939"=>nil} + +ActionController::RoutingError (No route matches "/system/photos/7/thumb/Croagh%20Patrick%20Sunset.jpg" with {:method=>:get}): + + +Rendering rescues/layout (not_found) + + +Processing ApplicationController#index (for 127.0.0.1 at 2010-10-08 08:11:05) [GET] + Parameters: {"1286475730"=>nil} + +ActionController::RoutingError (No route matches "/system/photos/8/thumb/Cross.jpg" with {:method=>:get}): + + +Rendering rescues/layout (not_found) + + +Processing ApplicationController#index (for 127.0.0.1 at 2010-10-08 08:11:05) [GET] + Parameters: {"1286527141"=>nil} + +ActionController::RoutingError (No route matches "/system/photos/12/thumb/Halfway%20There.jpg" with {:method=>:get}): + + +Rendering rescues/layout (not_found) + + +Processing ApplicationController#index (for 127.0.0.1 at 2010-10-08 08:11:05) [GET] + Parameters: {"1286527241"=>nil} + +ActionController::RoutingError (No route matches "/system/photos/13/thumb/Bubble%20no2.jpg" with {:method=>:get}): + + +Rendering rescues/layout (not_found) + + +Processing ApplicationController#index (for 127.0.0.1 at 2010-10-08 08:11:05) [GET] + Parameters: {"1286527256"=>nil} + +ActionController::RoutingError (No route matches "/system/photos/14/thumb/Church%20of%20Ireland%20Gate.jpg" with {:method=>:get}): + + +Rendering rescues/layout (not_found) + + +Processing ApplicationController#index (for 127.0.0.1 at 2010-10-08 08:11:05) [GET] + Parameters: {"1286527277"=>nil} + +ActionController::RoutingError (No route matches "/system/photos/15/thumb/Dragonfly.jpg" with {:method=>:get}): + + +Rendering rescues/layout (not_found) + + +Processing ApplicationController#index (for 127.0.0.1 at 2010-10-08 08:11:05) [GET] + Parameters: {"1286475742"=>nil} + +ActionController::RoutingError (No route matches "/system/photos/9/thumb/Light%20and%20Shade.jpg" with {:method=>:get}): + + +Rendering rescues/layout (not_found) + + +Processing ApplicationController#index (for 127.0.0.1 at 2010-10-08 08:11:05) [GET] + Parameters: {"1286475749"=>nil} + +ActionController::RoutingError (No route matches "/system/photos/10/thumb/Moody%20Me.jpg" with {:method=>:get}): + + +Rendering rescues/layout (not_found) + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 08:11:21) [GET] + Photo Load (0.3ms) SELECT * FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 7ms (View: 2, DB: 0) | 200 OK [http://localhost/photos] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 08:11:27) [GET] + Category Load (0.9ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 32ms (View: 26, DB: 1) | 200 OK [http://localhost/categories] + + +Processing PhotosController#new (for 127.0.0.1 at 2010-10-08 08:11:57) [GET] +Rendering template within layouts/photos +Rendering photos/new +Completed in 52ms (View: 45, DB: 0) | 200 OK [http://localhost/photos/new] + + +Processing PhotosController#create (for 127.0.0.1 at 2010-10-08 08:12:09) [POST] + Parameters: {"photo"=>{"photo"=>#}, "commit"=>"Upload", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw="} +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-1gabyue-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-1gabyue-0.jpg[0]' -resize "x308" -crop "308x308+89+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-1gabyue-020101008-62042-19vv0nb-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-1gabyue-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-1gabyue-0.jpg[0]' -resize "x224" -crop "224x224+64+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-1gabyue-020101008-62042-1n98u0a-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-1gabyue-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-1gabyue-0.jpg[0]' -resize "x140" -crop "140x140+40+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-1gabyue-020101008-62042-h4aagg-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-1gabyue-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-1gabyue-0.jpg[0]' -resize "x84" -crop "84x84+24+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-1gabyue-020101008-62042-v5tqeq-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-1gabyue-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-1gabyue-0.jpg[0]' -resize "1024x1024>" '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-1gabyue-020101008-62042-1545x6x-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-1gabyue-020101008-62042-1545x6x-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-1gabyue-020101008-62042-1545x6x-0[0]' -resize "x56" -crop "56x56+16+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-1gabyue-020101008-62042-1545x6x-020101008-62042-1hl6xxu-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", "category_id", "photo_updated_at", "description") VALUES(113067, '2010-10-08 12:12:13', NULL, NULL, 'Buttercup.jpg', '2010-10-08 12:12:13', 'image/jpeg', NULL, '2010-10-08 12:12:09', NULL) +[paperclip] Saving attachments. +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/18/size11/Buttercup.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/18/size8/Buttercup.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/18/size5/Buttercup.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/18/size3/Buttercup.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/18/original/Buttercup.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/18/size2/Buttercup.jpg +Redirected to http://localhost:3000/photos/18 +Completed in 4238ms (DB: 0) | 302 Found [http://localhost/photos] + + +Processing PhotosController#show (for 127.0.0.1 at 2010-10-08 08:12:13) [GET] + Parameters: {"id"=>"18"} + Photo Load (0.2ms) SELECT * FROM "photos" WHERE ("photos"."id" = 18)  +Rendering template within layouts/photos +Rendering photos/show +Completed in 9ms (View: 4, DB: 0) | 200 OK [http://localhost/photos/18] + + +Processing ApplicationController#index (for 127.0.0.1 at 2010-10-08 08:12:14) [GET] + Parameters: {"1286539929"=>nil} + +ActionController::RoutingError (No route matches "/system/photos/18/thumb/Buttercup.jpg" with {:method=>:get}): + + +Rendering rescues/layout (not_found) + + +Processing ApplicationController#index (for 127.0.0.1 at 2010-10-08 08:12:14) [GET] + Parameters: {"1286539929"=>nil} + +ActionController::RoutingError (No route matches "/system/photos/18/thumb/Buttercup.jpg" with {:method=>:get}): + + +Rendering rescues/layout (not_found) + + +Processing PhotosController#show (for 127.0.0.1 at 2010-10-08 08:12:40) [GET] + Parameters: {"id"=>"18"} + Photo Load (0.2ms) SELECT * FROM "photos" WHERE ("photos"."id" = 18)  +Rendering template within layouts/photos +Rendering photos/show +ERROR: compiling _run_erb_app47views47photos47show46html46erb RAISED compile error +/Users/danbee/Sites/rails/photos/app/views/photos/show.html.erb:1: syntax error, unexpected ';', expecting ')' +...11), @photo.photo.url ).to_s); @output_buffer.concat "\n" + ^ +Function body: def _run_erb_app47views47photos47show46html46erb(local_assigns) + old_output_buffer = output_buffer;;@output_buffer = ''; __in_erb_template=true ; @output_buffer.concat(( link_to image_tag(@photo.photo.url(:size11), @photo.photo.url ).to_s); @output_buffer.concat "\n" +; @output_buffer + ensure + self.output_buffer = old_output_buffer + end +Backtrace: /Users/danbee/Sites/rails/photos/app/views/photos/show.html.erb:5: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' +/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' +/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/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 +/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' +/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require' +script/server:3 + +ActionView::TemplateError (compile error +/Users/danbee/Sites/rails/photos/app/views/photos/show.html.erb:1: syntax error, unexpected ';', expecting ')' +...11), @photo.photo.url ).to_s); @output_buffer.concat "\n" + ^) on line #1 of app/views/photos/show.html.erb: +1: <%= link_to image_tag(@photo.photo.url(:size11), @photo.photo.url %> + + app/views/photos/show.html.erb:5:in `compile!' + +Rendered rescues/_trace (84.6ms) +Rendered rescues/_request_and_response (0.4ms) +Rendering rescues/layout (internal_server_error) + + +Processing PhotosController#show (for 127.0.0.1 at 2010-10-08 08:12:55) [GET] + Parameters: {"id"=>"18"} + Photo Load (0.2ms) SELECT * FROM "photos" WHERE ("photos"."id" = 18)  +Rendering template within layouts/photos +Rendering photos/show +Completed in 12ms (View: 7, DB: 0) | 200 OK [http://localhost/photos/18] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 08:13:22) [GET] + Photo Load (0.5ms) SELECT * FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 10ms (View: 5, DB: 0) | 200 OK [http://localhost/photos/] + + +Processing ApplicationController#index (for 127.0.0.1 at 2010-10-08 08:13:22) [GET] + Parameters: {"1286539929"=>nil} + +ActionController::RoutingError (No route matches "/system/photos/18/thumb/Buttercup.jpg" with {:method=>:get}): + + +Rendering rescues/layout (not_found) + + +Processing ApplicationController#index (for 127.0.0.1 at 2010-10-08 08:13:22) [GET] + Parameters: {"1286539929"=>nil} + +ActionController::RoutingError (No route matches "/system/photos/18/thumb/Buttercup.jpg" with {:method=>:get}): + + +Rendering rescues/layout (not_found) + + +Processing ApplicationController#index (for 127.0.0.1 at 2010-10-08 08:13:24) [GET] + Parameters: {"1286539929"=>nil} + +ActionController::RoutingError (No route matches "/system/photos/18/large/Buttercup.jpg" with {:method=>:get}): + + +Rendering rescues/layout (not_found) + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 08:13:42) [GET] + Photo Load (0.5ms) SELECT * FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 12ms (View: 8, DB: 1) | 200 OK [http://localhost/photos/] + + +Processing PhotosController#new (for 127.0.0.1 at 2010-10-08 08:16:29) [GET] +Rendering template within layouts/photos +Rendering photos/new + +ActionView::TemplateError (uninitialized constant Photo::CATEGORIES) on line #11 of app/views/photos/new.html.erb: +8:

+9:

+10: <%= f.label :category %> +11: <%= f.select :category, Photo::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.5ms) +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 08:18:08) [GET] +Rendering template within layouts/photos +Rendering photos/new + +ActionView::TemplateError (undefined method `select_tag' for #) on line #11 of app/views/photos/new.html.erb: +8:

+9:

+10: <%= f.label :category %> +11: <%= f.select_tag :category %> +12:

+13:

+14: <%= submit_tag 'Upload' %> + + app/views/photos/new.html.erb:11 + app/views/photos/new.html.erb:3 + +Rendered rescues/_trace (26.3ms) +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 08:21:40) [GET] +Rendering template within layouts/photos +Rendering photos/new + +ActionView::TemplateError (undefined method `select_tag' for #) on line #11 of app/views/photos/new.html.erb: +8:

+9:

+10: <%= f.label :category %> +11: <%= f.select_tag :category %> +12:

+13:

+14: <%= submit_tag 'Upload' %> + + app/views/photos/new.html.erb:11 + app/views/photos/new.html.erb:3 + +Rendered rescues/_trace (85.4ms) +Rendered rescues/_request_and_response (0.2ms) +Rendering rescues/layout (internal_server_error) + + +Processing PhotosController#new (for 127.0.0.1 at 2010-10-08 08:22:27) [GET] +Rendering template within layouts/photos +Rendering photos/new + +ActionView::TemplateError (wrong number of arguments (1 for 2)) on line #11 of app/views/photos/new.html.erb: +8:

+9:

+10: <%= f.label :category %> +11: <%= f.select :category %> +12:

+13:

+14: <%= submit_tag 'Upload' %> + + app/views/photos/new.html.erb:11:in `select' + app/views/photos/new.html.erb:11 + app/views/photos/new.html.erb:3 + +Rendered rescues/_trace (25.7ms) +Rendered rescues/_request_and_response (0.2ms) +Rendering rescues/layout (internal_server_error) + + +Processing PhotosController#new (for 127.0.0.1 at 2010-10-08 08:23:31) [GET] +Rendering template within layouts/photos +Rendering photos/new + +ActionView::TemplateError (uninitialized constant ActionView::Base::CompiledTemplates::Categories) on line #11 of app/views/photos/new.html.erb: +8:

+9:

+10: <%= f.label :category %> +11: <%= f.select :category, Categories.find(:all) %> +12:

+13:

+14: <%= submit_tag 'Upload' %> + + app/views/photos/new.html.erb:11 + app/views/photos/new.html.erb:3 + +Rendered rescues/_trace (26.0ms) +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 08:23:50) [GET] +Rendering template within layouts/photos +Rendering photos/new + Category Load (0.4ms) SELECT * FROM "categories"  +Completed in 17ms (View: 12, DB: 0) | 200 OK [http://localhost/photos/new] + + +Processing PhotosController#new (for 127.0.0.1 at 2010-10-08 08:25:03) [GET] +Rendering template within layouts/photos +Rendering photos/new + +ActionView::TemplateError (You have a nil object when you didn't expect it! +You might have expected an instance of Array. +The error occurred while evaluating nil.inject) on line #11 of app/views/photos/new.html.erb: +8:

+9:

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

+13:

+14: <%= submit_tag 'Upload' %> + + app/views/photos/new.html.erb:11 + app/views/photos/new.html.erb:3 + +Rendered rescues/_trace (37.1ms) +Rendered rescues/_request_and_response (0.3ms) +Rendering rescues/layout (internal_server_error) + + +Processing ApplicationController#new (for 127.0.0.1 at 2010-10-08 08:25:47) [GET] + +SyntaxError (/Users/danbee/Sites/rails/photos/app/controllers/photos_controller.rb:5: syntax error, unexpected kEND, expecting '}' +/Users/danbee/Sites/rails/photos/app/controllers/photos_controller.rb:24: syntax error, unexpected kEND, expecting '}'): + + +Rendered rescues/_trace (18.5ms) +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 08:25:57) [GET] + Category Load (0.3ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering photos/new +Completed in 75ms (View: 6, DB: 0) | 200 OK [http://localhost/photos/new] + 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) + SQL (0.1ms) select sqlite_version(*) + SQL (0.4ms) ALTER TABLE "photos" ADD "sort" integer + SQL (0.2ms) ALTER TABLE "categories" ADD "sort" integer + SQL (0.1ms) INSERT INTO schema_migrations (version) VALUES ('20101008122736') + SQL (0.2ms)  SELECT name + FROM sqlite_master + WHERE type = 'table' AND NOT name = 'sqlite_sequence' + + SQL (0.2ms) SELECT 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("categories") + SQL (0.0ms) PRAGMA index_list("photos") + + +Processing PhotosController#create (for 127.0.0.1 at 2010-10-08 08:29:37) [POST] + Parameters: {"photo"=>{"photo"=>#, "category"=>"2"}, "commit"=>"Upload", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw="} +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-17gxn0j-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-17gxn0j-0.jpg[0]' -resize "x308" -crop "308x308+89+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-17gxn0j-020101008-62042-1nc6u01-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-17gxn0j-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-17gxn0j-0.jpg[0]' -resize "x224" -crop "224x224+64+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-17gxn0j-020101008-62042-1wcu26w-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-17gxn0j-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-17gxn0j-0.jpg[0]' -resize "x140" -crop "140x140+40+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-17gxn0j-020101008-62042-wgh3c9-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-17gxn0j-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-17gxn0j-0.jpg[0]' -resize "x84" -crop "84x84+24+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-17gxn0j-020101008-62042-149w3og-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-17gxn0j-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-17gxn0j-0.jpg[0]' -resize "1024x1024>" '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-17gxn0j-020101008-62042-196xlvw-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-17gxn0j-020101008-62042-196xlvw-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-17gxn0j-020101008-62042-196xlvw-0[0]' -resize "x56" -crop "56x56+16+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-17gxn0j-020101008-62042-196xlvw-020101008-62042-pr4frc-0' 2>/dev/null + +ActiveRecord::AssociationTypeMismatch (Category(#2175204920) expected, got String(#2148246520)): + app/controllers/photos_controller.rb:12:in `new' + app/controllers/photos_controller.rb:12:in `create' + +Rendered rescues/_trace (35.2ms) +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 08:30:21) [GET] + Category Load (0.7ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering photos/new +Completed in 37ms (View: 26, DB: 1) | 200 OK [http://localhost/photos/new] + + +Processing PhotosController#create (for 127.0.0.1 at 2010-10-08 08:30:23) [POST] + Parameters: {"photo"=>{"photo"=>#, "category_id"=>"1"}, "commit"=>"Upload", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw="} +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-kbn7me-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-kbn7me-0.jpg[0]' -resize "x308" -crop "308x308+89+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-kbn7me-020101008-62042-qywpck-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-kbn7me-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-kbn7me-0.jpg[0]' -resize "x224" -crop "224x224+64+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-kbn7me-020101008-62042-16py9zu-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-kbn7me-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-kbn7me-0.jpg[0]' -resize "x140" -crop "140x140+40+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-kbn7me-020101008-62042-1jt13v8-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-kbn7me-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-kbn7me-0.jpg[0]' -resize "x84" -crop "84x84+24+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-kbn7me-020101008-62042-1r2nttd-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-kbn7me-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-kbn7me-0.jpg[0]' -resize "1024x1024>" '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-kbn7me-020101008-62042-1d10x2s-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-kbn7me-020101008-62042-1d10x2s-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-kbn7me-020101008-62042-1d10x2s-0[0]' -resize "x56" -crop "56x56+16+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-kbn7me-020101008-62042-1d10x2s-020101008-62042-kjss77-0' 2>/dev/null + Category Load (0.7ms) SELECT * FROM "categories" WHERE ("categories"."id" = 1)  + Photo Create (0.3ms) INSERT INTO "photos" ("photo_file_size", "created_at", "title", "flickr_url", "photo_file_name", "updated_at", "photo_content_type", "category_id", "photo_updated_at", "description", "sort") VALUES(113067, '2010-10-08 12:30:26', NULL, NULL, 'Buttercup.jpg', '2010-10-08 12:30:26', 'image/jpeg', 1, '2010-10-08 12:30:23', NULL, NULL) +[paperclip] Saving attachments. +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/19/size11/Buttercup.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/19/size8/Buttercup.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/19/size5/Buttercup.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/19/size3/Buttercup.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/19/original/Buttercup.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/19/size2/Buttercup.jpg +Redirected to http://localhost:3000/photos/19 +Completed in 3856ms (DB: 1) | 302 Found [http://localhost/photos] + + +Processing PhotosController#show (for 127.0.0.1 at 2010-10-08 08:30:27) [GET] + Parameters: {"id"=>"19"} + Photo Load (0.2ms) SELECT * FROM "photos" WHERE ("photos"."id" = 19)  +Rendering template within layouts/photos +Rendering photos/show +Completed in 9ms (View: 4, DB: 0) | 200 OK [http://localhost/photos/19] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 08:31:18) [GET] + Category Load (0.6ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 64ms (View: 13, DB: 1) | 200 OK [http://localhost/categories] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 08:31:42) [GET] + Photo Load (0.8ms) SELECT * FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 13ms (View: 6, DB: 1) | 200 OK [http://localhost/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 08:34:26) [GET] + Photo Load (0.3ms) SELECT * FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 6ms (View: 2, DB: 0) | 200 OK [http://localhost/photos] + + +Processing PhotosController#new (for 127.0.0.1 at 2010-10-08 08:34:29) [GET] + Category Load (0.4ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering photos/new +Completed in 98ms (View: 35, DB: 0) | 200 OK [http://localhost/photos/new] + + +Processing PhotosController#create (for 127.0.0.1 at 2010-10-08 08:35:06) [POST] + Parameters: {"photo"=>{"photo"=>#, "category_id"=>"1"}, "commit"=>"Upload", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw="} +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-3t46ze-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-3t46ze-0.jpg[0]' -resize "308x" -crop "308x308+0+77" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-3t46ze-020101008-62042-16go1zy-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-3t46ze-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-3t46ze-0.jpg[0]' -resize "224x" -crop "224x224+0+56" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-3t46ze-020101008-62042-129jzx9-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-3t46ze-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-3t46ze-0.jpg[0]' -resize "140x" -crop "140x140+0+35" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-3t46ze-020101008-62042-tzbygt-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-3t46ze-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-3t46ze-0.jpg[0]' -resize "84x" -crop "84x84+0+21" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-3t46ze-020101008-62042-15fk4x8-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-3t46ze-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-3t46ze-0.jpg[0]' -resize "1024x1024>" '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-3t46ze-020101008-62042-1s0c6ss-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-3t46ze-020101008-62042-1s0c6ss-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-3t46ze-020101008-62042-1s0c6ss-0[0]' -resize "56x" -crop "56x56+0+13" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-3t46ze-020101008-62042-1s0c6ss-020101008-62042-p052wv-0' 2>/dev/null + Category Load (0.4ms) SELECT * FROM "categories" WHERE ("categories"."id" = 1)  + Photo Create (0.3ms) INSERT INTO "photos" ("photo_file_size", "created_at", "title", "flickr_url", "photo_file_name", "updated_at", "photo_content_type", "category_id", "photo_updated_at", "description", "sort") VALUES(389062, '2010-10-08 12:35:09', NULL, NULL, 'Croagh Patrick no1.jpg', '2010-10-08 12:35:09', 'image/jpeg', 1, '2010-10-08 12:35:06', NULL, NULL) +[paperclip] Saving attachments. +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/20/size11/Croagh Patrick no1.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/20/size8/Croagh Patrick no1.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/20/size5/Croagh Patrick no1.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/20/size3/Croagh Patrick no1.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/20/original/Croagh Patrick no1.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/20/size2/Croagh Patrick no1.jpg +Redirected to http://localhost:3000/photos/20 +Completed in 3574ms (DB: 1) | 302 Found [http://localhost/photos] + + +Processing PhotosController#show (for 127.0.0.1 at 2010-10-08 08:35:09) [GET] + Parameters: {"id"=>"20"} + Photo Load (0.2ms) SELECT * FROM "photos" WHERE ("photos"."id" = 20)  +Rendering template within layouts/photos +Rendering photos/show +Completed in 68ms (View: 63, DB: 0) | 200 OK [http://localhost/photos/20] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 08:35:15) [GET] + Photo Load (0.5ms) SELECT * FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 11ms (View: 6, DB: 0) | 200 OK [http://localhost/photos] + + +Processing PhotosController#new (for 127.0.0.1 at 2010-10-08 08:35:34) [GET] + Category Load (0.6ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering photos/new +Completed in 44ms (View: 33, DB: 1) | 200 OK [http://localhost/photos/new] + + +Processing PhotosController#create (for 127.0.0.1 at 2010-10-08 08:35:40) [POST] + Parameters: {"photo"=>{"photo"=>#, "category_id"=>"3"}, "commit"=>"Upload", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw="} +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-1qc5pik-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-1qc5pik-0.jpg[0]' -resize "x308" -crop "308x308+60+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-1qc5pik-020101008-62042-96jbl5-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-1qc5pik-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-1qc5pik-0.jpg[0]' -resize "x224" -crop "224x224+43+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-1qc5pik-020101008-62042-kijfuv-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-1qc5pik-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-1qc5pik-0.jpg[0]' -resize "x140" -crop "140x140+27+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-1qc5pik-020101008-62042-4sg5ij-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-1qc5pik-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-1qc5pik-0.jpg[0]' -resize "x84" -crop "84x84+16+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-1qc5pik-020101008-62042-iznpft-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-1qc5pik-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-1qc5pik-0.jpg[0]' -resize "1024x1024>" '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-1qc5pik-020101008-62042-1irrc1t-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-1qc5pik-020101008-62042-1irrc1t-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-1qc5pik-020101008-62042-1irrc1t-0[0]' -resize "x56" -crop "56x56+10+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-1qc5pik-020101008-62042-1irrc1t-020101008-62042-k1gv17-0' 2>/dev/null + Category Load (0.4ms) SELECT * FROM "categories" WHERE ("categories"."id" = 3)  + Photo Create (0.3ms) INSERT INTO "photos" ("photo_file_size", "created_at", "title", "flickr_url", "photo_file_name", "updated_at", "photo_content_type", "category_id", "photo_updated_at", "description", "sort") VALUES(362111, '2010-10-08 12:35:42', NULL, NULL, 'Bell Tower.jpg', '2010-10-08 12:35:42', 'image/jpeg', 3, '2010-10-08 12:35:40', NULL, NULL) +[paperclip] Saving attachments. +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/21/size11/Bell Tower.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/21/size8/Bell Tower.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/21/size5/Bell Tower.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/21/size3/Bell Tower.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/21/original/Bell Tower.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/21/size2/Bell Tower.jpg +Redirected to http://localhost:3000/photos/21 +Completed in 2856ms (DB: 1) | 302 Found [http://localhost/photos] + + +Processing PhotosController#show (for 127.0.0.1 at 2010-10-08 08:35:43) [GET] + Parameters: {"id"=>"21"} + Photo Load (0.2ms) SELECT * FROM "photos" WHERE ("photos"."id" = 21)  +Rendering template within layouts/photos +Rendering photos/show +Completed in 10ms (View: 4, DB: 0) | 200 OK [http://localhost/photos/21] + + +Processing PhotosController#new (for 127.0.0.1 at 2010-10-08 08:35:46) [GET] + Category Load (0.6ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering photos/new +Completed in 19ms (View: 7, DB: 1) | 200 OK [http://localhost/photos/new] + + +Processing PhotosController#create (for 127.0.0.1 at 2010-10-08 08:35:55) [POST] + Parameters: {"photo"=>{"photo"=>#, "category_id"=>"2"}, "commit"=>"Upload", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw="} +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-1tjt2om-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-1tjt2om-0.jpg[0]' -resize "x308" -crop "308x308+89+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-1tjt2om-020101008-62042-1oqlig9-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-1tjt2om-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-1tjt2om-0.jpg[0]' -resize "x224" -crop "224x224+64+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-1tjt2om-020101008-62042-7liygu-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-1tjt2om-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-1tjt2om-0.jpg[0]' -resize "x140" -crop "140x140+40+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-1tjt2om-020101008-62042-4umred-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-1tjt2om-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-1tjt2om-0.jpg[0]' -resize "x84" -crop "84x84+24+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-1tjt2om-020101008-62042-1h4or57-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-1tjt2om-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-1tjt2om-0.jpg[0]' -resize "1024x1024>" '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-1tjt2om-020101008-62042-17hfx02-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-1tjt2om-020101008-62042-17hfx02-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-1tjt2om-020101008-62042-17hfx02-0[0]' -resize "x56" -crop "56x56+16+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-1tjt2om-020101008-62042-17hfx02-020101008-62042-15ozut5-0' 2>/dev/null + Category Load (0.8ms) SELECT * FROM "categories" WHERE ("categories"."id" = 2)  + Photo Create (0.4ms) INSERT INTO "photos" ("photo_file_size", "created_at", "title", "flickr_url", "photo_file_name", "updated_at", "photo_content_type", "category_id", "photo_updated_at", "description", "sort") VALUES(113067, '2010-10-08 12:35:58', NULL, NULL, 'Buttercup.jpg', '2010-10-08 12:35:58', 'image/jpeg', 2, '2010-10-08 12:35:55', NULL, NULL) +[paperclip] Saving attachments. +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/22/size11/Buttercup.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/22/size8/Buttercup.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/22/size5/Buttercup.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/22/size3/Buttercup.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/22/original/Buttercup.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/22/size2/Buttercup.jpg +Redirected to http://localhost:3000/photos/22 +Completed in 3169ms (DB: 1) | 302 Found [http://localhost/photos] + + +Processing PhotosController#show (for 127.0.0.1 at 2010-10-08 08:35:58) [GET] + Parameters: {"id"=>"22"} + Photo Load (0.5ms) SELECT * FROM "photos" WHERE ("photos"."id" = 22)  +Rendering template within layouts/photos +Rendering photos/show +Completed in 13ms (View: 6, DB: 1) | 200 OK [http://localhost/photos/22] + + +Processing PhotosController#new (for 127.0.0.1 at 2010-10-08 08:36:00) [GET] + Category Load (0.4ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering photos/new +Completed in 18ms (View: 7, DB: 0) | 200 OK [http://localhost/photos/new] + + +Processing PhotosController#create (for 127.0.0.1 at 2010-10-08 08:36:05) [POST] + Parameters: {"photo"=>{"photo"=>#, "category_id"=>"4"}, "commit"=>"Upload", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw="} +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-1ppv3s5-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-1ppv3s5-0.jpg[0]' -resize "x308" -crop "308x308+77+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-1ppv3s5-020101008-62042-1ppn119-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-1ppv3s5-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-1ppv3s5-0.jpg[0]' -resize "x224" -crop "224x224+56+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-1ppv3s5-020101008-62042-sgdzqj-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-1ppv3s5-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-1ppv3s5-0.jpg[0]' -resize "x140" -crop "140x140+35+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-1ppv3s5-020101008-62042-1rpznuy-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-1ppv3s5-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-1ppv3s5-0.jpg[0]' -resize "x84" -crop "84x84+21+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-1ppv3s5-020101008-62042-1io17xi-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-1ppv3s5-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-1ppv3s5-0.jpg[0]' -resize "1024x1024>" '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-1ppv3s5-020101008-62042-jp7rsn-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-1ppv3s5-020101008-62042-jp7rsn-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-1ppv3s5-020101008-62042-jp7rsn-0[0]' -resize "x56" -crop "56x56+13+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-1ppv3s5-020101008-62042-jp7rsn-020101008-62042-ijmlvm-0' 2>/dev/null + Category Load (0.9ms) SELECT * FROM "categories" WHERE ("categories"."id" = 4)  + Photo Create (0.4ms) INSERT INTO "photos" ("photo_file_size", "created_at", "title", "flickr_url", "photo_file_name", "updated_at", "photo_content_type", "category_id", "photo_updated_at", "description", "sort") VALUES(206182, '2010-10-08 12:36:08', NULL, NULL, 'Cadover Horses.jpg', '2010-10-08 12:36:08', 'image/jpeg', 4, '2010-10-08 12:36:05', NULL, NULL) +[paperclip] Saving attachments. +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/23/size11/Cadover Horses.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/23/size8/Cadover Horses.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/23/size5/Cadover Horses.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/23/size3/Cadover Horses.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/23/original/Cadover Horses.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/23/size2/Cadover Horses.jpg +Redirected to http://localhost:3000/photos/23 +Completed in 3456ms (DB: 1) | 302 Found [http://localhost/photos] + + +Processing PhotosController#show (for 127.0.0.1 at 2010-10-08 08:36:08) [GET] + Parameters: {"id"=>"23"} + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."id" = 23)  +Rendering template within layouts/photos +Rendering photos/show +Completed in 14ms (View: 6, DB: 0) | 200 OK [http://localhost/photos/23] + + +Processing PhotosController#new (for 127.0.0.1 at 2010-10-08 08:36:12) [GET] + Category Load (0.4ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering photos/new +Completed in 16ms (View: 6, DB: 0) | 200 OK [http://localhost/photos/new] + + +Processing PhotosController#create (for 127.0.0.1 at 2010-10-08 08:36:22) [POST] + Parameters: {"photo"=>{"photo"=>#, "category_id"=>"2"}, "commit"=>"Upload", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw="} +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-v13tg0-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-v13tg0-0.jpg[0]' -resize "x308" -crop "308x308+82+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-v13tg0-020101008-62042-1fwmofr-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-v13tg0-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-v13tg0-0.jpg[0]' -resize "x224" -crop "224x224+59+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-v13tg0-020101008-62042-1vkt1nh-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-v13tg0-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-v13tg0-0.jpg[0]' -resize "x140" -crop "140x140+37+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-v13tg0-020101008-62042-1fw777k-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-v13tg0-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-v13tg0-0.jpg[0]' -resize "x84" -crop "84x84+22+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-v13tg0-020101008-62042-1sl98pj-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-v13tg0-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-v13tg0-0.jpg[0]' -resize "1024x1024>" '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-v13tg0-020101008-62042-4x3cob-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-v13tg0-020101008-62042-4x3cob-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-v13tg0-020101008-62042-4x3cob-0[0]' -resize "x56" -crop "56x56+14+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-v13tg0-020101008-62042-4x3cob-020101008-62042-1qtqc8a-0' 2>/dev/null + Category Load (0.3ms) SELECT * FROM "categories" WHERE ("categories"."id" = 2)  + Photo Create (0.3ms) INSERT INTO "photos" ("photo_file_size", "created_at", "title", "flickr_url", "photo_file_name", "updated_at", "photo_content_type", "category_id", "photo_updated_at", "description", "sort") VALUES(262475, '2010-10-08 12:36:24', NULL, NULL, 'Dragonfly.jpg', '2010-10-08 12:36:24', 'image/jpeg', 2, '2010-10-08 12:36:22', NULL, NULL) +[paperclip] Saving attachments. +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/24/size11/Dragonfly.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/24/size8/Dragonfly.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/24/size5/Dragonfly.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/24/size3/Dragonfly.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/24/original/Dragonfly.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/24/size2/Dragonfly.jpg +Redirected to http://localhost:3000/photos/24 +Completed in 2007ms (DB: 1) | 302 Found [http://localhost/photos] + + +Processing PhotosController#show (for 127.0.0.1 at 2010-10-08 08:36:24) [GET] + Parameters: {"id"=>"24"} + Photo Load (0.2ms) SELECT * FROM "photos" WHERE ("photos"."id" = 24)  +Rendering template within layouts/photos +Rendering photos/show +Completed in 12ms (View: 5, DB: 0) | 200 OK [http://localhost/photos/24] + + +Processing PhotosController#new (for 127.0.0.1 at 2010-10-08 08:36:26) [GET] + Category Load (0.4ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering photos/new +Completed in 17ms (View: 6, DB: 0) | 200 OK [http://localhost/photos/new] + + +Processing PhotosController#create (for 127.0.0.1 at 2010-10-08 08:36:52) [POST] + Parameters: {"photo"=>{"photo"=>#, "category_id"=>"1"}, "commit"=>"Upload", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw="} +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-8v8u49-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-8v8u49-0.jpg[0]' -resize "x308" -crop "308x308+163+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-8v8u49-020101008-62042-v51r9z-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-8v8u49-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-8v8u49-0.jpg[0]' -resize "x224" -crop "224x224+119+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-8v8u49-020101008-62042-1ddtvlc-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-8v8u49-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-8v8u49-0.jpg[0]' -resize "x140" -crop "140x140+74+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-8v8u49-020101008-62042-i247cw-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-8v8u49-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-8v8u49-0.jpg[0]' -resize "x84" -crop "84x84+44+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-8v8u49-020101008-62042-dg6x55-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-8v8u49-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-8v8u49-0.jpg[0]' -resize "1024x1024>" '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-8v8u49-020101008-62042-9tsrty-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-8v8u49-020101008-62042-9tsrty-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-8v8u49-020101008-62042-9tsrty-0[0]' -resize "x56" -crop "56x56+29+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-8v8u49-020101008-62042-9tsrty-020101008-62042-5qs1wj-0' 2>/dev/null + Category Load (0.8ms) SELECT * FROM "categories" WHERE ("categories"."id" = 1)  + Photo Create (0.3ms) INSERT INTO "photos" ("photo_file_size", "created_at", "title", "flickr_url", "photo_file_name", "updated_at", "photo_content_type", "category_id", "photo_updated_at", "description", "sort") VALUES(134145, '2010-10-08 12:36:54', NULL, NULL, 'Croagh Patrick no3.jpg', '2010-10-08 12:36:54', 'image/jpeg', 1, '2010-10-08 12:36:52', NULL, NULL) +[paperclip] Saving attachments. +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/25/size11/Croagh Patrick no3.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/25/size8/Croagh Patrick no3.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/25/size5/Croagh Patrick no3.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/25/size3/Croagh Patrick no3.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/25/original/Croagh Patrick no3.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/25/size2/Croagh Patrick no3.jpg +Redirected to http://localhost:3000/photos/25 +Completed in 2442ms (DB: 1) | 302 Found [http://localhost/photos] + + +Processing PhotosController#show (for 127.0.0.1 at 2010-10-08 08:36:54) [GET] + Parameters: {"id"=>"25"} + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."id" = 25)  +Rendering template within layouts/photos +Rendering photos/show +Completed in 10ms (View: 4, DB: 0) | 200 OK [http://localhost/photos/25] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 08:36:56) [GET] + Photo Load (0.8ms) 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-08 08:54:26) [GET] + Photo Load (0.9ms) SELECT * FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 44ms (View: 38, DB: 1) | 200 OK [http://localhost/photos] + + +Processing PhotosController#new (for 127.0.0.1 at 2010-10-08 08:54:29) [GET] + Category Load (0.5ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering photos/new +Completed in 85ms (View: 71, DB: 1) | 200 OK [http://localhost/photos/new] + + +Processing PhotosController#create (for 127.0.0.1 at 2010-10-08 08:55:11) [POST] + Parameters: {"photo"=>{"photo"=>#, "category_id"=>"1"}, "commit"=>"Upload", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw="} +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-1nitd17-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-1nitd17-0.jpg[0]' -resize "308x" -crop "308x308+0+76" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-1nitd17-020101008-62042-1iqwvow-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-1nitd17-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-1nitd17-0.jpg[0]' -resize "224x" -crop "224x224+0+55" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-1nitd17-020101008-62042-1dephlu-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-1nitd17-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-1nitd17-0.jpg[0]' -resize "140x" -crop "140x140+0+34" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-1nitd17-020101008-62042-1v48aj3-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-1nitd17-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-1nitd17-0.jpg[0]' -resize "84x" -crop "84x84+0+20" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-1nitd17-020101008-62042-6h7o5-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-1nitd17-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-1nitd17-0.jpg[0]' -resize "1024x1024>" '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-1nitd17-020101008-62042-qxkr36-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-1nitd17-020101008-62042-qxkr36-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-1nitd17-020101008-62042-qxkr36-0[0]' -resize "56x" -crop "56x56+0+13" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-62042-1nitd17-020101008-62042-qxkr36-020101008-62042-elfnsm-0' 2>/dev/null + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = 1)  + Photo Create (0.3ms) INSERT INTO "photos" ("photo_file_size", "created_at", "title", "flickr_url", "photo_file_name", "updated_at", "photo_content_type", "category_id", "photo_updated_at", "description", "sort") VALUES(241628, '2010-10-08 12:55:13', 'A Title', NULL, 'namitha1.jpg', '2010-10-08 12:55:13', 'image/jpeg', 1, '2010-10-08 12:55:11', NULL, NULL) +[paperclip] Saving attachments. +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/26/size11/namitha1.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/26/size8/namitha1.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/26/size5/namitha1.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/26/size3/namitha1.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/26/original/namitha1.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/26/size2/namitha1.jpg +Redirected to http://localhost:3000/photos/26 +Completed in 1884ms (DB: 1) | 302 Found [http://localhost/photos] + + +Processing PhotosController#show (for 127.0.0.1 at 2010-10-08 08:55:13) [GET] + Parameters: {"id"=>"26"} + Photo Load (0.2ms) SELECT * FROM "photos" WHERE ("photos"."id" = 26)  +Rendering template within layouts/photos +Rendering photos/show +Completed in 54ms (View: 49, DB: 0) | 200 OK [http://localhost/photos/26] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 08:55:17) [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-08 08:56:15) [GET] + Photo Load (0.8ms) SELECT * FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 175ms (View: 168, DB: 1) | 200 OK [http://localhost/photos] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 09:01:02) [GET] + Category Load (1.1ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 36ms (View: 24, DB: 1) | 200 OK [http://localhost/categories] + + +Processing PhotosController#new (for 127.0.0.1 at 2010-10-08 10:15:58) [GET] + Category Load (0.5ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering photos/new +Completed in 128ms (View: 111, DB: 1) | 200 OK [http://localhost/photos/new] + + +Processing PhotosController#create (for 127.0.0.1 at 2010-10-08 10:16:15) [POST] + Parameters: {"photo"=>{"photo"=>#, "category_id"=>"4"}, "commit"=>"Upload", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw="} + +NameError (uninitialized constant Photo::EXIFR): + app/models/photo.rb:17:in `get_exif' + app/controllers/photos_controller.rb:12:in `new' + app/controllers/photos_controller.rb:12:in `create' + +Rendered rescues/_trace (32.8ms) +Rendered rescues/_request_and_response (0.5ms) +Rendering rescues/layout (internal_server_error) + + +Processing PhotosController#create (for 127.0.0.1 at 2010-10-08 10:16:37) [POST] + Parameters: {"photo"=>{"photo"=>#, "category_id"=>"4"}, "commit"=>"Upload", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw="} + +MissingSourceFile (no such file to load -- exifr): + app/models/photo.rb:1 + app/controllers/photos_controller.rb:12:in `create' + +Rendered rescues/_trace (31.8ms) +Rendered rescues/_request_and_response (0.5ms) +Rendering rescues/layout (internal_server_error) + + +Processing PhotosController#create (for 127.0.0.1 at 2010-10-08 10:18:27) [POST] + Parameters: {"photo"=>{"photo"=>#, "category_id"=>"4"}, "commit"=>"Upload", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw="} + +NameError (undefined local variable or method `attachment' for #): + app/models/photo.rb:19:in `get_exif' + app/controllers/photos_controller.rb:12:in `new' + app/controllers/photos_controller.rb:12:in `create' + +Rendered rescues/_trace (29.8ms) +Rendered rescues/_request_and_response (1.1ms) +Rendering rescues/layout (internal_server_error) + + +Processing PhotosController#create (for 127.0.0.1 at 2010-10-08 10:18:51) [POST] + Parameters: {"photo"=>{"photo"=>#, "category_id"=>"4"}, "commit"=>"Upload", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw="} + +NoMethodError (undefined method `title' for #): + exifr (1.0.3) lib/jpeg.rb:56:in `method_missing' + app/models/photo.rb:20:in `get_exif' + app/controllers/photos_controller.rb:12:in `new' + app/controllers/photos_controller.rb:12:in `create' + +Rendered rescues/_trace (77.5ms) +Rendered rescues/_request_and_response (0.4ms) +Rendering rescues/layout (internal_server_error) + + +Processing PhotosController#create (for 127.0.0.1 at 2010-10-08 10:19:07) [POST] + Parameters: {"photo"=>{"photo"=>#, "category_id"=>"4"}, "commit"=>"Upload", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw="} + +NoMethodError (undefined method `Title' for #): + exifr (1.0.3) lib/jpeg.rb:56:in `method_missing' + app/models/photo.rb:20:in `get_exif' + app/controllers/photos_controller.rb:12:in `new' + app/controllers/photos_controller.rb:12:in `create' + +Rendered rescues/_trace (91.8ms) +Rendered rescues/_request_and_response (0.4ms) +Rendering rescues/layout (internal_server_error) + + +Processing PhotosController#create (for 127.0.0.1 at 2010-10-08 10:25:07) [POST] + Parameters: {"photo"=>{"photo"=>#, "category_id"=>"4"}, "commit"=>"Upload", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw="} + +NoMethodError (undefined method `image_title' for #): + exifr (1.0.3) lib/jpeg.rb:56:in `method_missing' + app/models/photo.rb:20:in `get_exif' + app/controllers/photos_controller.rb:12:in `new' + app/controllers/photos_controller.rb:12:in `create' + +Rendered rescues/_trace (100.4ms) +Rendered rescues/_request_and_response (1.2ms) +Rendering rescues/layout (internal_server_error) + + +Processing PhotosController#create (for 127.0.0.1 at 2010-10-08 10:55:35) [POST] + Parameters: {"photo"=>{"photo"=>#, "category_id"=>"4"}, "commit"=>"Upload", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw="} + +NoMethodError (undefined method `image_title' for #): + exifr (1.0.3) lib/jpeg.rb:56:in `method_missing' + app/models/photo.rb:20:in `get_exif' + app/controllers/photos_controller.rb:12:in `new' + app/controllers/photos_controller.rb:12:in `create' + +Rendered rescues/_trace (921.4ms) +Rendered rescues/_request_and_response (0.7ms) +Rendering rescues/layout (internal_server_error) + + +Processing PhotosController#create (for 127.0.0.1 at 2010-10-08 10:55:45) [POST] + Parameters: {"photo"=>{"photo"=>#, "category_id"=>"4"}, "commit"=>"Upload", "authenticity_token"=>"MRMA5jN8F+L8Qu/qxudBGU2lL/82P68aMbmoNbKb5zw="} +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-75171-wlz87h-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-75171-wlz87h-0.jpg[0]' -resize "x224" -crop "224x224+56+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-75171-wlz87h-020101008-75171-1a2wkim-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-75171-wlz87h-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-75171-wlz87h-0.jpg[0]' -resize "x140" -crop "140x140+35+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-75171-wlz87h-020101008-75171-1tlfnak-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-75171-wlz87h-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-75171-wlz87h-0.jpg[0]' -resize "x84" -crop "84x84+21+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-75171-wlz87h-020101008-75171-15c999c-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-75171-wlz87h-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-75171-wlz87h-0.jpg[0]' -resize "x56" -crop "56x56+14+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-75171-wlz87h-020101008-75171-gwsbld-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-75171-wlz87h-0.jpg[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-75171-wlz87h-0.jpg[0]' -resize "1024x1024>" '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-75171-wlz87h-020101008-75171-1899ffx-0' 2>/dev/null +[paperclip] identify -format %wx%h '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-75171-wlz87h-020101008-75171-1899ffx-0[0]' 2>/dev/null +[paperclip] convert '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-75171-wlz87h-020101008-75171-1899ffx-0[0]' -resize "x308" -crop "308x308+76+0" +repage '/var/folders/B2/B2qStFgNHj4CjwOiJRPQ+++++TI/-Tmp-/stream20101008-75171-wlz87h-020101008-75171-1899ffx-020101008-75171-d9lnxj-0' 2>/dev/null + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = 4)  + Photo Create (0.4ms) INSERT INTO "photos" ("photo_file_size", "created_at", "title", "flickr_url", "photo_file_name", "updated_at", "photo_content_type", "category_id", "photo_updated_at", "description", "sort") VALUES(238370, '2010-10-08 14:55:49', NULL, NULL, 'Famine Monument at Murrisk.jpg', '2010-10-08 14:55:49', 'image/jpeg', 4, '2010-10-08 14:55:45', 'Detail of the ship monument at the base of Croagh Patrick, Co. Mayo.', NULL) +[paperclip] Saving attachments. +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/27/size8/Famine Monument at Murrisk.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/27/size5/Famine Monument at Murrisk.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/27/size3/Famine Monument at Murrisk.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/27/size2/Famine Monument at Murrisk.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/27/original/Famine Monument at Murrisk.jpg +[paperclip] saving /Users/danbee/Sites/rails/photos/public/system/photos/27/size11/Famine Monument at Murrisk.jpg +Redirected to http://localhost:3000/photos/27 +Completed in 4605ms (DB: 1) | 302 Found [http://localhost/photos] + + +Processing PhotosController#show (for 127.0.0.1 at 2010-10-08 10:55:49) [GET] + Parameters: {"id"=>"27"} + Photo Load (0.2ms) SELECT * FROM "photos" WHERE ("photos"."id" = 27)  +Rendering template within layouts/photos +Rendering photos/show +Completed in 210ms (View: 204, DB: 0) | 200 OK [http://localhost/photos/27] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 10:55:53) [GET] + Photo Load (1.1ms) SELECT * FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 64ms (View: 55, DB: 1) | 200 OK [http://localhost/photos/] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 11:00:15) [GET] + Category Load (0.7ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 66ms (View: 40, DB: 1) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 11:00:57) [GET] + Category Load (0.6ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 30ms (View: 25, DB: 1) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 11:01:48) [GET] + Category Load (1.1ms) 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-08 11:02:06) [GET] + Category Load (0.7ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 57ms (View: 4, DB: 1) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 11:02:17) [GET] + Category Load (0.6ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 8ms (View: 4, DB: 1) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 11:03:10) [GET] + Category Load (0.6ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 10ms (View: 6, DB: 1) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 11:09:53) [GET] + Category Load (0.7ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 28ms (View: 23, DB: 1) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 11:10:13) [GET] + Category Load (0.6ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 11ms (View: 6, DB: 1) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 11:10:47) [GET] + Category Load (0.6ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 10ms (View: 6, DB: 1) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 11:11:19) [GET] + Category Load (0.6ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 11ms (View: 6, DB: 1) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 11:11:33) [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 CategoriesController#index (for 127.0.0.1 at 2010-10-08 11:12:15) [GET] + Category Load (0.7ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 23ms (View: 3, DB: 1) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 11:12:53) [GET] + Category Load (0.7ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 62ms (View: 4, DB: 1) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 11:12:54) [GET] + Category Load (0.9ms) 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-08 11:13:34) [GET] + Category Load (0.6ms) 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 11:14:27) [GET] + Category Load (0.8ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 8ms (View: 3, DB: 1) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 11:15:00) [GET] + Category Load (0.6ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 29ms (View: 25, DB: 1) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 11:15:38) [GET] + Category Load (0.6ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 62ms (View: 6, DB: 1) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 11:16:13) [GET] + Category Load (0.6ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 11ms (View: 7, DB: 1) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 11:16:30) [GET] + Category Load (0.7ms) 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-08 11:17:26) [GET] + Category Load (0.7ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 19ms (View: 7, DB: 1) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 11:17:50) [GET] + Category Load (0.7ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 8ms (View: 4, DB: 1) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 11:18:10) [GET] + Category Load (0.6ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 8ms (View: 3, DB: 1) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 11:18:38) [GET] + Category Load (0.6ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 8ms (View: 4, DB: 1) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 11:18:53) [GET] + Category Load (0.6ms) 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 11:19:44) [GET] + Category Load (0.6ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 11ms (View: 7, DB: 1) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#new (for 127.0.0.1 at 2010-10-08 11:25:52) [GET] +Rendering template within layouts/photos +Rendering categories/new +Completed in 99ms (View: 93, DB: 0) | 200 OK [http://localhost/categories/new] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 11:40:22) [GET] + Category Load (0.6ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 12ms (View: 7, DB: 1) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 11:40:59) [GET] + Category Load (0.6ms) 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 11:41:02) [GET] + Category Load (0.6ms) 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 11:41:12) [GET] + Category Load (0.6ms) 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 11:41:44) [GET] + Category Load (0.6ms) 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 11:42:04) [GET] + Category Load (0.6ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 8ms (View: 4, DB: 1) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 11:42:19) [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 11:43:38) [GET] + Category Load (0.6ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +ERROR: compiling _run_erb_app47views47categories47index46html46erb RAISED compile error +/Users/danbee/Sites/rails/photos/app/views/categories/index.html.erb:6: syntax error, unexpected tIDENTIFIER, expecting kDO or '{' or '(' +...t(( link_tag '

'+h category.name.downcase+'

', catego... + ^ +/Users/danbee/Sites/rails/photos/app/views/categories/index.html.erb:6: syntax error, unexpected ',', expecting ')' +...ategory.name.downcase+'', category ).to_s); @output_buf... + ^ +Function body: def _run_erb_app47views47categories47index46html46erb(local_assigns) + old_output_buffer = output_buffer;;@output_buffer = ''; __in_erb_template=true ; @output_buffer.concat "
\n\n" + +; @categories.each do |category| ; @output_buffer.concat "\n
\n\t\t
\n\t " +; @output_buffer.concat(( link_tag '

'+h category.name.downcase+'

', category ).to_s); @output_buffer.concat "\n\t\t
\n
\n" + + +; end ; @output_buffer.concat "\n\n
\n
\n\n
\n" + + + + + +; @output_buffer + ensure + self.output_buffer = old_output_buffer + end +Backtrace: /Users/danbee/Sites/rails/photos/app/views/categories/index.html.erb:18: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' +/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' +/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:942: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/mime_responds.rb:135:in `send' +/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/mime_responds.rb:135:in `custom' +/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/mime_responds.rb:179:in `call' +/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/mime_responds.rb:179:in `respond' +/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/mime_responds.rb:173:in `each' +/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/mime_responds.rb:173:in `respond' +/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/mime_responds.rb:107:in `respond_to' +/Users/danbee/Sites/rails/photos/app/controllers/categories_controller.rb:8:in `index' +/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/base.rb:1331:in `send' +/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/base.rb:1331: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/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 +/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' +/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require' +script/server:3 + +ActionView::TemplateError (compile error +/Users/danbee/Sites/rails/photos/app/views/categories/index.html.erb:6: syntax error, unexpected tIDENTIFIER, expecting kDO or '{' or '(' +...t(( link_tag '

'+h category.name.downcase+'

', catego... + ^ +/Users/danbee/Sites/rails/photos/app/views/categories/index.html.erb:6: syntax error, unexpected ',', expecting ')' +...ategory.name.downcase+'', category ).to_s); @output_buf... + ^) on line #6 of app/views/categories/index.html.erb: +3: <% @categories.each do |category| %> +4:
+5:
+6: <%= link_tag '

'+h category.name.downcase+'

', category %> +7:
+8:
+9: <% end %> + + app/views/categories/index.html.erb:18:in `compile!' + app/controllers/categories_controller.rb:8:in `index' + +Rendered rescues/_trace (81.3ms) +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 11:43:50) [GET] + Category Load (0.7ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index + +ActionView::TemplateError (undefined method `link_tag' for #) on line #6 of app/views/categories/index.html.erb: +3: <% @categories.each do |category| %> +4:
+5:
+6: <%= link_tag '

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

', 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.8ms) +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 11:43:56) [GET] + Category Load (0.6ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 69ms (View: 65, DB: 1) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#show (for 127.0.0.1 at 2010-10-08 11:43:59) [GET] + Parameters: {"id"=>"1"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = 1)  +Rendering template within layouts/photos +Rendering categories/show +Completed in 27ms (View: 21, DB: 0) | 200 OK [http://localhost/categories/1] + + +Processing CategoriesController#show (for 127.0.0.1 at 2010-10-08 11:44:04) [GET] + Parameters: {"id"=>"1"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = 1)  +Rendering template within layouts/photos +Rendering categories/show +Completed in 9ms (View: 3, DB: 0) | 200 OK [http://localhost/categories/1] + + +Processing CategoriesController#show (for 127.0.0.1 at 2010-10-08 11:44:07) [GET] + Parameters: {"id"=>"1"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = 1)  +Rendering template within layouts/photos +Rendering categories/show +Completed in 8ms (View: 3, DB: 0) | 200 OK [http://localhost/categories/1] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 11:44:39) [GET] + Category Load (0.6ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 10ms (View: 6, DB: 1) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 11:44:50) [GET] + Category Load (0.6ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 71ms (View: 56, DB: 1) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#show (for 127.0.0.1 at 2010-10-08 11:45:01) [GET] + Parameters: {"id"=>"1"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = 1)  +Rendering template within layouts/photos +Rendering categories/show +Completed in 8ms (View: 3, DB: 0) | 200 OK [http://localhost/categories/1] + + +Processing CategoriesController#show (for 127.0.0.1 at 2010-10-08 11:45:12) [GET] + Parameters: {"id"=>"1"} + Category Load (0.3ms) SELECT * FROM "categories" WHERE ("categories"."id" = 1)  +Rendering template within layouts/photos +Rendering categories/show +Completed in 9ms (View: 3, DB: 0) | 200 OK [http://localhost/categories/1] + + +Processing CategoriesController#1 (for 127.0.0.1 at 2010-10-08 11:45:15) [GET] + Parameters: {"id"=>"photos"} + +ActionController::UnknownAction (No action responded to 1. Actions: create, destroy, edit, index, new, show, and update): + + +Rendering rescues/layout (not_found) + + +Processing CategoriesController#show (for 127.0.0.1 at 2010-10-08 11:46:58) [GET] + Parameters: {"id"=>"2"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = 2)  +Rendering template within layouts/photos +Rendering categories/show +Completed in 8ms (View: 3, DB: 0) | 200 OK [http://localhost/categories/2] + + +Processing CategoriesController#show (for 127.0.0.1 at 2010-10-08 11:53:40) [GET] + Parameters: {"id"=>"1"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = 1)  +Rendering template within layouts/photos +Rendering categories/show +Completed in 8ms (View: 3, DB: 0) | 200 OK [http://localhost/categories/1] + + +Processing CategoriesController#show (for 127.0.0.1 at 2010-10-08 11:53:42) [GET] + Parameters: {"id"=>"1"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = 1)  +Rendering template within layouts/photos +Rendering categories/show +Completed in 8ms (View: 3, DB: 0) | 200 OK [http://localhost/categories/1] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 11:54:41) [GET] + Category Load (0.6ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 10ms (View: 5, DB: 1) | 200 OK [http://localhost/categories] + + +Processing ApplicationController#index (for 127.0.0.1 at 2010-10-08 11:54:44) [GET] + +ActionController::RoutingError (No route matches "/categories1/photos" with {:method=>:get}): + + +Rendering rescues/layout (not_found) + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 11:54:46) [GET] + Parameters: {"category_id"=>"1"} + Photo Load (0.9ms) SELECT * FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 20ms (View: 12, DB: 1) | 200 OK [http://localhost/categories/1/photos] + + +Processing PhotosController#new (for 127.0.0.1 at 2010-10-08 11:54:59) [GET] + Parameters: {"category_id"=>"1"} + Category Load (0.4ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering photos/new +Completed in 25ms (View: 15, DB: 0) | 200 OK [http://localhost/categories/1/photos/new] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 11:55:09) [GET] + Parameters: {"category_id"=>"2"} + Photo Load (0.9ms) SELECT * FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 19ms (View: 12, DB: 1) | 200 OK [http://localhost/categories/2/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 11:55:13) [GET] + Parameters: {"category_id"=>"1"} + Photo Load (0.9ms) SELECT * FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 17ms (View: 10, DB: 1) | 200 OK [http://localhost/categories/1/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 11:55:25) [GET] + Parameters: {"category_id"=>"1"} + Photo Load (1.0ms) SELECT * FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 19ms (View: 11, DB: 1) | 200 OK [http://localhost/categories/1/photos] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 11:55:30) [GET] + Category Load (0.6ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 12ms (View: 8, DB: 1) | 200 OK [http://localhost/categories/] + + +Processing CategoriesController#show (for 127.0.0.1 at 2010-10-08 11:55:32) [GET] + Parameters: {"id"=>"1"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = 1)  +Rendering template within layouts/photos +Rendering categories/show +Completed in 10ms (View: 4, DB: 0) | 200 OK [http://localhost/categories/1] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 11:55:52) [GET] + Category Load (0.6ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index + +ActionView::TemplateError (undefined local variable or method `category_photos' 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 %> +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 (108.1ms) +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 11:55:57) [GET] + Category Load (0.6ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index + +ActionView::TemplateError (category_photos_url failed to generate from {:action=>"index", :controller=>"photos"} - you may have ambiguous routes, or you may need to supply additional parameters for this route. content_url has the following required parameters: ["categories", :category_id, "photos"] - are they all satisfied?) 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_url %> +7:
+8:
+9: <% end %> + + (eval):21:in `category_photos_url' + 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 (32.3ms) +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 11:56:09) [GET] + Category Load (0.6ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 11ms (View: 7, DB: 1) | 200 OK [http://localhost/categories/] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 11:56:10) [GET] + Category Load (0.9ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 12ms (View: 7, DB: 1) | 200 OK [http://localhost/categories/] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 11:56:16) [GET] + Category Load (0.6ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index + Photo Load (0.4ms) SELECT * FROM "photos" WHERE ("photos".category_id = 1)  + +ActionView::TemplateError (undefined method `photo_photo_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 %> +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 (83.3ms) +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 11:56:30) [GET] + Category Load (0.8ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index + +ActionView::TemplateError (category_photos_url failed to generate from {:action=>"index", :controller=>"photos"} - you may have ambiguous routes, or you may need to supply additional parameters for this route. content_url has the following required parameters: ["categories", :category_id, "photos"] - are they all satisfied?) 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 %> +7:
+8:
+9: <% end %> + + (eval):21:in `category_photos_path' + 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 (35.1ms) +Rendered rescues/_request_and_response (0.4ms) +Rendering rescues/layout (internal_server_error) + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 11:56:59) [GET] + Category Load (0.8ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index + +ActionView::TemplateError (category_photos_url failed to generate from {:action=>"index", :controller=>"photos"} - you may have ambiguous routes, or you may need to supply additional parameters for this route. content_url has the following required parameters: ["categories", :category_id, "photos"] - are they all satisfied?) 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 %> + + (eval):21:in `category_photos_path' + 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 (30.6ms) +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 11:57:10) [GET] + Category Load (0.6ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +ERROR: compiling _run_erb_app47views47categories47index46html46erb RAISED compile error +/Users/danbee/Sites/rails/photos/app/views/categories/index.html.erb:6: syntax error, unexpected '=', expecting ')' +...ry_photos_path, :category_id = category ).to_s); @output_buf... + ^ +Function body: def _run_erb_app47views47categories47index46html46erb(local_assigns) + old_output_buffer = output_buffer;;@output_buffer = ''; __in_erb_template=true ; @output_buffer.concat "
\n\n" + +; @categories.each do |category| ; @output_buffer.concat "\n
\n\t\t
\n\t " +; @output_buffer.concat(( link_to '

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

', category_photos_path, :category_id = category ).to_s); @output_buffer.concat "\n\t\t
\n
\n" + + +; end ; @output_buffer.concat "\n\n
\n
\n\n
\n" + + + + + +; @output_buffer + ensure + self.output_buffer = old_output_buffer + end +Backtrace: /Users/danbee/Sites/rails/photos/app/views/categories/index.html.erb:18: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' +/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' +/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:942: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/mime_responds.rb:135:in `send' +/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/mime_responds.rb:135:in `custom' +/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/mime_responds.rb:179:in `call' +/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/mime_responds.rb:179:in `respond' +/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/mime_responds.rb:173:in `each' +/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/mime_responds.rb:173:in `respond' +/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/mime_responds.rb:107:in `respond_to' +/Users/danbee/Sites/rails/photos/app/controllers/categories_controller.rb:8:in `index' +/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/base.rb:1331:in `send' +/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/base.rb:1331: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/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 +/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' +/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require' +script/server:3 + +ActionView::TemplateError (compile error +/Users/danbee/Sites/rails/photos/app/views/categories/index.html.erb:6: syntax error, unexpected '=', expecting ')' +...ry_photos_path, :category_id = category ).to_s); @output_buf... + ^) 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_id = category %> +7:
+8:
+9: <% end %> + + app/views/categories/index.html.erb:18:in `compile!' + app/controllers/categories_controller.rb:8:in `index' + +Rendered rescues/_trace (88.3ms) +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 11:57:16) [GET] + Category Load (0.7ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index + +ActionView::TemplateError (category_photos_url failed to generate from {:action=>"index", :controller=>"photos"} - you may have ambiguous routes, or you may need to supply additional parameters for this route. content_url has the following required parameters: ["categories", :category_id, "photos"] - are they all satisfied?) 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_id => category %> +7:
+8:
+9: <% end %> + + (eval):21:in `category_photos_path' + 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 (29.8ms) +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 11:58:09) [GET] + Category Load (0.7ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 71ms (View: 67, DB: 1) | 200 OK [http://localhost/categories/] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 11:58:15) [GET] + Parameters: {"category_id"=>"1"} + Photo Load (1.1ms) SELECT * FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 19ms (View: 11, DB: 1) | 200 OK [http://localhost/categories/1/photos] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 12:10:02) [GET] + Category Load (0.7ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 11ms (View: 6, DB: 1) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#show (for 127.0.0.1 at 2010-10-08 12:10:36) [GET] + Parameters: {"id"=>"1"} + Category Load (0.3ms) SELECT * FROM "categories" WHERE ("categories"."id" = 1)  +Rendering template within layouts/photos +Rendering categories/show +Completed in 12ms (View: 4, DB: 0) | 200 OK [http://localhost/categories/1] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 12:10:39) [GET] + Parameters: {"category_id"=>"1"} + Photo Load (1.0ms) SELECT * FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 72ms (View: 63, DB: 1) | 200 OK [http://localhost/categories/1/photos] + + +Processing CategoriesController#1 (for 127.0.0.1 at 2010-10-08 12:14:36) [GET] + Parameters: {"id"=>"photos"} + +ActionController::UnknownAction (No action responded to 1. Actions: create, destroy, edit, index, new, show, and update): + + +Rendering rescues/layout (not_found) + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 12:15:40) [GET] + Parameters: {"category_id"=>"1"} + Photo Load (0.9ms) SELECT * FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 39ms (View: 33, DB: 1) | 200 OK [http://localhost/categories/1/photos] + + +Processing ApplicationController#index (for 127.0.0.1 at 2010-10-08 12:19:30) [GET] + Parameters: {"category_id"=>"1"} + +SyntaxError (/Users/danbee/Sites/rails/photos/app/controllers/photos_controller.rb:8: odd number list for Hash +...conditions => { :category_id = params[:category_id] }) + ^ +/Users/danbee/Sites/rails/photos/app/controllers/photos_controller.rb:8: syntax error, unexpected '=', expecting '}' +...conditions => { :category_id = params[:category_id] }) + ^ +/Users/danbee/Sites/rails/photos/app/controllers/photos_controller.rb:8: syntax error, unexpected '}', expecting kEND +...ry_id = params[:category_id] }) + ^ +/Users/danbee/Sites/rails/photos/app/controllers/photos_controller.rb:24: syntax error, unexpected $end, expecting kEND): + + +Rendered rescues/_trace (18.6ms) +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 12:19:35) [GET] + Parameters: {"category_id"=>"1"} + Photo Load (21.1ms) SELECT * FROM "photos" WHERE ("photos"."category_id" = '1')  +Rendering template within layouts/photos +Rendering photos/index +Completed in 69ms (View: 42, DB: 21) | 200 OK [http://localhost/categories/1/photos] + + +Processing CategoriesController#show (for 127.0.0.1 at 2010-10-08 12:19:41) [GET] + Parameters: {"id"=>"2"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = 2)  +Rendering template within layouts/photos +Rendering categories/show +Completed in 72ms (View: 10, DB: 0) | 200 OK [http://localhost/categories/2] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 12:19:43) [GET] + Parameters: {"category_id"=>"2"} + Photo Load (1.0ms) SELECT * FROM "photos" WHERE ("photos"."category_id" = '2')  +Rendering template within layouts/photos +Rendering photos/index +Completed in 90ms (View: 82, DB: 1) | 200 OK [http://localhost/categories/2/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 12:19:50) [GET] + Photo Load (0.4ms) SELECT * FROM "photos" WHERE ("photos"."category_id" IS NULL)  +Rendering template within layouts/photos +Rendering photos/index +Completed in 7ms (View: 2, DB: 0) | 200 OK [http://localhost/photos] + + +Processing CategoriesController#show (for 127.0.0.1 at 2010-10-08 12:19:58) [GET] + Parameters: {"id"=>"5"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = 5)  +Rendering template within layouts/photos +Rendering categories/show +Completed in 8ms (View: 3, DB: 0) | 200 OK [http://localhost/categories/5] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 12:20:01) [GET] + Parameters: {"category_id"=>"5"} + Photo Load (0.4ms) SELECT * FROM "photos" WHERE ("photos"."category_id" = '5')  +Rendering template within layouts/photos +Rendering photos/index +Completed in 9ms (View: 3, DB: 0) | 200 OK [http://localhost/categories/5/photos] + + +Processing CategoriesController#show (for 127.0.0.1 at 2010-10-08 12:20:03) [GET] + Parameters: {"id"=>"4"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = 4)  +Rendering template within layouts/photos +Rendering categories/show +Completed in 8ms (View: 3, DB: 0) | 200 OK [http://localhost/categories/4] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 12:20:06) [GET] + Parameters: {"category_id"=>"4"} + Photo Load (0.6ms) SELECT * FROM "photos" WHERE ("photos"."category_id" = '4')  +Rendering template within layouts/photos +Rendering photos/index +Completed in 63ms (View: 6, DB: 1) | 200 OK [http://localhost/categories/4/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 12:22:33) [GET] + Parameters: {"category_id"=>"5"} + Photo Load (0.4ms) SELECT * FROM "photos" WHERE ("photos"."category_id" = '5')  +Rendering template within layouts/photos +Rendering photos/index +Completed in 9ms (View: 2, DB: 0) | 200 OK [http://localhost/categories/5/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 12:22:39) [GET] + Parameters: {"category_id"=>"3"} + Photo Load (0.5ms) SELECT * FROM "photos" WHERE ("photos"."category_id" = '3')  +Rendering template within layouts/photos +Rendering photos/index +Completed in 13ms (View: 7, DB: 1) | 200 OK [http://localhost/categories/3/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 12:23:30) [GET] + Parameters: {"category_id"=>"3"} + Photo Load (0.6ms) SELECT * FROM "photos" WHERE ("photos"."category_id" = '3')  +Rendering template within layouts/photos +Rendering photos/index +Completed in 12ms (View: 6, DB: 1) | 200 OK [http://localhost/categories/3/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 12:23:33) [GET] + Photo Load (1.5ms) SELECT * FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 69ms (View: 61, DB: 1) | 200 OK [http://localhost/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 12:24:04) [GET] + Parameters: {"category_id"=>"1"} + Category Load (0.1ms) SELECT * FROM "categories" WHERE ("categories"."id" = '--- :category_id +') LIMIT 1 + Photo Load (0.4ms) SELECT * FROM "photos" WHERE ("photos"."category_id" = '1')  +Rendering template within layouts/photos +Rendering photos/index +Completed in 18ms (View: 7, DB: 1) | 200 OK [http://localhost/categories/1/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 12:24:47) [GET] + Parameters: {"category_id"=>"1"} + Category Load (0.1ms) SELECT * FROM "categories" WHERE ("categories"."id" = '--- :category_id +') LIMIT 1 + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."category_id" = '1')  +Rendering template within layouts/photos +Rendering photos/index +Completed in 19ms (View: 10, DB: 0) | 200 OK [http://localhost/categories/1/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 12:24:49) [GET] + Parameters: {"category_id"=>"1"} + Category Load (0.1ms) SELECT * FROM "categories" WHERE ("categories"."id" = '--- :category_id +') LIMIT 1 + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."category_id" = '1')  +Rendering template within layouts/photos +Rendering photos/index +Completed in 14ms (View: 6, DB: 0) | 200 OK [http://localhost/categories/1/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 12:25:23) [GET] + Parameters: {"category_id"=>"1"} + Category Load (0.1ms) SELECT * FROM "categories" WHERE ("categories"."id" = '--- :category_id +') LIMIT 1 + Photo Load (0.4ms) SELECT * FROM "photos" WHERE ("photos"."category_id" = '1')  +Rendering template within layouts/photos +Rendering photos/index + +ActionView::TemplateError (You have a nil object when you didn't expect it! +You might have expected an instance of Array. +The error occurred while evaluating nil.empty?) on line #1 of app/views/photos/index.html.erb: +1: <% if !@category.empty? %> +2:
+3:
+4: <% end %> + + app/views/photos/index.html.erb:1 + +Rendered rescues/_trace (28.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 12:25:36) [GET] + Parameters: {"category_id"=>"1"} + Category Load (0.1ms) SELECT * FROM "categories" WHERE ("categories"."id" = '--- :category_id +') LIMIT 1 + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."category_id" = '1')  +Rendering template within layouts/photos +Rendering photos/index +Completed in 17ms (View: 9, DB: 0) | 200 OK [http://localhost/categories/1/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 12:31:13) [GET] + Parameters: {"category_id"=>"1"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '--- :category_id +') LIMIT 1 + Photo Load (0.4ms) SELECT * FROM "photos" WHERE ("photos"."category_id" = '1')  +Rendering template within layouts/photos +Rendering photos/index +Completed in 74ms (View: 8, DB: 1) | 200 OK [http://localhost/categories/1/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 12:31:37) [GET] + Parameters: {"category_id"=>"1"} + Category Load (0.1ms) SELECT * FROM "categories" WHERE ("categories"."id" = '--- :category_id +') LIMIT 1 + Photo Load (0.4ms) SELECT * FROM "photos" WHERE ("photos"."category_id" = '1')  +Rendering template within layouts/photos +Rendering photos/index + +ActionView::TemplateError (undefined method `name' for nil:NilClass) on line #1 of app/views/photos/index.html.erb: +1: <% if @category.name %> +2:
+3:
+4: <% end %> + + app/views/photos/index.html.erb:1 + +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-08 12:32:31) [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 74ms (View: 7, DB: 1) | 200 OK [http://localhost/categories/1/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 12:32:39) [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 19ms (View: 9, DB: 1) | 200 OK [http://localhost/categories/1/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 12:34:09) [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 17ms (View: 8, DB: 1) | 200 OK [http://localhost/categories/1/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 12:34:25) [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 17ms (View: 8, DB: 0) | 200 OK [http://localhost/categories/1/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 12:34:31) [GET] + Parameters: {"category_id"=>"1"} + Category Load (0.3ms) 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 20ms (View: 6, DB: 1) | 200 OK [http://localhost/categories/1/photos] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 12:35:13) [GET] + Category Load (0.9ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 16ms (View: 9, DB: 1) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 12:35:23) [GET] + Category Load (0.6ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 9ms (View: 5, DB: 1) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 12:35:42) [GET] + Category Load (0.7ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 60ms (View: 54, DB: 1) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 12:36:57) [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 CategoriesController#show (for 127.0.0.1 at 2010-10-08 12:36:58) [GET] + Parameters: {"id"=>"1"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = 1)  +Rendering template within layouts/photos +Rendering categories/show +Completed in 9ms (View: 3, DB: 0) | 200 OK [http://localhost/categories/1] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 12:37:01) [GET] + Parameters: {"category_id"=>"1"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1 + Photo Load (0.5ms) SELECT * FROM "photos" WHERE ("photos"."category_id" = '1')  +Rendering template within layouts/photos +Rendering photos/index + +ActionView::TemplateError (wrong number of arguments (0 for 1)) on line #8 of app/views/photos/index.html.erb: +5: +6: <% @photos.each do |photo| %> +7: +8:
<%= link_to image_tag(), photo.photo.url, :rel => 'photo', :class => 'fancy' %>
+9: +10: <% end %> + + app/views/photos/index.html.erb:8:in `image_tag' + app/views/photos/index.html.erb:8 + app/views/photos/index.html.erb:6:in `each' + app/views/photos/index.html.erb:6 + +Rendered rescues/_trace (81.5ms) +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 12:37:19) [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 21ms (View: 11, DB: 1) | 200 OK [http://localhost/categories/1/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 12:37:44) [GET] + Parameters: {"category_id"=>"1"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1 + Photo Load (0.5ms) SELECT * FROM "photos" WHERE ("photos"."category_id" = '1')  +Rendering template within layouts/photos +Rendering photos/index +Completed in 18ms (View: 8, DB: 1) | 200 OK [http://localhost/categories/1/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 12:38:15) [GET] + Parameters: {"category_id"=>"1"} + Category Load (0.3ms) 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: 5, DB: 1) | 200 OK [http://localhost/categories/1/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 12:38:29) [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 14ms (View: 6, DB: 0) | 200 OK [http://localhost/categories/1/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 12:39:06) [GET] + Parameters: {"category_id"=>"1"} + Category Load (0.3ms) 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 19ms (View: 10, DB: 1) | 200 OK [http://localhost/categories/1/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 12:39:18) [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 18ms (View: 9, DB: 1) | 200 OK [http://localhost/categories/1/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 12:39:29) [GET] + Parameters: {"category_id"=>"1"} + Category Load (0.3ms) 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 72ms (View: 9, DB: 1) | 200 OK [http://localhost/categories/1/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 12:40:36) [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 19ms (View: 9, DB: 1) | 200 OK [http://localhost/categories/1/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 12:40:49) [GET] + Parameters: {"category_id"=>"1"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1 + Photo Load (0.6ms) SELECT * FROM "photos" WHERE ("photos"."category_id" = '1')  +Rendering template within layouts/photos +Rendering photos/index +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-08 12:40:50) [GET] + Parameters: {"category_id"=>"1"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1 + Photo Load (0.5ms) SELECT * FROM "photos" WHERE ("photos"."category_id" = '1')  +Rendering template within layouts/photos +Rendering photos/index +Completed in 18ms (View: 7, DB: 1) | 200 OK [http://localhost/categories/1/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 12:41:06) [GET] + Parameters: {"category_id"=>"1"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1 + Photo Load (0.8ms) SELECT * FROM "photos" WHERE ("photos"."category_id" = '1')  +Rendering template within layouts/photos +Rendering photos/index +Completed in 19ms (View: 9, DB: 1) | 200 OK [http://localhost/categories/1/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 12:41:27) [GET] + Parameters: {"category_id"=>"1"} + Category Load (0.3ms) 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 19ms (View: 9, DB: 1) | 200 OK [http://localhost/categories/1/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 12:41:37) [GET] + Parameters: {"category_id"=>"1"} + Category Load (0.3ms) 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 19ms (View: 8, DB: 1) | 200 OK [http://localhost/categories/1/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 12:41:50) [GET] + Parameters: {"category_id"=>"1"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1 + Photo Load (0.6ms) SELECT * FROM "photos" WHERE ("photos"."category_id" = '1')  +Rendering template within layouts/photos +Rendering photos/index +Completed in 70ms (View: 9, DB: 1) | 200 OK [http://localhost/categories/1/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 12:42:07) [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 PhotosController#index (for 127.0.0.1 at 2010-10-08 12:42:31) [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 21ms (View: 10, DB: 1) | 200 OK [http://localhost/categories/1/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 12:43:27) [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 20ms (View: 10, DB: 1) | 200 OK [http://localhost/categories/1/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 12:43:46) [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: 1) | 200 OK [http://localhost/categories/1/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 12:44:01) [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 14ms (View: 5, DB: 1) | 200 OK [http://localhost/categories/1/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 12:44:13) [GET] + Parameters: {"category_id"=>"1"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1 + Photo Load (0.5ms) SELECT * FROM "photos" WHERE ("photos"."category_id" = '1')  +Rendering template within layouts/photos +Rendering photos/index +Completed in 68ms (View: 6, DB: 1) | 200 OK [http://localhost/categories/1/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 12:44:41) [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 18ms (View: 9, DB: 1) | 200 OK [http://localhost/categories/1/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 12:44:55) [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 18ms (View: 9, DB: 1) | 200 OK [http://localhost/categories/1/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 12:45:40) [GET] + Parameters: {"category_id"=>"1"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1 + Photo Load (0.5ms) SELECT * FROM "photos" WHERE ("photos"."category_id" = '1')  +Rendering template within layouts/photos +Rendering photos/index + +ActionView::TemplateError (undefined local variable or method `category' for #) on line #3 of app/views/photos/index.html.erb: +1: <% if @category %> +2:
+3:

<%=h category.name.downcase %>

+4:
+5: <% end %> +6: + + app/views/photos/index.html.erb:3 + +Rendered rescues/_trace (28.4ms) +Rendered rescues/_request_and_response (0.2ms) +Rendering rescues/layout (internal_server_error) + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 12:45:46) [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 19ms (View: 9, DB: 1) | 200 OK [http://localhost/categories/1/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 12:46:02) [GET] + Parameters: {"category_id"=>"2"} + Category Load (0.3ms) SELECT * FROM "categories" WHERE ("categories"."id" = '2') LIMIT 1 + Photo Load (0.5ms) SELECT * FROM "photos" WHERE ("photos"."category_id" = '2')  +Rendering template within layouts/photos +Rendering photos/index +Completed in 20ms (View: 7, DB: 1) | 200 OK [http://localhost/categories/2/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 12:46:05) [GET] + Parameters: {"category_id"=>"3"} + Category Load (0.4ms) SELECT * FROM "categories" WHERE ("categories"."id" = '3') LIMIT 1 + Photo Load (0.4ms) SELECT * FROM "photos" WHERE ("photos"."category_id" = '3')  +Rendering template within layouts/photos +Rendering photos/index +Completed in 18ms (View: 6, DB: 1) | 200 OK [http://localhost/categories/3/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 12:46:08) [GET] + Parameters: {"category_id"=>"4"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '4') LIMIT 1 + Photo Load (0.4ms) SELECT * FROM "photos" WHERE ("photos"."category_id" = '4')  +Rendering template within layouts/photos +Rendering photos/index +Completed in 20ms (View: 8, DB: 1) | 200 OK [http://localhost/categories/4/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 12:46:10) [GET] + Parameters: {"category_id"=>"5"} + Category Load (0.2ms) 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 13ms (View: 3, DB: 0) | 200 OK [http://localhost/categories/5/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 12:46:12) [GET] + Parameters: {"category_id"=>"6"} + Category Load (0.1ms) SELECT * FROM "categories" WHERE ("categories"."id" = '6') LIMIT 1 + Photo Load (0.2ms) SELECT * FROM "photos" WHERE ("photos"."category_id" = '6')  +Rendering template within layouts/photos +Rendering photos/index +Completed in 12ms (View: 2, DB: 0) | 200 OK [http://localhost/categories/6/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 12:46:15) [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 18ms (View: 7, DB: 1) | 200 OK [http://localhost/categories/1/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 12:46:20) [GET] + Photo Load (1.1ms) SELECT * FROM "photos"  +Rendering template within layouts/photos +Rendering photos/index +Completed in 18ms (View: 9, DB: 1) | 200 OK [http://localhost/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 12:46:25) [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 18ms (View: 7, DB: 1) | 200 OK [http://localhost/categories/1/photos] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 12:46:38) [GET] + Category Load (0.6ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 9ms (View: 5, DB: 1) | 200 OK [http://localhost/categories/] + + +Processing CategoriesController#show (for 127.0.0.1 at 2010-10-08 12:46:40) [GET] + Parameters: {"id"=>"1"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = 1)  +Rendering template within layouts/photos +Rendering categories/show +Completed in 9ms (View: 3, DB: 0) | 200 OK [http://localhost/categories/1] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 12:46:42) [GET] + Category Load (0.6ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 9ms (View: 5, DB: 1) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#show (for 127.0.0.1 at 2010-10-08 12:46:43) [GET] + Parameters: {"id"=>"1"} + Category Load (0.3ms) SELECT * FROM "categories" WHERE ("categories"."id" = 1)  +Rendering template within layouts/photos +Rendering categories/show +Completed in 12ms (View: 5, DB: 0) | 200 OK [http://localhost/categories/1] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 12:46:44) [GET] + Category Load (0.6ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 9ms (View: 5, DB: 1) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#show (for 127.0.0.1 at 2010-10-08 12:46:45) [GET] + Parameters: {"id"=>"2"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = 2)  +Rendering template within layouts/photos +Rendering categories/show +Completed in 61ms (View: 3, DB: 0) | 200 OK [http://localhost/categories/2] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 12:46:46) [GET] + Category Load (0.6ms) 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-08 12:47:47) [GET] + Category Load (0.6ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 9ms (View: 5, DB: 1) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 12:48:10) [GET] + Category Load (0.6ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index + +ActionView::TemplateError (undefined local variable or method `category_photos' 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 %> +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.4ms) +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 12:48:15) [GET] + Category Load (0.6ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index + +ActionView::TemplateError (category_photos_url failed to generate from {:action=>"index", :controller=>"photos"} - you may have ambiguous routes, or you may need to supply additional parameters for this route. content_url has the following required parameters: ["category", :category_id, "comments"] - are they all satisfied?) 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_url %> +7:
+8:
+9: <% end %> + + (eval):21:in `category_photos_url' + 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 (88.4ms) +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 12:48:41) [GET] + Category Load (0.6ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index + +ActionView::TemplateError (category_photos_url failed to generate from {:action=>"index", :controller=>"photos"} - you may have ambiguous routes, or you may need to supply additional parameters for this route. content_url has the following required parameters: ["category", :category_id, "photos"] - are they all satisfied?) 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_url %> +7:
+8:
+9: <% end %> + + (eval):21:in `category_photos_url' + 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 (92.1ms) +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 12:48:56) [GET] + Category Load (0.6ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index + +ActionView::TemplateError (category_photos_url failed to generate from {:action=>"index", :controller=>"photos"} - you may have ambiguous routes, or you may need to supply additional parameters for this route. content_url has the following required parameters: ["category", :category_id, "photos"] - are they all satisfied?) 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_url, category %> +7:
+8:
+9: <% end %> + + (eval):21:in `category_photos_url' + 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 (30.9ms) +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 12:49:09) [GET] + Category Load (0.8ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index + +ActionView::TemplateError (category_photos_url failed to generate from {:action=>"index", :controller=>"photos"} - you may have ambiguous routes, or you may need to supply additional parameters for this route. content_url has the following required parameters: ["category", :category_id, "photos"] - are they all satisfied?) 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_url, :category_id => category.id %> +7:
+8:
+9: <% end %> + + (eval):21:in `category_photos_url' + 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 (31.2ms) +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 12:49:30) [GET] + Category Load (0.7ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index + +ActionView::TemplateError (category_photos_url failed to generate from {:action=>"index", :controller=>"photos"} - you may have ambiguous routes, or you may need to supply additional parameters for this route. content_url has the following required parameters: ["category", :id, "photos"] - are they all satisfied?) 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_url, :category_id => category.id %> +7:
+8:
+9: <% end %> + + (eval):21:in `category_photos_url' + 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 (30.2ms) +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 12:49:58) [GET] + Category Load (0.6ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index + +ActionView::TemplateError (category_photos_url failed to generate from {:action=>"index", :controller=>"photos"} - you may have ambiguous routes, or you may need to supply additional parameters for this route. content_url has the following required parameters: ["categories", :category_id, "photos"] - are they all satisfied?) 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_url, :category_id => category.id %> +7:
+8:
+9: <% end %> + + (eval):21:in `category_photos_url' + 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 (89.3ms) +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 12:50:09) [GET] + Category Load (0.6ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 12ms (View: 8, DB: 1) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 12:59:29) [GET] + Category Load (0.6ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index + +ActionView::TemplateError (undefined local variable or method `category_photos' 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 %> +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 (87.7ms) +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 12:59:36) [GET] + Category Load (0.6ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index + +ActionView::TemplateError (category_photos_url failed to generate from {:action=>"index", :controller=>"photos"} - you may have ambiguous routes, or you may need to supply additional parameters for this route. content_url has the following required parameters: ["categories", :category_id, "photos"] - are they all satisfied?) 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 %> +7:
+8:
+9: <% end %> + + (eval):21:in `category_photos_path' + 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 (89.2ms) +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:00:01) [GET] + Category Load (0.7ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index + +ActionView::TemplateError (category_photos_url failed to generate from {:action=>"index", :controller=>"photos"} - you may have ambiguous routes, or you may need to supply additional parameters for this route. content_url has the following required parameters: ["categories", :category_id, "photos"] - are they all satisfied?) 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_id => category.id } %> +7:
+8:
+9: <% end %> + + (eval):21:in `category_photos_path' + 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 (30.1ms) +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:00:13) [GET] + Category Load (0.6ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 76ms (View: 71, DB: 1) | 200 OK [http://localhost/categories] + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 13:01:38) [GET] + Category Load (21.8ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index + +ActionView::TemplateError (category_photos_url failed to generate from {:action=>"index", :controller=>"photos"} - you may have ambiguous routes, or you may need to supply additional parameters for this route. content_url has the following required parameters: ["categories", :category_id, "photos"] - are they all satisfied?) 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 %> +7:
+8:
+9: <% end %> + + (eval):21:in `category_photos_path' + 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 (43.6ms) +Rendered rescues/_request_and_response (0.4ms) +Rendering rescues/layout (internal_server_error) + + +Processing CategoriesController#index (for 127.0.0.1 at 2010-10-08 13:02:03) [GET] + Category Load (1.0ms) SELECT * FROM "categories"  +Rendering template within layouts/photos +Rendering categories/index +Completed in 30ms (View: 6, DB: 1) | 200 OK [http://localhost/categories] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 13:02:05) [GET] + Parameters: {"category_id"=>"1"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '1') LIMIT 1 + Photo Load (14.1ms) SELECT * FROM "photos" WHERE ("photos"."category_id" = '1')  +Rendering template within layouts/photos +Rendering photos/index +Completed in 42ms (View: 9, DB: 14) | 200 OK [http://localhost/categories/1/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 13:02:06) [GET] + Parameters: {"category_id"=>"2"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '2') LIMIT 1 + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."category_id" = '2')  +Rendering template within layouts/photos +Rendering photos/index +Completed in 15ms (View: 6, DB: 1) | 200 OK [http://localhost/categories/2/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 13:02:08) [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: 1) | 200 OK [http://localhost/categories/1/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 13:02:10) [GET] + Parameters: {"category_id"=>"5"} + Category Load (0.2ms) 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 12ms (View: 3, DB: 0) | 200 OK [http://localhost/categories/5/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 13:02:13) [GET] + Parameters: {"category_id"=>"4"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '4') LIMIT 1 + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."category_id" = '4')  +Rendering template within layouts/photos +Rendering photos/index +Completed in 14ms (View: 6, DB: 1) | 200 OK [http://localhost/categories/4/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 13:02:15) [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:02:23) [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:02:26) [GET] + Parameters: {"category_id"=>"4"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '4') LIMIT 1 + Photo Load (0.4ms) SELECT * FROM "photos" WHERE ("photos"."category_id" = '4')  +Rendering template within layouts/photos +Rendering photos/index +Completed in 17ms (View: 7, DB: 1) | 200 OK [http://localhost/categories/4/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 13:02:27) [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: 1) | 200 OK [http://localhost/categories/1/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 13:02:29) [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 14ms (View: 6, DB: 0) | 200 OK [http://localhost/categories/1/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 13:04:11) [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 18ms (View: 7, DB: 1) | 200 OK [http://localhost/categories/1/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 13:04:25) [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 16ms (View: 7, DB: 1) | 200 OK [http://localhost/categories/1/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 13:04:28) [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 16ms (View: 7, DB: 1) | 200 OK [http://localhost/categories/1/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 13:06:13) [GET] + Parameters: {"category_id"=>"3"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '3') LIMIT 1 + Photo Load (0.2ms) SELECT * FROM "photos" WHERE ("photos"."category_id" = '3')  +Rendering template within layouts/photos +Rendering photos/index +Completed in 14ms (View: 6, DB: 0) | 200 OK [http://localhost/categories/3/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 13:06:14) [GET] + Parameters: {"category_id"=>"2"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '2') LIMIT 1 + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."category_id" = '2')  +Rendering template within layouts/photos +Rendering photos/index +Completed in 15ms (View: 6, DB: 0) | 200 OK [http://localhost/categories/2/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 13:06:16) [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 67ms (View: 58, DB: 1) | 200 OK [http://localhost/categories/1/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 13:06:18) [GET] + Parameters: {"category_id"=>"4"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '4') LIMIT 1 + Photo Load (0.4ms) SELECT * FROM "photos" WHERE ("photos"."category_id" = '4')  +Rendering template within layouts/photos +Rendering photos/index +Completed in 17ms (View: 7, DB: 1) | 200 OK [http://localhost/categories/4/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 13:06:51) [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 PhotosController#index (for 127.0.0.1 at 2010-10-08 13:06:55) [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:06:59) [GET] + Parameters: {"category_id"=>"3"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '3') LIMIT 1 + Photo Load (0.5ms) SELECT * FROM "photos" WHERE ("photos"."category_id" = '3')  +Rendering template within layouts/photos +Rendering photos/index +Completed in 67ms (View: 6, DB: 1) | 200 OK [http://localhost/categories/3/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 13:07:57) [GET] + Parameters: {"category_id"=>"4"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '4') LIMIT 1 + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."category_id" = '4')  +Rendering template within layouts/photos +Rendering photos/index +Completed in 15ms (View: 6, DB: 0) | 200 OK [http://localhost/categories/4/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 13:07:58) [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: 7, DB: 1) | 200 OK [http://localhost/categories/1/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 13:08:06) [GET] + Parameters: {"category_id"=>"4"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '4') LIMIT 1 + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."category_id" = '4')  +Rendering template within layouts/photos +Rendering photos/index +Completed in 15ms (View: 6, DB: 1) | 200 OK [http://localhost/categories/4/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 13:08:14) [GET] + Parameters: {"category_id"=>"3"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '3') LIMIT 1 + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."category_id" = '3')  +Rendering template within layouts/photos +Rendering photos/index +Completed in 14ms (View: 5, DB: 0) | 200 OK [http://localhost/categories/3/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 13:08:21) [GET] + Parameters: {"category_id"=>"2"} + Category Load (0.2ms) SELECT * FROM "categories" WHERE ("categories"."id" = '2') LIMIT 1 + Photo Load (0.3ms) SELECT * FROM "photos" WHERE ("photos"."category_id" = '2')  +Rendering template within layouts/photos +Rendering photos/index +Completed in 15ms (View: 6, DB: 0) | 200 OK [http://localhost/categories/2/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 13:08:22) [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: 7, DB: 1) | 200 OK [http://localhost/categories/1/photos] + + +Processing PhotosController#index (for 127.0.0.1 at 2010-10-08 13:13:08) [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: 7, DB: 1) | 200 OK [http://localhost/categories/1/photos] diff --git a/public/.DS_Store b/public/.DS_Store index 17475bf..b9aa4cc 100644 Binary files a/public/.DS_Store and b/public/.DS_Store differ diff --git a/public/stylesheets/.photos.css.un~ b/public/stylesheets/.photos.css.un~ index c148022..b12b810 100644 Binary files a/public/stylesheets/.photos.css.un~ and b/public/stylesheets/.photos.css.un~ differ diff --git a/public/stylesheets/photos.css b/public/stylesheets/photos.css index c250e2b..a3ce377 100644 --- a/public/stylesheets/photos.css +++ b/public/stylesheets/photos.css @@ -1,5 +1,11 @@ body { background: black; + color: white; + font-family: "Helvetica Neue", "Arial", "Helvatica", sans-serif; + font-size: 14px; +} +a { + text-decoration: none; } #container { padding-top: 20px; @@ -19,8 +25,44 @@ body { bottom: 15px; right: 20px; } -.image140 { +.sg-5 { height: 140px; } +.sg-5 a { + height: 140px; + width: 140px; +} +.sg-7 { + height: 196px; +} +.sg-7 a { + height: 196px; + width: 196px; +} +.category { + position: relative; +} +.category a, .photo a { + display: block; + color: white; + text-decoration: none; +} +.category a:focus, .photo a:focus { + background: rgba(255,255,255,0.1); +} +.category a:hover, .photo a:hover { + background: rgba(255,255,255,0.2); +} +.blank-category { + background: #222; + outline: 1px dashed #444; +} +.category h3 { + position: absolute; + top: 10px; + right: 20px; + font-weight: normal; + font-size: 1.1em; +} img { } diff --git a/public/stylesheets/scaffold.css b/public/stylesheets/scaffold.css new file mode 100644 index 0000000..093c209 --- /dev/null +++ b/public/stylesheets/scaffold.css @@ -0,0 +1,54 @@ +body { background-color: #fff; color: #333; } + +body, p, ol, ul, td { + font-family: verdana, arial, helvetica, sans-serif; + font-size: 13px; + line-height: 18px; +} + +pre { + background-color: #eee; + padding: 10px; + font-size: 11px; +} + +a { color: #000; } +a:visited { color: #666; } +a:hover { color: #fff; background-color:#000; } + +.fieldWithErrors { + padding: 2px; + background-color: red; + display: table; +} + +#errorExplanation { + width: 400px; + border: 2px solid red; + padding: 7px; + padding-bottom: 12px; + margin-bottom: 20px; + background-color: #f0f0f0; +} + +#errorExplanation h2 { + text-align: left; + font-weight: bold; + padding: 5px 5px 5px 15px; + font-size: 12px; + margin: -7px; + background-color: #c00; + color: #fff; +} + +#errorExplanation p { + color: #333; + margin-bottom: 0; + padding: 5px; +} + +#errorExplanation ul li { + font-size: 12px; + list-style: square; +} + diff --git a/public/system/.DS_Store b/public/system/.DS_Store new file mode 100644 index 0000000..64b1913 Binary files /dev/null and b/public/system/.DS_Store differ diff --git a/test/functional/categories_controller_test.rb b/test/functional/categories_controller_test.rb new file mode 100644 index 0000000..8388fe5 --- /dev/null +++ b/test/functional/categories_controller_test.rb @@ -0,0 +1,45 @@ +require 'test_helper' + +class CategoriesControllerTest < ActionController::TestCase + test "should get index" do + get :index + assert_response :success + assert_not_nil assigns(:categories) + end + + test "should get new" do + get :new + assert_response :success + end + + test "should create category" do + assert_difference('Category.count') do + post :create, :category => { } + end + + assert_redirected_to category_path(assigns(:category)) + end + + test "should show category" do + get :show, :id => categories(:one).to_param + assert_response :success + end + + test "should get edit" do + get :edit, :id => categories(:one).to_param + assert_response :success + end + + test "should update category" do + put :update, :id => categories(:one).to_param, :category => { } + assert_redirected_to category_path(assigns(:category)) + end + + test "should destroy category" do + assert_difference('Category.count', -1) do + delete :destroy, :id => categories(:one).to_param + end + + assert_redirected_to categories_path + end +end diff --git a/test/unit/helpers/categories_helper_test.rb b/test/unit/helpers/categories_helper_test.rb new file mode 100644 index 0000000..0b03c47 --- /dev/null +++ b/test/unit/helpers/categories_helper_test.rb @@ -0,0 +1,4 @@ +require 'test_helper' + +class CategoriesHelperTest < ActionView::TestCase +end