1. Apps created with the rails new command will not succeed in automating the bundle install, and depending on the error prompt, it may be the security of the certificate that is being wall and HTTPS. As a development environment, choose to bypass the method, in the directory C:\ProgramData build GEMRC file, inside only one line of code can:
: ssl_verify_mode:0
2. Run the command gem sources-a http://gems.ruby-china.org to add the Ruby-china gem Source to the system source.
3. Run the command gem sources, display the list of configured system sources, and then use the Gem sources-r URL to delete the other invalid gem sources in turn, such as "Gem Sources-r https://rubygems.org/"
4. In the Rails app directory Run command bundle install--retry 10, install update gems. The reason for setting the number of retry is that the GEM Service cloud storage server where Ruby-china resides is currently less stable and needs to execute the bundle install repeatedly to install successfully.
The resolution process references the website information in the error prompt, which is no longer listed here.
The main points of new rails application in the wall (Windows 7 environment, rails 4.2.0)