Double render error rails

前端 未结 4 1573
借酒劲吻你
借酒劲吻你 2021-01-04 12:47

Not sure how its possible to get this error :

AbstractController::DoubleRenderError users#create

When in my controller I got this code :

4条回答
  •  礼貌的吻别
    2021-01-04 13:41

    The and isn't doing anything for you.

    In each place where you have

    xxx and return
    

    replace it with

    xxx
    return
    

    For exameple:

    redirect_to signup_path
    return
    

    That should work more like you would expect it to

提交回复
热议问题