i am new to grails and i want to use a method from a specific controller in my index.gsp
In Index.gsp i tried
<g:each in="${MyController.myList}" var="c">
<p>${c.name}</p>
</g:each>
but it says that the property is not available.
MyController contains a property like:
def myList = {
return [My.findAll() ]
}
What am i doing wrong? Is there a good tutorial about the communication between the grails-parts?
Or is there a better way to get information printed via gsp?
Thanks