update rails to work like normal rails app