Views broken when generating controllers/views for a Grails plugin
rexsun opened this issue · comments
RexSun commented
Issue as titled. The comparison shows when generate-all for app, all methods/templates will get "Instance" appended:
Both app and plugin referenced scaffolding by -- compile ":scaffolding:2.0.2"
Generated controller method for app:
def index(Integer max) {
params.max = Math.min(max ?: 10, 100)
respond TestCase.list(params), model:[testCaseInstanceCount: TestCase.count()]
}
Generated controller method for plug-in:
def index(Integer max) {
params.max = Math.min(max ?: 10, 100)
respond TestCase.list(params), model:[testCaseCount: TestCase.count()]
}