myexperiment-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[myexperiment-hackers] [2103] trunk/app/helpers/application_helper.rb: r


From: noreply
Subject: [myexperiment-hackers] [2103] trunk/app/helpers/application_helper.rb: removed avatar fix - didn' t work as expected
Date: Fri, 13 Feb 2009 08:33:28 -0500 (EST)

Revision
2103
Author
dgc
Date
2009-02-13 08:33:27 -0500 (Fri, 13 Feb 2009)

Log Message

removed avatar fix - didn't work as expected

Modified Paths

Diff

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")

reply via email to

[Prev in Thread] Current Thread [Next in Thread]