Go 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.
Edit the generated HelloController.groovy file so it looks like this:
class HelloController {
def world = {
render "Hello World!"
}
//def index = { }
}