Why Rails “link_to” does not work for delete action?

后端 未结 4 1581
礼貌的吻别
礼貌的吻别 2020-12-16 21:17

In index.html.erb I display all products, and next to each product I have Edit and Delete actions:

<% @products.eac         


        
4条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-16 21:43

    I had same problem - actually I had changed my old 'delete' action to 'destroy' - but forgot If your using SSL.. (e.g ssl_required :destroy)

提交回复
热议问题