fix rails/ruby install error

fix rails/ruby install error