I was following the manual
https://grails.github.io/grails2-doc/2.2.0/guide/single.html#ajax
there it says to put the following tag in head section
<g:javascript library="jquery" />
I created a sample application and a test controller called HomeController. I created index page and put the above tag in the head. When i load the page it throws the following error.
I am finding the error difficult to comprehend. I appreciate any help. Thanks!