Prepend_before_filter

I’ve got a couple of before_filters that need to run in a specific
order. One does a redirect_to if a session variable isn’t set. The
other does a find which will fail if the session variable isn’t set. So
they need to run in that order. But prepend_before_filter doesn’t seem
to be working as advertised. Anybody got any insight? I’m still
running on 1.1.6

TIA,
Bill

On 2/13/07, Bill W. [email protected] wrote:

I’ve got a couple of before_filters that need to run in a specific
order. One does a redirect_to if a session variable isn’t set. The other
does a find which will fail if the session variable isn’t set. So they need
to run in that order. But prepend_before_filter doesn’t seem to be working
as advertised. Anybody got any insight? I’m still running on 1.1.6

TIA,
Bill

I’ve never used prepend_before_filter, so I don’t have a clue. I have a
similar scenario and I just have one before_filter method that calls
other
methods in the order I need.


Andrew S.

Hi Andrew,

Andrew S. wrote:

I just have one before_filter method that
calls other methods in the order I need.

Thanks for your reply. I started going in that direction but, depending
on
the controlller, I call one, the other, or both in order so the
before_filter was getting kind of big and ugly.

May end up just having to live with that I guess.

Best regards,
Bill