I just started with grails in action book.
made the new app by grails create-app
then the book says to have the following code in the QuoteController.groovy
class QuoteController {
def index = {}
def home = {
render= "<h1>Real programmers do not each Quiche</h1>"
}
}
Now when I browse to page http://localhost:8080/qotd/quote/home I get the following error:
Error 500: groovy.lang.MissingPropertyException: No such property: render for class: QuoteController
Servlet: grails
URI: /qotd/grails/quote/home.dispatch
Exception Message: No such property: render for class: QuoteController
Caused by: groovy.lang.MissingPropertyException: No such property: render for class: QuoteController
Class: Unknown
At Line: [-1]
Code Snippet:
seems like 'render' is not a valid property? Any ideas what I could be doing wrong? I am using Grails 1.1.1