Created
July 23, 2010 22:27
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def list = { | |
[:] | |
} | |
def renderList = { | |
params.max = Math.min(params.max ? params.int('max') : 10, 100) | |
[productIds: Product.list(params)*.id, productInstanceTotal: Product.count()] | |
} | |
def renderProduct = { | |
[productInstance: Product.get(params.id),productImage: (params.list('color')[0]?:'white')+".png", | |
colors:['yellow','red','green','blue']] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment