views:

101

answers:

0

Hi guys,

I have a program where a gem, facebooker, calls a redirect and in the same action I end up callling a redirect through redirect_back_or_default. My question is:

  1. Is there a way to catch the multiple redirect error? A begin/rescue block doesn't seem to do it.
  2. Or, is there a way to check to see if a redirect has already been called so I don't call the next one?

At this point, I don't want to modify the facebooker gem, so what do you feel is the best way to handle this?

Thanks all, Justin