correcting rails paths