I have configured some restful resources in grails like this

```
"/book/$id?"(resource:"book")
"/author/$id?"(resource:"author")

```

But I want to to this more generic like

```
"/$controller/$id?"(resource: controller)

```

which doesn't work... (getting 404)

How can i configure a generic url mapping for restful resources in grails?