I am new to play framework (scala), and I still getting my way through my first web application. I just created a first method in my controller, index:
def index = UserAwareContextAction { implicit request =>
val subset = request.params.get("subset").getOrElse("all")
request.user match {
case Some(user) => selectIndex(request, subset)
case _ => Ok(views.html.index())
}
Now I need to figure out how to actually add params to my index request, I have a navigation scala class:
val index = GET.on(root).to{Application.index_}
So I am not pretty sure how this should be related , where to declare request params , how to pass it ? I don't know why play documentation doesn't seem relevant to me. Please any help, or a useful tutorial on how to get stared, I will appreciate a lot.