0

i just push my latest commit to heroku, and type heroku open from my console. when i try to click my delete link , it doesn't deleted as expected, instead i get

Processing by GamesController#show as HTML"

i try to make sure by look at browser source code , i cant see any problem with my code

<a class="btn btn-default" data-confirm="Are you sure?" 
   data-method="delete" href="games/3" rel="nofollow">

is there any solution for this issue?

Sergio Tulentsev
  • 226,338
  • 43
  • 373
  • 367

1 Answers1

2

The DELETE method is provided by Rails jQuery UJS adapter.

Make sure //= require jquery_ujs is in application.js.

fylooi
  • 3,840
  • 14
  • 24