Update Rails to 4.1.7 and update gems