gswg-v2
gswg-v2 copied to clipboard
Problems with Scaffolding in Chapter 3
Hi,
I was exploring grails with this amazing book. While progressing through chapter : 3 I came across Scaffolding. I added "def scaffold = true" in both Race and Registration controller. But when I ran my application, clicking on controllers showed me error that index.gsp doesn't exist in grails templates. I changed the closure name to list and tried clicking on RaceController again and came across the following error which is preventing me from progressing ahead. Error dumped below :
Error processing GroovyPageView : Tag [paginate] is missing attirbute [total] at /race/list : 61 org.codehaus.groovy.grails.web.taglib.exceptions.GrailsTagException : Tag [paginate] is missing attirbute [total] at /race/list : 61
at race_list$_run_closure2.doCall(list:61) at race_list$_run_closure2.doCall(list) at race_list$_run(list:64) at java.lang.Thread.run(Thread.java : 662)