--
You received this message because you are subscribed to the Google Groups "Mad Railers, the Madison, WI Ruby on Rails Users Group" group.
To visit the Madison Rails Home page, go to http://madisonrails.com/
To post to this group, send email to Mad-R...@googlegroups.com
To unsubscribe from this group, send email to Mad-Railers...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/Mad-Railers?hl=en
You need to prefix an ampersand in front of block the second time. You're also missing the "log" argument in the second call. If you put the log back in to the method call, you'll see an error "expected 4 arguments instead of 5". In that case, you're passing in the block not as a block argument but as a regular argument (a Proc object). That will change if you add an ampersand, i.e.:
run_with_backoff(log, max_time, sleep_time * 2, message, &block)Cheers,Brian