demo of using rails entity attribute value pattern