use last segment of route_path when determining resource name