阅读背景:

为什么在Rails应用程序中呈现和重定向不会停止执行?

来源:互联网 

I have a use case question. In Rails 4.1 if you run a controller method and have redirect_to or render at some point in your method you are still allowed to continue execution at that point. Sometimes this results in a AbstractController::DoubleRenderError if you dont handle your control flow properly. Why is this allowed in Rails? It seems like a funny use case to redirect and not stop execution, when would this be appropriate?I have a use case question. In Rails 4.1 if you




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: