updated code for install rails