I probably have misconfigured my route file for play-1.2.5 – below is the relevant route file part & the URL being used:
URL:
GET /application/autoComplete?term=mac
Route:
GET /autoComplete/{term} controllers.Application.AutoCompleteTerm
I also have the following route defined but its not getting picked up:
GET /autoComplete/ controllers.Application.AutoCompleteTerm
The route does not get hit – instead, I get a template not found exception:
play.exceptions.TemplateNotFoundException: Template not found
Any suggestions to help troubleshoot this will be quite welcome. thanks
The route:
…is wrong. It should be like this:
This would correspond to the following URL:
The corresponding method in Application would look like this:
The URL:
…would need the following route:
…and the same method as above: