I am using IDEA 13 with Play 2.2.1 and was doing the examples on the play site.
public static Result index() {
return redirect(routes.Application.tasks())
I had to add the below plugin entry to my plugins.sbt (under projects folder) for intellij IDEA to resolve play variables like routes etc.
addSbtPlugin("com.github.mpeltonen" % "sbt-idea" % "1.6.0")
Note: After adding the above plugin to plugins.sbt, run the below commands to rebuild idea and resolve the issue: