【发布时间】:2014-08-09 10:32:49
【问题描述】:
我的申请中有这条路线:
GET /assets/*file controllers.Assets.at(path="/public", file)
我在 scala 模板中使用了反向路由,它工作正常:
<link rel="stylesheet" media="screen" href="@routes.Assets.at("stylesheets/bootstrap.css")">
但是当我为图片添加这条路线时:
GET /images/*file controllers.Assets.at(path="/public/images", file)
我在正常工作的 scala 模板中遇到以下错误:
not enough arguments for method at: (path: String, file: String)play.api.mvc.Call.
Unspecified value parameter file.
我不能在 Play Framework 2 或其他的路由中使用 controllers.Assets.at 两次?
【问题讨论】:
标签: playframework routes playframework-2.0 assets