Fix for GPSCAFFOLD-91, the scaffolding wasn't considering non existing instances in the show and edit. The isAttached is to prevent new instances (hitting the url without an id).