Change to the as-install/grails/samples/helloworld directory.
Run the grails create-controller hello command.
The grails create-controller command creates a controller file that you can modify in the /grails/samples/helloworld/grails-app/controllers directory:
Edit the generated HelloController.groovy file so that it looks as follows:
class HelloController { def world = { render "Hello World!" } //def index = { } } |