update rails messages controller