Rails 4 link_to Destroy not working in Getting Started tutorial

前端 未结 13 1106
野性不改
野性不改 2020-11-27 04:48

I am working through the Getting Started tutorial (creating a Blog) and the link_to Destroy is not functioning properly. In the terminal it always interprets it as #SHOW. <

13条回答
  •  孤城傲影
    2020-11-27 05:27

    Started GET "/posts/4" for 127.0.0.1 at 2013-08-09 13:45:20 -0600

    This is the problem. The delete link is using GET http verb even though you used method: delete in your link.

    Check out the following SO thread

提交回复
热议问题