embedthis/ejs-1 — Issue #98: Controller.renderRaw throws error
Author: Wilkins-
Created: 2011-10-13 18:04:24+00:00
State: open

In a controller I am trying to execute renderRaw with an array containing JSON objects. When I go to the URL to access the action that has this code I get the following error:

Native function "writeRaw" is not defined
Stack:
[00] web/Controller.es, Controller.renderRaw, line 510 -> writeRaw(args)
[01] controllers/User.es, UserController.list, line 16 -> renderRaw(myArray.toJSON());
[02] web/Controller.es, Controller.doAction, line 306 -> this[actionName]()

According to the API documentation this should work with an Array as the argument.