rails environment fix