How do I 'validate' on destroy in rails

前端 未结 11 1889
你的背包
你的背包 2020-11-28 06:33

On destruction of a restful resource, I want to guarantee a few things before I allow a destroy operation to continue? Basically, I want the ability to stop the destroy oper

11条回答
  •  一向
    一向 (楼主)
    2020-11-28 07:23

    I was hoping this would be supported so I opened a rails issue to get it added:

    https://github.com/rails/rails/issues/32376

提交回复
热议问题