Item
is a model class and Items
is a controller class. Now I am trying to use reverse routing with parameter, but it fails. How to fix it?
view:
@(item: Item)
<a href="@routes.Items.delete(@item.id)">delete</a>
routes:
GET /items/$id<[0-9]+> controllers.Items.show(id: Long)
GET /items/add controllers.Fruits.addForm()
POST /items/add controllers.Items.add()
DELETE /items/$id<[0-9]+> controllers.Fruits.delete(id: Long)
error which I get
illegal start of simple expression
and it points at second @
character