Tried Rails optional solution