setting the ruby version and updated rails to 4