Rails 4 link_to Destroy not working in Getting Started tutorial

前端 未结 13 1108
野性不改
野性不改 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:39

    Make sure gem 'jquery-rails' is in gemfile and jquery_ujs is included in app/assets/javascripts/application.js file

    //= require jquery
    //= require jquery_ujs
    

    Source: https://github.com/rails/jquery-ujs

提交回复
热议问题