Skip to content

Views broken when generating controllers/views for a Grails plugin #21

@rexsun

Description

@rexsun

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()]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions