From b35354a764b1fe8e7647f95e12da2a57289cd5ba Mon Sep 17 00:00:00 2001 From: Dan Barber Date: Fri, 8 Oct 2010 13:15:18 -0400 Subject: [PATCH] Everything is working well, categories and photos are a 1 to many right now though and they need to be many to many. --- app/controllers/.categories_controller.rb.un~ | Bin 0 -> 1413 bytes app/controllers/.photos_controller.rb.un~ | Bin 3959 -> 5309 bytes app/controllers/categories_controller.rb | 84 + app/controllers/photos_controller.rb | 8 +- app/helpers/categories_helper.rb | 2 + app/models/.photo.rb.un~ | Bin 17270 -> 36550 bytes app/models/photo.rb | 19 +- app/views/categories/.edit.html.erb.un~ | Bin 0 -> 962 bytes app/views/categories/.index.html.erb.un~ | Bin 0 -> 78854 bytes app/views/categories/.new.html.erb.un~ | Bin 0 -> 1872 bytes app/views/categories/edit.html.erb | 28 + app/views/categories/index.html.erb | 14 + app/views/categories/new.html.erb | 27 + app/views/categories/show.html.erb | 18 + app/views/layouts/categories.html.erb | 17 + app/views/photos/.index.html.erb.un~ | Bin 10376 -> 11516 bytes app/views/photos/.new.html.erb.un~ | Bin 19410 -> 35681 bytes app/views/photos/.show.html.erb.un~ | Bin 17124 -> 24510 bytes app/views/photos/index.html.erb | 8 +- app/views/photos/new.html.erb | 4 + app/views/photos/show.html.erb | 2 +- config/routes.rb | 6 +- db/development.sqlite3 | Bin 12288 -> 12288 bytes ...0101008101157_add_photo_to_category.rb.un~ | Bin 0 -> 974 bytes ...20101008103053_add_details_to_photo.rb.un~ | Bin 0 -> 974 bytes ...101008105348_add_colour_to_category.rb.un~ | Bin 0 -> 1389 bytes .../.20101008122736_add_sort_orders.rb.un~ | Bin 0 -> 1391 bytes .../20101008101157_add_photo_to_category.rb | 9 + .../20101008103053_add_details_to_photo.rb | 11 + .../20101008105348_add_colour_to_category.rb | 9 + db/migrate/20101008122736_add_sort_orders.rb | 11 + db/schema.rb | 8 +- log/development.log | 3973 +++++++++++++++++ public/.DS_Store | Bin 6148 -> 6148 bytes public/stylesheets/.photos.css.un~ | Bin 33708 -> 57186 bytes public/stylesheets/photos.css | 44 +- public/stylesheets/scaffold.css | 54 + public/system/.DS_Store | Bin 0 -> 6148 bytes test/functional/categories_controller_test.rb | 45 + test/unit/helpers/categories_helper_test.rb | 4 + 40 files changed, 4396 insertions(+), 9 deletions(-) create mode 100644 app/controllers/.categories_controller.rb.un~ create mode 100644 app/controllers/categories_controller.rb create mode 100644 app/helpers/categories_helper.rb create mode 100644 app/views/categories/.edit.html.erb.un~ create mode 100644 app/views/categories/.index.html.erb.un~ create mode 100644 app/views/categories/.new.html.erb.un~ create mode 100644 app/views/categories/edit.html.erb create mode 100644 app/views/categories/index.html.erb create mode 100644 app/views/categories/new.html.erb create mode 100644 app/views/categories/show.html.erb create mode 100644 app/views/layouts/categories.html.erb create mode 100644 db/migrate/.20101008101157_add_photo_to_category.rb.un~ create mode 100644 db/migrate/.20101008103053_add_details_to_photo.rb.un~ create mode 100644 db/migrate/.20101008105348_add_colour_to_category.rb.un~ create mode 100644 db/migrate/.20101008122736_add_sort_orders.rb.un~ create mode 100644 db/migrate/20101008101157_add_photo_to_category.rb create mode 100644 db/migrate/20101008103053_add_details_to_photo.rb create mode 100644 db/migrate/20101008105348_add_colour_to_category.rb create mode 100644 db/migrate/20101008122736_add_sort_orders.rb create mode 100644 public/stylesheets/scaffold.css create mode 100644 public/system/.DS_Store create mode 100644 test/functional/categories_controller_test.rb create mode 100644 test/unit/helpers/categories_helper_test.rb diff --git a/app/controllers/.categories_controller.rb.un~ b/app/controllers/.categories_controller.rb.un~ new file mode 100644 index 0000000000000000000000000000000000000000..9f61275d7714691490cb7d240a04ee7d241e44db GIT binary patch literal 1413 zcmWH`%$*;a=aT=Ffyso6SWn_rI0Fng)kR})aNx=+Z_zwg?g` literal 0 HcmV?d00001 diff --git a/app/controllers/.photos_controller.rb.un~ b/app/controllers/.photos_controller.rb.un~ index f210b11b8dbbf37f5da7f30cac7e463b8b43cd61..91b5f939d6a1cd81f1fd833165f822210b76f5c8 100644 GIT binary patch delta 382 zcmew^w^uVYEHih0Xr4>{QwApX{3Qi_%Ni~eCL4S%==@$cHEbP!m4jf+=ewu8v{GXX z7#J8NfS5%A2tYIxGXiNIAO-;t4Z{pR>v^xRfMhu~CT8+7a&11%yNXdN{sK^h6NtHi z7zVh243^CXJlTvA>v`9LH8C)J1=+?7#B4w;J~@C@OcbOJW*3kNHUpy1Wj*gYus(K# zK31R#kQpF1fL(3c2(}&BW}p<?S#Z{0{;S$%!SY>G?&O zsl^Jm3eFHtrCwTQUW$fQVor{xUT$K6LbXCoa*aZCvR+{QwApYzjLj8?F8=^^c1dKb@y4<%WuwKT5|Z_w{p9f @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 0491728def6cf522edd1bae9c973e4d83dcea110..73a28e3b02e1a49deafd2cc952ee2cba2709d5db 100644 GIT binary patch literal 36550 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 I-v8nM0OKRO1^@s6 delta 118 zcmX>$m+4y@V`5ll?)=a^m;9#;OvgBPo)DRI= { :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 0000000000000000000000000000000000000000..137d97c8dcb14e0a6e092f2d704641c52fc30693 GIT binary patch literal 962 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 G_x~SA%R7(& literal 0 HcmV?d00001 diff --git a/app/views/categories/.new.html.erb.un~ b/app/views/categories/.new.html.erb.un~ new file mode 100644 index 0000000000000000000000000000000000000000..d6f2b00e9595aec4b11008d276e3ef83c8466e74 GIT binary patch literal 1872 zcmWH`%$*;a=aT=Ff$6$Y?8{@mG5h%U>TUn?BFtr9=(6tlPFqiUqy-=R&-hK8fq_99 zh+#kp$Y2Cw7N`J-hG7Pubw4JufMgjN;x9lIFhOY$1(Fg1VzAhMAOMSiWJUoELI4;Y zP2lKYVE8HlG+z*iMSvI-r=X}{RZy@gurqB0#}!C`8Hiy36i1_R1q%(D)4;fD#uitg zcmqWZlY#;?qCgP?%Y7hcfg(*9h?PK`(M$yj1zG}NL`^`BC{P{&WhzM^21S&L0ub1! z+A5^!Gh<|tStB^IZ~C+Fwnmli3g+Sw!(>BI6Ia()A91xG6=Dpf(8(WnH40xbbN aDj6Z=BPc4xfEX5)s)VCb0Th?dR{;Pk%~)js literal 0 HcmV?d00001 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 606d4954b8a500de0c1ddf6adaa901fc6da33790..35800b1d814b32bf9c7e37c71def26d7e8d5eafc 100644 GIT binary patch delta 285 zcmeAO{1d4kmYF+0G|wgfDFc(||JM`Mj!D~UF3nnA$B=R0+yYVl&(EKwitYC;Wf7ZH z%fP_EI=MksYN98&_M|qJ+YC(cJ3RXp_ISRIR3hD(J`6c=4lQT5r zAVz_-A_I{1Afw{IMk%c4`UG(U!&eEQC=(E~05K~NgPaDn!HBguvnthevZ9JKR=X4c D8EHT4 delta 105 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 delta 139 zcmaDjjp@>KM&q!|-1(t-F8NOxn3B?-D=)d^Aaqwiwlb}1!S7$^Ux^e}c^-7UvDB(p ziE}Cg0|PG*YfUz=m$EA@$jMJkNll4QNi0cJP_+X}umiCa5HkX?HV}gVh=ySXpLL9` XEFf8~jZIyij0~H3y>>A&JzoU?p7kZK diff --git a/app/views/photos/.show.html.erb.un~ b/app/views/photos/.show.html.erb.un~ index 31de59c6f69efa58f2de0935501a68b6310d9bef..11ca487fb106b4bddfdaf3f7b59c103dab53062c 100644 GIT binary patch delta 1126 zcmZwGy)Oe{90%~bs)QOEQGzth>HB#pB@!W#Q!HYzuu6**LB-3$B;pU?kr)hKA_hxU zV=+_=Y{Fo$S%?sW)#koWd+G1F>m^U0%jNg|+;h*b&-;#?yOrY;bBjmgOGBv-$+pw> z+HmddJUtv6b|x}seJ`~q`#tkhgYP5BZ`+UZBuSF24_tKa%s-Ma8$%jRJ09$)D$m3Z zG})j1)4pWSjLWazpmHGF6iLcuX-AsLPB%N&RJL7S%^qX5`5fwkMo6Dw zSaQ8Ar&Sel70ta1@s;F^ss#GGxA?n}2@wOH#c(rcwTC*YnL#W}7?4(GuSQV9rnMlX z5(J`gzkR zEWuB@ff9LfBNe zP-X=X=pX>F62P>V12)S7P#-0ESS9kKex8@j>qoh95TSr7#w*i~EI*BQw%cCEx`G@r vZ2^5d2yh@GybC&UpFhx?DD*;Eo!gj+M%7kDTb@m=r6T#?^_2zQoX?AYU5VzU delta 118 zcmdnDpYcg6V`5ll?)=a^m;9#;Oh(7Qe~6y`ldo#pxi|0oTK4Z*pZIL;d7*i1!Sin~ wneP3bfq{V$h(Q3ER)z>MfM^(I@L9)vgaxFEd1K;q2S$d?KOJ5&GCf}f0328&rT_o{ 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 14e427b4a74a46c9a5e53a6bfc505331b6d6b26c..42c02bdc13fc7558bdd281da7839ca43d507b94e 100644 GIT binary patch delta 1757 zcmb7EO>7%Q7@hqc3vh8FQaiFx$Fb7Js7Ysk#y=}XC`lWNl1P;(;@FOzvAv1owRYEy zii9>Pf&&s&ks~-GBrb?UWh6jwK}bPD;$Brb_5=bhlryti9PQc_KVDzcR3$LYIs=oWPwZR#%Qgp~L<&vE@z zZs|^6g^~1?;g_-@Ku+*&zcaY6p3fzj>N5Bpb{bc}?caJRYv7-wPQP z9s&3pJb^#Lui&TfXgHNRfLAlBSkke^A6(URy<(IzN({loFsm6kju;%vNO45dNM&&H z`~tVQ3*fKtA^ZV;0Y8R!xy74s@G$%A%HP`Rv{VvK?ILj{35Du%5(?!duJY0}lurOW zf>`}YWvZxrD4z_^=8omyu#!Im1n_D>G7JM8&H#Cx?%7?2ww!K%k9B=SeYDkgUEAAT z+Ud3IJ=$WIc6zKOeKHruS>%6QMVe_5Vwq$Tsyzj|%zSEhkkbs1-)6{b+dZ@wGYrA- zSa1efa~;}hqifW6?Z)m!wB{_KEqdEo+L=xBajds@7*h z#nLFbG}t$4K9KAr$7Nc{sA8ir_ckqbVig4LWA-f%5iPxDbEPftPtH@UOufp0E&7Ys2{=a)a!5)D#Pi8 zRW(?VQeZyKhbX_ouQ1zZ4ZrWQcmix0*wT$Sq*)kSrdF&s3B&khAq5JN#3t=-dkxxS zUYyOVYZgfeV2e~Nf{V4FR&Qbq?}5d|P+`5}>@(Lx=h3we?fPRfM6>jYenm-vh@Af~ z?AWaH)S6}J#YV+w)Yz(=0vFOjxboEwZR~Q-H^TKNlbcn(t#K$?I;j?GIDGgPXfKAr q*E$ZL``3GMYScJwG&9l2;AJrdqJsRBic9}m5~U_)v0OIm+w?CV)Sk8g delta 1365 zcmZvbO=#0#7{`<4Wz7y^Me6d=tX*Wd50p(5HYPIhgT^*Co!wH>4)v5e z{Mbd=$YnPC$nBCj}N zn@7aA#uiVp0NuPl)qF%rr2U(ydbH?c+zDuLK$-@00|`HWN(B2-hfN zd(5%5KljGYMiQ_6W|^EK`2HqY1xW+Js)2*hiUivP*oH69N3gOS>kX4sf^=WS2)a## z2%^y$r$~4?)7gxsMp-+bPLXZ)RJt>b)E2l7coyxsMmh^uD_jihh>>B`M^f;++oFl3 zr0e`5?y`Y7gUMrtFu%myx;L0Q<}hX)^LLM1w~qM~^A6@Dq6IgV!UBQ$soQOQg}H>8 f$IM}NV1Daz>)&FoVpcK7F*(e?c$6EEG@9Oj7FZB< 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 0000000000000000000000000000000000000000..e6817d959bae2ef915370686276ca592e521e273 GIT binary patch literal 974 zcmWH`%$*;a=aT=Ff$5%>=k+JYi*~X-%Zhsbx9gmccg8*4!y;Tunafu0S{#?fz`(!> z#4x}QWH16T6I1|1!!U!-x=->f5ZU+(ND81#xJF)(z<(eBi@;<@X)1?+&$^Gtz|q0T z@Kpk6HYjFTfS4W1=2cKgNljBIPR&WvD=jc>1jiXj5i$TpE*lVoB7QW^K!HG00L(&i d&@2RwGghE&98e638h)fWOUWRkI~l-(sXL!RllOyy23hK_0m1_o{* zh5>#cgAs_CpaLKoh8cX;eFyDn6|9QOPy4OxUg&dnMJ^wHFMNG0U*}W-aU|`?` zVi@2DG8loF87csxVVJ>Z-H#X+kSrrZ`~|22CMXS}kTo*=2LiANl7dktHA4Ux9j@T$ zU|{$v0W=sC6|6wa4#c3SU{z2^%}X(D1jiLh+yEs(ieZsF8dt!;pe?`_S1dp)Ie-`x zH4M;bLe5SgVNevY0Wm0Fjz$wG5NHa3(G(3W;lNo6l$}6P1dAqq1%;HNGoL literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..1c12cc0f2419ee91162ac6d344dfaa2892d9869b GIT binary patch literal 1391 zcmWH`%$*;a=aT=Ff$0uo?9|^~5IMUWJXGN~B?!07M* zM+XDLR|%lOpkQYOVs;<~MFp#ZLTX-$X(KqUU~vN!2Lq5|P{fYL6(l@pOyY_w4xqiD zs9{o2fJPKJLXcboiX>2sf^sIqXr=;%0xbbBqH3UJ95_?40WISKVoo3iMHIh+LP~0y SLUC$NnqEqNd7f$G^Hl)J={l7F literal 0 HcmV?d00001 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 17475bfd5e2dff84eb0b5e648656a8e1ed56d37c..b9aa4cc67f614fb7eef28a33c5b44aec87d39155 100644 GIT binary patch delta 122 zcmZoMXfc=|#>B!ku~2NHo+2aL#(>?7iv?Ji7}+NCFex!IOx9;QC&tE5z>vX^&rkxy z#VN(fIZ65XISiA}GfPbtVZJNK00e9d#SE1|T*8pbkh}RM^Bcy^>>T_YK$AB!vV3Qr U%rD}|!N|bC1X8;>LSzjy05obGwEzGB delta 81 zcmZoMXfc=|#>B)qu~2NHo+2a5#(>?7j4YFRSdT=iui6YS=8u@tt`xzlb9T0}wDWFtBWn5Lv?v0C-Il761SM diff --git a/public/stylesheets/.photos.css.un~ b/public/stylesheets/.photos.css.un~ index c148022769c7f4bdb8deec52d44db6de266d277b..b12b810afb4914fde6ef09c8d6c532b484f1ad32 100644 GIT binary patch literal 57186 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 delta 118 zcmaE~k9kcyQ({Z@qr3}Xc%VjS$89X1thDyF|n?Zkzw3Z5S>vG!N$@uSMUZw^aNf&)WSkoLG8ElTprCgpF&yfv{2r_^|vYUxaL}Uavl&cM0vwic9^)jMBIL>I~v^#ANo2EH*vR?;`JCvjB!973nZG%Py zr~nn90#twsd|ZJnv7_ { } + 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