This is the reason you're getting the blowup. by deleting this line you've removed your devise user paths. if you restore it thing should return to the way they were working.