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?
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---