Contained Within
Find More Documentation
Featured Support Resources
| Download this book in PDF (1199 KB)
Creating the hello Controller
-
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 = { }
}
|