Categories
BLOG

play result

Play Framework: Result and Result.Status

I’m trying the very first example of play framework and I got this error

In my routes file:

In my controller (app/controllers/api/GeoTweetController)

And the compile error: Type mismatch: cannot convert from Results.Status to Result

So I change the index action to:

But in the play console I got this msg: Cannot use a method returning play.api.mvc.Result as an Handler

All I want to do is to return a simple JSON response (I will try it when I become capable of a simple “hello world”), smth like

Play Framework: Result and Result.Status I’m trying the very first example of play framework and I got this error In my routes file: In my controller