adjusting rails dir