Displaying 1 result from an estimated 1 matches for "change_link".
Did you mean:
changelink
2006 Jun 16
1
sortable acts_as_tree with heirarchy
...element ''menu'',
:url => { :action => "sort", :id => @navigation },
:complete => visual_effect(:highlight, ''menu''), :tree => true
%>
<div id="debug">
</div>
Here''s the action:
def change_hierarchy
change_links params[:menu]
end
def change_links (links_hash)
parent_id = links_hash[:id] || Link.root.id
links_hash.each do |key, value|
next if key == "id"
link = Link.find (value[:id])
link.display_order = key
link.parent_id = parent_id...