sortable_element not working

I'm trying to create a simple sortable list and sortable_element is not working. It's throwing a javascript error that I cannot fix. I've had sortable lists working in the past with other projects and this does not seem to be any different to me, so I'm wondering if something has changed. Here's the error:

Error: element has no properties Source File: http://localhost:3000/javascripts/dragdrop.js?1178825293 Line: 575

My view looks like this:

<div class="box">   <fieldset>   <legend><%= h @work_area.name %></legend>     <ul id="wok_area">       <% @work_area_tasks.each do |work_area_task| %>         <li id="work_area_task_<%= work_area_task.id %>">           <span class="handle"><%= sort_button %></span><%= h work_area_task.task.name %>         </li>       <% end %>     </ul>   </fieldset> </div> <%= link_to back_button, work_areas_path %> <%= sortable_element('work_area', :url => sort_work_area_path(@work_area)) %>

My routes.rb file is set up to create the "sort_work_area_path" method:

map.resources :work_areas, :member => { :sort_tasks => :get, :sort => :get }, :path_prefix => "/administration"

Any ideas? Am I doing something wrong?