toggle ruby with cookie