Have a group of documents I d like to make draggable via JQuery, and eventually sortable. Those boxs are pure CSS generated and like I said I d like to keep them the same but draggable. As it is now those notes based off a mongoid db and I can create and destroy successfully using ajax, of course. but I ve yet had any luck getting any type of dragging to work. Below is the relevant code. googling I, atleast hopelly, do not see any issues with code so maybe my jquery is corrupt? If my code is correct what steps can I take to make sure query-ui is being properly loaded with draggable function... Thank you for you help application.js
//= require jquery
//= require jquery-ui
//= require jquery_ujs
//= require bootstrap
//= require_tree .
pp/view/documents/_文件
<li>
<div id=<%= dom_id(document) %> class="document">
<div class="note">
<h2><%= document.title %></h2>
<p></p>
<%= link_to content_tag(:i, "", class: "icon-trash"), document, method: :delete, remote: true %>
</div>
</div>
</li>
pp/view/用户/index.html.erb
<div class="container">
<div class="content">
<div class="notes">
<ul>
<%= link_to documents_path, method: :post, remote: true do %>
<li>
<div class="note">
<h2> </h2>
<p>create</p>
</div>
</li>
<% end %>
</li>
<div id="documents">
<%= render @documents %>
</div>
</ul>
</div>
</div>
</div>
//申请/资产/附则/文件/文件。 js.coffee
JQuery ->
$( ".note" ).draggable();