Hi all, I have 2 lists <ul> of users <li>. You can drag and drop users between the 2 lists. <h1>Listing users</h1> <ul id="list1"> <% for user in @users1 %> <li class="user" id="<%="user_#{user.id}" %>"><%=h user.name %></li> <%= draggable_element("user_#{user.id}", :revert => true) %> <% end %> </ul> <%=drop_receiving_element("list1", :url => copy_user_path(user)) %> <ul id="list2"> <% for user in @users2 %> <li id="<%="user_#{user.id}" %>"><%=h user.name %></li> <%= draggable_element("user_#{user.id}", :revert => true) %> <% end %> </ul> <%=drop_receiving_element("list2", :url => copy_user_path(user)) %> I define draggables (the user in li) and droppables (ul). I do this via the Rails partials. I have some question regarding the concept and implementing this in a resftul way. - I define the drop zone <%=drop_receiving_element("list2", :url => copy_user_path(...)) %> which in this case is the second <ul>. I use restful desing an have a method copy user(resulting in copy_user_path()) I want to supply parameter user (containing the user.id and user.group_id that is the id of the group to where the user is copied to) . I don''t see how I define the parameters I pass to copy_user_path (in example above it is the user). how do I build the user parameter? regards, Stijn --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---