def route_and_method_from_resource_method_and_name_prefix(method, name_prefix)
      route_method = method.to_s.sub(/resource(s)?/) { $1 ? "#{name_prefix}#{route_name.pluralize}" : "#{name_prefix}#{route_name}" }
      return [Rails.application.routes.named_routes.get(route_method.sub(/_(path|url)$/,'').to_sym), route_method]
    end
def route_and_method_from_resource_method_and_name_prefix(method, name_prefix)
      route_method = method.to_s.sub(/resource(s)?/) { $1 ? "#{name_prefix}#{route_name.pluralize}" : "#{name_prefix}#{route_name}" }
      return [Rails.application.routes.named_routes.get(route_method.sub(/_(path|url)$/,'').to_sym), route_method]
    end
passed something like (^|.*_)resource(s)_.*(url|path)$, will
 return the [route, route_method]  for the expanded resource