Difference between render and model in Grails -
what difference between render , model in grails?
example render(text : map.tojson(list),contenttype:"text/json") [text : map.tojson(list)]
i think must go through grails documentation first more detailed understanding. however, in rad (rapid application development) framework, these concepts identical.
render in sense used render response. decided key words use. example in question, have asked action in controller send response request json string.in question, map model.
model on other hand trying render. put in simply, model object. object contain single object domain entity or contain lot more. in grails, use model keyword when trying render view or template. model passed on template , can have access objects in model directly.
Comments
Post a Comment