Redirect_to and render with return

后端 未结 2 864
长发绾君心
长发绾君心 2021-01-18 11:03
 def confirm_invite_new_tutor
    redirect_with_msg = false
    @game_school = GameSchool.find(params[:id])
    existing_user_emails = params[:all_emails][:existing_         


        
2条回答
  •  被撕碎了的回忆
    2021-01-18 11:49

    add justand return at the end of each redirect_to or render like below

    `redirect_to @game_school  and return`  
    

    This will work for you

提交回复
热议问题