return renderToResponse("javango/polls/templates/detail.ftl", context);
}
public HttpResponse results(HttpRequest request, Long poll_id) throws HttpException {
Poll p = javango.getObjectOr404(Poll.class, poll_id);
Map<String, Object> context = new HashMap<String, Object>();
context.put("poll", p);
return renderToResponse("javango/polls/templates/results.ftl", context);