# Sortable\_element not working

**URL:** <https://www.ruby-forum.com/t/sortable-element-not-working/103842>\
**Category:** Rails\
**Created:** [May 10, 2007, 9:44pm UTC](https://www.ruby-forum.com/t/sortable-element-not-working/103842 "2007-05-10T21:44:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [May 10, 2007, 9:44pm UTC](https://www.ruby-forum.com/t/sortable-element-not-working/103842/1 "2007-05-10T21:44:24Z")

</div>

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](http://localhost:3000/javascripts/dragdrop.js?1178825293)  
Line: 575

My view looks like this:

 \<%= h @work\_area.name %\> 
 \<% @work\_area\_tasks.each do |work\_area\_task| %\> - \<%= sort\_button %\>\<%= h work\_area\_task.task.name %\> 
 \<% 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”  
method:

map.resources :work\_areas, :member =\> { :sort\_tasks =\> :get, :sort  
=\> :get }, :path\_prefix =\> “/administration”

Any ideas? Am I doing something wrong?
