Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

grails 2.0 <g:javascript> doesn't work

I have created a new grails project and run it, but I can't see the

< g:javascript library="application" />

anywhere in the source, it's like it doesn't get called at all, I'm not sure if this is a bug or not?

like image 258
toy Avatar asked Aug 06 '11 18:08

toy


1 Answers

Replace

<g:javascript library="application" />

with:

<g:javascript library="application" />
<r:layoutResources/>

This is a breaking change introduced by the new resources plugin

like image 173
Dónal Avatar answered Sep 28 '22 07:09

Dónal