How to change the grails template file to add Prefix to the name of the controller and view package. suppose i have User Domain, while using command create-scaffold-controller User should create AdminUserController.groovy and similarly create adminUser package for views instead of default UserCOntroller and respective views
How to Create Controller and Views with diffrent name Grails scaffolding
845 views Asked by Ankit Tater At
2
Install the templates on the project with grails install-templates and change the name on src/templates/scaffolding/Controller.groovy:
and the package name you can control on the create-scaffold-controller:
or change directly in the template with variables:
instead of: