Grails “render” renders the template

后端 未结 4 2055
無奈伤痛
無奈伤痛 2021-02-06 01:20

In my Grails controller I\'m responding to an AJAX call and using render to return the text:

def ajaxRandomPersonName = {
    def person = get a ran         


        
4条回答
  •  庸人自扰
    2021-02-06 02:06

    We've found that explicitly returning false from the action fixes this.

    I believe doing render foo as JSON returns false implicitly.

提交回复
热议问题