I have two Domain classes (Drives & Computer)
class Computer {
static hasMany = [drives:Drive]
String computerName
static constraints = {
computerName(nullable:false)
}
}
class Drive {
static belongsTo = Computer
Computer computerName
static constraints = {
computerName(nullable:false)
}
}
When the application is run and the DriveController is clicked, the drop menu for Computer Name shows something like: computer: 1
My desired output is what I actually have entered for the computer: 1 which in my instance was Owner987
I have generated my views and believe I need to edit a g.link, perhaps in show.gsp of Drive.
All help is appreciated.