Hi,
I'm newbie to groovy. How can we call domain methods from controller in Grails.
Controller :
def results = User.fetch_results
User Domain :
def fetch_results {
def users = this.get(1)
}
Sorry if the above code is wrong, i need to know how to access domain methods from controller.
thanks.