create-scaffold-controllercommand creates a controller that scaffolds the given domain class, based on convention.
grails create-scaffold-controller org.bookstore.Book
DescriptionCreates a dynamic scaffolding controller for the given domain class. If the domain class does not exist, the command will fail. With the above example, this command will create the file
grails-app/controllers/org/bookstore/BookController.groovythat declares a controller class containing a static
scaffoldproperty.Note that this command is just for convenience and you can also create dynamic scaffolding controllers in your favourite text editor or IDE if you choose.Usage:
grails create-scaffold-controller [name]
CreatedFile- When the controller is created