我正在尝试访问控制器中的 List[String],所以我编写了代码:我的视图是
@(path:List[String])
...
<button type=submit id=imgButton><a href="@routes.Application.confirmDelete(path)">Delete</a></button>
我的路线是
GET /confirmDelete/:path controllers.Application.confirmDelete(path:List[String])
我的控制器是:
def confirmDelete(path:List[String])=Action{
Ok("deleted "+path);
}
但这给了我错误
No URL path binder found for type List[String]. Try to implement an implicit PathBindable for this type.