From 6580414459066e67ccf582832983bfb238d14dc1 Mon Sep 17 00:00:00 2001 From: Coleman Date: Tue, 14 Oct 2008 21:29:55 -0500 Subject: [PATCH] use proper url syntax --- app/helpers/global_helpers.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/global_helpers.rb b/app/helpers/global_helpers.rb index d070668..4b3f143 100644 --- a/app/helpers/global_helpers.rb +++ b/app/helpers/global_helpers.rb @@ -11,7 +11,7 @@ module Merb def photo_url(photo, w = nil, h = nil) w = photo.width if w.nil? or w.to_i > photo.width h = photo.height if h.nil? or h.to_i > photo.height - "/photos/#{photo.id}/thumbnail?width=#{w}&height=#{h}" + url :thumbnail_photo, photo, :width => w, :height => h end def indicator