Hi all,
I have problems combining drop_receiving_element and restful design.
I''m building an application where the admin can drop users in
dynamically created droppables
I need to pass an additional parameter that contains the id of the
droppable
<%=drop_receiving_element "move_drop_zone_"+node.id.to_s,
:update => "users",
:url => copy_user_path(:target_node_id => node.id),
#...
%>
Rails refuses to generate this route:
copy_user_url failed to generate from
{:target_node_id=>2, :action=>"copy",
:controller=>"users"}, expected:
{:controller=>"users", :action=>"copy"}, diff:
{:target_node_id=>2}
the copy user is a custom method
map.resources :users, :member => { :copy => :put }
Someone knows how to pass an extra parameter to my copy user method?
Thanks in advace
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
-~----------~----~----~----~------~----~------~--~---
Hi all,
I have problems combining drop_receiving_element and restful design.
I''m building an application where the admin can drop users in
dynamically created droppables
I need to pass an additional parameter that contains the id of the
droppable
<%=drop_receiving_element "move_drop_zone_"+node.id.to_s,
:update => "users",
:url => copy_user_path(:target_node_id => node.id),
#...
%>
Rails refuses to generate this route:
copy_user_url failed to generate from
{:target_node_id=>2, :action=>"copy",
:controller=>"users"}, expected:
{:controller=>"users", :action=>"copy"}, diff:
{:target_node_id=>2}
the copy user is a custom method
map.resources :users, :member => { :copy => :put }
Someone knows how to pass an extra parameter to my copy user method?
Thanks in advace
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
-~----------~----~----~----~------~----~------~--~---