[Facebooker-talk] errors in mongrel log

Richard Jordan jordanr at cs.washington.edu
Fri Jul 4 12:47:56 EDT 2008


Try adding the argument (&proc) to fb_else like this:
=================================================
diff --git a/lib/facebooker/rails/helpers.rb 
b/lib/facebooker/rails/helpers.rb
index c0bfdbc..2851ef8 100644
--- a/lib/facebooker/rails/helpers.rb
+++ b/lib/facebooker/rails/helpers.rb
@@ -508,7 +508,7 @@ module Facebooker

        # Render fb:else tag
        # Must be used within if block such as fb_if_is_user or 
fb_if_is_app_user . See example in fb_if_is_app_user
-      def fb_else
+      def fb_else(&proc)
          content = capture(&proc)
          concat(content_tag("fb:else",content),proc.binding)
        end
==================================================
See if that fixes it.  I always wondered about these warnings.

Richard

On Thu, 3 Jul 2008, Joe Van Dyk wrote:

> /data/dailycaption/releases/20080616201818/vendor/plugins/facebooker/lib/facebooker/rails/helpers.rb:509:
> warning: tried to create Proc object without a block
>
>
> I'm getting a shitload of those errors.  Did they get fixed yet?  (am
> using a pretty new version of trunk, maybe two weeks old)
> _______________________________________________
> Facebooker-talk mailing list
> Facebooker-talk at rubyforge.org
> http://rubyforge.org/mailman/listinfo/facebooker-talk
>


More information about the Facebooker-talk mailing list