def nested_dropdown(items, text = 'post_title')
      result = []
      items.map do |item, sub_items|
        name = text == 'post_title' && !item.parent.blank? && item.parent.disabled == 'Y' ? item[text.to_sym] + " (parent: #{item.parent.post_title})" : item[text.to_sym]
        result << [('- ' * item.depth) + name.html_safe, item[:id]]
        result += nested_dropdown(sub_items, text) unless sub_items.blank?
      end
      result
    end
def nested_dropdown(items, text = 'post_title')
      result = []
      items.map do |item, sub_items|
        name = text == 'post_title' && !item.parent.blank? && item.parent.disabled == 'Y' ? item[text.to_sym] + " (parent: #{item.parent.post_title})" : item[text.to_sym]
        result << [('- ' * item.depth) + name.html_safe, item[:id]]
        result += nested_dropdown(sub_items, text) unless sub_items.blank?
      end
      result
    end
reutrns a nested menu
 Params:
 +item+:: hash of menu items
 +text+:: the hash value that you want to use as the title text