Sortable_element - No HTML output

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

<%= 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?

Ok. I’ve managed to figure out that something about the environment is
causing the problem. I’ve put exactly the same code in another Rails
project and it does correctly generate the javascript in the html

Anyone know a solution?

Did you ever figure this out? I’ve got the same problem.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs