gpt4 book ai didi

ruby-on-rails - 获取 `open_loop' : HTTP redirection loop error with Ember-Rails

转载 作者:行者123 更新时间:2023-12-04 20:05:47 25 4
gpt4 key购买 nike

我正在尝试运行:

rails new emberRailsApp -m http://emberjs.com/edge_template.rb

但这是我得到的输出:

/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/open-uri.rb:231:in `open_loop': HTTP redirection loop: http://emberjs.com/edge_template.rb (RuntimeError)
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/open-uri.rb:149:in `open_uri'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/open-uri.rb:688:in `open'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/open-uri.rb:34:in `open'
from /Library/Ruby/Gems/2.0.0/gems/thor-0.19.1/lib/thor/actions.rb:218:in `apply'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.0.4/lib/rails/generators/app_base.rb:101:in `apply_rails_template'
from (eval):1:in `apply_rails_template'
from /Library/Ruby/Gems/2.0.0/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
from /Library/Ruby/Gems/2.0.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
from /Library/Ruby/Gems/2.0.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `block in invoke_all'
from /Library/Ruby/Gems/2.0.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `each'
from /Library/Ruby/Gems/2.0.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `map'
from /Library/Ruby/Gems/2.0.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `invoke_all'
from /Library/Ruby/Gems/2.0.0/gems/thor-0.19.1/lib/thor/group.rb:232:in `dispatch'
from /Library/Ruby/Gems/2.0.0/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.0.4/lib/rails/commands/application.rb:43:in `<top (required)>'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:58:in `require'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:58:in `require'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.0.4/lib/rails/cli.rb:15:in `<top (required)>'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:58:in `require'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:58:in `require'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.0.4/bin/rails:9:in `<top (required)>'
from /usr/bin/rails:23:in `load'
from /usr/bin/rails:23:in `<main>'

有人对此有任何想法吗?

最佳答案

我在没有 sudo 和 rvm 的情况下通过下载文件并在本地引用它解决了这个问题:

touch local_rails_ember_template.rb
curl http://emberjs.com/edge_template.rb > local_rails_ember_template.rb
rails new my_app_name -m local_rails_ember_template.rb

关于ruby-on-rails - 获取 `open_loop' : HTTP redirection loop error with Ember-Rails,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23450270/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com