my attempt at a proper erb template