I get a error when I execute rails new myprojectname:
Gem::RemoteFetcher::FetchError: Errno::ETIMEDOUT: Operation timed out - SSL_connect (https://rubygems.org/gems/actionpack-5.0.2.gem)
An error occurred while installing actionpack (5.0.2), and Bundler cannot continue.
Make sure thatgem install actionpack -v '5.0.2'succeeds before bundling.

The error information points out:
So, in your terminal you should execute the:
Then you
rails new your project nameagain. and overwrite the conflict place.