module AdminPanelHelpers def model_info app_models.collect do |m| link_txt = m.to_s.pluralize.underscore.humanize link_path = m.to_s.underscore.pluralize + "_path" if respond_to? link_path [ link_txt, link_path ] end end.compact end end