Forum: Ruby on Rails sortable_element - No HTML output

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.
Affe0f3c7cda82705d34e5e152d1a4b5?d=identicon&s=25 Zayne (Guest)
on 2007-04-17 11:15
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?
Affe0f3c7cda82705d34e5e152d1a4b5?d=identicon&s=25 Zayne Upton (zayne)
on 2007-04-17 17:07
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?
49eea5a820f17d9a5df2db047cbcdd72?d=identicon&s=25 sterling (Guest)
on 2007-05-10 21:11
(Received via mailing list)
Did you ever figure this out? I've got the same problem.
This topic is locked and can not be replied to.