写作
redirect_to
在around filter after yield语句导致双重呈现错误。尝试“重新配置”响应对象(通过设置
body
到
nil
和
location
头到所需的URL)导致以下错误(取自控制器规格):
Failure/Error: Unable to find matching line from backtrace
You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.each