Thats working for me (scala 2.10.4, spray 1.3.1):

import spray.routing._
import spray.http._
import MediaTypes._

class ServiceActor extends Actor with ServiceHello {
  def actorRefFactory = context

  def receive = runRoute(testRoute)

trait ServiceHello extends HttpService {

  case class Color(keyword: String, sort_order: Int, sort_key: String)

  val testRoute =
    path("test") {
      parameters('[String], '[Int], '[String]).as(Color) { color =>
        //handleTestRoute(color) // route working with the Color instance
        complete {
          <h1>test route</h1>

Don't know what Controls is, so I just commented it.

Related Query

More Query from same tag