jquery - Rails Javascript issue -
i'm integrating theme wrapbootstrap.com , realized i'm running issue.
scripts.js that's included theme conflicting 2 files i'm including in application.js
//= require jquery
//= require jquery_ujs
i know because logout
functionality stopped working has route as:
delete '/logout' => 'sessions#destroy'
view:
<%= link_to "log out", "/logout" , :method => "delete" %>
i suppose question how can include both scripts.js
along rails required classes? if remove scripts.js
logout functionality returns , when require again functionality goes away.
my solution make get
request rather have delete
http
request in routes.rb
files.