I have a Grails 2.0.0 project that was created using grails create-app
. In my HTML and GSP files, I\'m trying to include jquery.js
. I\'ve tried all of
In grails 2.x you can also do:
grails.resources.modules = {
core {
dependsOn 'jquery, jquery-ui'
}
}
in Config.groovy
Then in your GSP simply place the following in your HEAD
element:
The advantage is you can specify other CSS/JS files to depend on, makes it nice and clean in the GSP. This is also where you can override the versions of jQuery/jQuery-UI.