updates rails version and fixes bugs