Routing Error No route matches [GET] "/microposts/304 - Deleting a Micropost - Michael Hartl's railstutorial.org Chapter 11

前端 未结 2 1624
时光取名叫无心
时光取名叫无心 2021-01-21 21:57

I\'m working through Michael Hartl\'s Ruby on Rails tutorial on http://ruby.railstutorial.org. I\'m having trouble with Chapter 11, specifically when attempting to delete a mic

相关标签:
2条回答
  • 2021-01-21 22:12

    I think you are missing one of these two.

    //= require jquery
    //= require jquery_ujs
    

    I accidentally removed //= require jquery_ujs and this gave me the same problem.

    0 讨论(0)
  • 2021-01-21 22:25

    Are you using both prototype and jquery in your app?
    I can see that you are using jquery-rails gem, but is the prototype also present there?
    Check if both are being loaded, as they clash with each other.

    0 讨论(0)
提交回复
热议问题