fix confirmation and update rails