Modified: trunk/app/helpers/application_helper.rb (2102 => 2103)
--- trunk/app/helpers/application_helper.rb 2009-02-13 12:53:39 UTC (rev 2102)
+++ trunk/app/helpers/application_helper.rb 2009-02-13 13:33:27 UTC (rev 2103)
@@ -154,14 +154,10 @@
end
def avatar_url(picture_id, size=200)
- url = "" => 'pictures',
+ url_for(:controller => 'pictures',
:action ="" 'show',
:id => picture_id,
:size => "#{size}x#{size}")
-
- # icky url fix - the Rails 1 automatic extension adding code doesn't take
- # URL queries into account
- url.sub('?', '.jpg?')
end
def null_avatar(size=200, alt="Anonymous")