新手问题 you need to do something like "redirect_to (...) and return".

Unknow user · November 27, 2013 · Last by yangjie6020 replied at November 27, 2013 · 1668 hits

学了几天,准备写个练手的项目,遇到这个错误,我们有作为返回,难道 ruby 默认最后一个动作是返回?

因为 redirect_to 不是控制流语句,实现里也没用 throw/fiber 等长跳手段,接着的语句还会继续执行的

Unknow user #1 November 27, 2013

#1 楼 @luikore 明白了 谢谢 搞定了

You need to Sign in before reply, if you don't have an account, please Sign up first.