could not find a valid gem 'rails' (= 2.3.5), here is why
时间: 2024-05-26 12:16:49 浏览: 19
The error message you received indicates that the version of the Rails gem you are trying to install or use is not available or cannot be found.
In this case, it seems that you are trying to install version 2.3.5 of the Rails gem, which is an older version and may no longer be supported or available.
I would recommend trying to install a newer version of Rails, such as the latest stable release (currently 6.1.3), or a version that is compatible with your project's requirements.
You can do this by updating your Gemfile and running `bundle install` to install the required gems. Alternatively, you can try installing a specific version of Rails using the `gem install rails -v <version>` command.