Fixed rails paths for using history