Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 237857
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T20:27:33+00:00 2026-05-11T20:27:33+00:00

users can be dragged to nodes to move or copy a user from one

  • 0

users can be dragged to nodes to move or copy a user from one node to another node. I have a problem with how I send the variables to user move and copy methods in userscontrol.

The drop zone is defined as:

<%=drop_receiving_element "move_drop_zone_"+node.id.to_s, 
  :update => "users", 
  :url => move_user_path(:id => node.id),
  :method => :put,
  :accept => "move_user" %>

The draggable user in a node is defined as:

<span id="move_user_<%=user.id%>_<%= node.id.to_s %>" class="move_user" >
  <%=image_tag('move_user.png') %>
</span> 
<%= draggable_element "move_user_" + user_node, :revert => true %>

I also added to routes:

map.resources :users, :member => { :move => :put, :copy => :put }

The problem is that I don’t know how to pass the user id and from node id. Since it’s a put operation I only see the id (which is the target node id) defined in the url of drop_receiving_element.

Thanks,
Stijn

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T20:27:33+00:00Added an answer on May 11, 2026 at 8:27 pm

    Is it possible that you could use the :with parameter of drop_receiving_element?

    drop_receiving_element Documentation

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an application where multiple users can login(not simultaneously though!only a single user
I'm trying to allow the user to move the 'post-it' notes from one un-ordered
I have a UserControl containing interactive elements within a grid. The user can move
In one of my views that can be dragged, if the user drops it
users can sign up to my site and get a standard url (username.teamgeisthq.com) from
I have website where users can login with their Facebook account. I am using
I have a dynamic form that users can add/delete sets of input fields. I
I have a website and right now users can just open a directory and
I have a game which displays an array of colored blocks. The user can
I have a data grid where users can drag columns and reposition them. But

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.