grails domain class .list() method with params
问题 I have two domains that are connected with one-to-many relation - One User may have many Associations. I want to view all associations that belong to this user. I'm using scaffolding plugin. So code that should return list of Associations in AssociationController looks lile this: def index(Integer max) { respond Association.list(params), model:[associationInstanceCount: Association.count()] } And on the User view page I have the following code: <g:form controller="Association" > <fieldset