Forum: Ruby on Rails sortable_element not working

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
49eea5a820f17d9a5df2db047cbcdd72?d=identicon&s=25 sterling (Guest)
on 2007-05-10 21:44
(Received via mailing list)
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">
  <legend><%= h %></legend>
    <ul id="wok_area">
      <% @work_area_tasks.each do |work_area_task| %>
        <li id="work_area_task_<%= %>">
          <span class="handle"><%= sort_button %></span><%= h %>
      <% end %>
<%= 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"

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

Any ideas? Am I doing something wrong?
This topic is locked and can not be replied to.