public
Description: Easy creation of Facebook applications in Ruby using plugin for Sinatra web framework that integrates with Facebooker gem.
Homepage: http://www.deadprogrammersociety.com
Clone URL: git://github.com/deadprogrammer/frankie.git
Search Repo:
Bugfix for fb_url_for helper method
Ron Evans (author)
Tue Apr 22 12:38:58 -0700 2008
commit  95bf66b0ff3b8d181b6a07110260214ac4653cf2
tree    373c4056591066c682792e4bbb1426031907d642
parent  904def80faf944b4243e45e35b93b6b3d1eabdd2
...
 
 
1
2
3
...
1
2
3
4
5
0
@@ -1,3 +1,5 @@
0
+v0.2.5. Bugfix for fb_url_for helper method
0
+
0
 v0.2.4.  Add fb_url_for helper method to create link URL's that have proper Facebook application reference included
0
 
0
 v0.2.3.  Correct README and fix Sinatra version dependency in gem
...
178
179
180
181
182
 
 
 
 
183
184
185
...
178
179
180
 
 
181
182
183
184
185
186
187
0
@@ -178,8 +178,10 @@ module Frankie
0
     end
0
 
0
     def fb_url_for(url)
0
- return URI.escape(url) if request_is_for_a_facebook_canvas?
0
- "http://apps.facebook.com/#{ENV['FACEBOOKER_RELATIVE_URL_ROOT']}/#{URI.escape(url)}"
0
+ url = "" if url == "/"
0
+ url = URI.escape(url)
0
+ return url if !request_is_for_a_facebook_canvas?
0
+ "http://apps.facebook.com/#{ENV['FACEBOOKER_RELATIVE_URL_ROOT']}/#{url}"
0
     end
0
     
0
   end

Comments

    No one has commented yet.