module AdminHelper def show_parent_items_link(parent_item) @parent_items = @parent_item.ancestors.map{ |i| i.name } ( @parent_items.map{ |i| link_to(i, admin_items_path(:parent_name=>i) ) } << parent_item.name ).join("/").html_safe end end