开发者

Does filter chain get interrupted if you redirect in the action?

So let's say I have a before_filter, an action, and an after_filter.

I know from this page Filter class that i开发者_StackOverflow社区f you redirect in the before_filter the filter chain is broken. However what happens if you redirect in the action? Does the after_filter still get run or does that break the filter chain too?


Redirecting within the action shouldn't halt the filter chain, only a redirect in a before or around filter will prevent the after filter from being executed. Halting the filters can only happen within a filter, not within the action.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜