I’ve been trying to implement a sortable list and have been following
the Rails Cookbook I’ve just bought. My code is exactly the same as the
one in the book, but when I tried to move an element, I can only select
the element. I then looked at the HTML source and there is no javascript
being inserted into the page. The source in my view page looks like
this:
<%= sortable_element(‘list’,
:update => ‘order’,
:complete => visual_effect(:highlight, ‘list’),
:url => { :action => “order” }) %>
I’ve got the references to the javascript libraries in the layout page,
but this shouldn’t affect Rails writing javascript to the page. Is there
something I’m overlooking?