           ctx.data = {}
           copy_data_to ctx.data, [req.query, req.params, req.body]
 
-        f.apply ctx, [req, res, next]
+        f.call ctx, req, res, next
 
     if typeof r.handler is 'string'
       app[r.verb] r.path, r.middleware, (req, res) ->

          next: next
          param: p
        apply_helpers ctx
        callback.apply ctx

    for k, v of obj
      @app.param k, build v

          ctx.data = {}
          copy_data_to ctx.data, [req.query, req.params, req.body]

        result = r.handler.call ctx, req, res, next

        res.contentType(r.contentType) if r.contentType?
        if typeof result is 'string' then res.send result
