Closed watsy0007 closed 6 years ago
Look at https://github.com/turbolinks/turbolinks-ios/issues/103 's last two answers and see if they help you. A little work is needed on the iOS side.
Rails always sends DELETE
as a POST
to work in all browsers that may not support making DELETE
requests directly, using a hidden _method=DELETE
field:
Because submitting forms with HTTP methods other than GET and POST isn't widely supported across browsers, all other HTTP methods are actually sent over POST with the intended method indicated in the _method parameter. Rails automatically detects and compensates for this.
http://guides.rubyonrails.org/working_with_javascript_in_rails.html#data-method
thanks @zachwaugh @pbmarcano
eex(elixir render) code
html code
but when i click a tag. not work. it becomes post method!!!