當我嘗試通過rails new new_project
生成一個Rails應用程序,我收到此錯誤:URI :: InvalidURIError(紅寶石版本:1.9.3,Rails的:3.2.15)
create
create README.rdoc
create Rakefile
create config.ru
create .gitignore
create Gemfile
create app
........
........
create vendor/assets/stylesheets
create vendor/assets/stylesheets/.gitkeep
create vendor/plugins
create vendor/plugins/.gitkeep
run bundle install
/home/manish/.rvm/rubies/ruby-1.9.3-p545/lib/ruby/1.9.1/uri/generic.rb:213:\
in ` 'initialize': the scheme http does not accept registry \
part:manish:[email protected]_company.com:port_no; (or bad hostname?) (URI::InvalidURIError)
添加更多此錯誤它來時,我也運行gem install ruby-debug
。
Gemfile
:
source 'https://rubygems.org'
ruby '1.9.3'
gem 'rails', '3.2.15'
gem 'sqlite3'
group :assets do
gem 'sass-rails', '~> 3.2.3'
gem 'coffee-rails', '~> 3.2.1'
gem 'uglifier', '>= 1.0.3'
end
gem 'turbolinks', '1.1.1'
gem 'jbuilder', '1.0.2'
gem 'jquery-rails'
有人能解釋我這個錯誤是什麼,以及如何才能擺脫這件事?
你有哪些ruby和rails版本? – SSR
@SSR我已添加標題 – cyborg
@SSR當項目是新的時'routes.rb'沒有發揮任何作用,如果我沒有錯 – cyborg