- xml - AJAX/Jquery XML 解析
- 具有多重继承的 XML 模式
- .net - 枚举序列化 Json 与 XML
- XML 简单类型、简单内容、复杂类型、复杂内容
我今天要更新到 Rails 4.1。我运行了 bundle update rails
,一切似乎都更新得很好。但是,当我现在尝试运行任何 rake
任务时,我收到以下错误:
$ rake --trace
rake aborted!
LoadError: cannot load such file -- active_support/core_ext/string/encoding
/Users/foobar/.rvm/gems/ruby-2.0.0-p247@gemset/gems/activesupport-4.1.0/lib/active_support/dependencies.rb:247:in `require'
/Users/foobar/.rvm/gems/ruby-2.0.0-p247@gemset/gems/activesupport-4.1.0/lib/active_support/dependencies.rb:247:in `block in require'
/Users/foobar/.rvm/gems/ruby-2.0.0-p247@gemset/gems/activesupport-4.1.0/lib/active_support/dependencies.rb:232:in `load_dependency'
/Users/foobar/.rvm/gems/ruby-2.0.0-p247@gemset/gems/activesupport-4.1.0/lib/active_support/dependencies.rb:247:in `require'
/Users/foobar/.rvm/gems/ruby-2.0.0-p247@gemset/gems/bsm-sso-client-0.8.4/lib/bsm/sso/client/url_helpers.rb:1:in `<top (required)>'
/Users/foobar/.rvm/gems/ruby-2.0.0-p247@gemset/gems/bsm-sso-client-0.8.4/lib/bsm/sso/client/strategies/ticket.rb:2:in `<class:Ticket>'
/Users/foobar/.rvm/gems/ruby-2.0.0-p247@gemset/gems/bsm-sso-client-0.8.4/lib/bsm/sso/client/strategies/ticket.rb:1:in `<top (required)>'
/Users/foobar/.rvm/gems/ruby-2.0.0-p247@gemset/gems/activesupport-4.1.0/lib/active_support/dependencies.rb:247:in `require'
/Users/foobar/.rvm/gems/ruby-2.0.0-p247@gemset/gems/activesupport-4.1.0/lib/active_support/dependencies.rb:247:in `block in require'
/Users/foobar/.rvm/gems/ruby-2.0.0-p247@gemset/gems/activesupport-4.1.0/lib/active_support/dependencies.rb:232:in `load_dependency'
/Users/foobar/.rvm/gems/ruby-2.0.0-p247@gemset/gems/activesupport-4.1.0/lib/active_support/dependencies.rb:247:in `require'
/Users/foobar/.rvm/gems/ruby-2.0.0-p247@gemset/gems/bsm-sso-client-0.8.4/lib/bsm/sso/client/strategies.rb:5:in `<top (required)>'
/Users/foobar/.rvm/gems/ruby-2.0.0-p247@gemset/gems/activesupport-4.1.0/lib/active_support/dependencies.rb:247:in `require'
/Users/foobar/.rvm/gems/ruby-2.0.0-p247@gemset/gems/activesupport-4.1.0/lib/active_support/dependencies.rb:247:in `block in require'
/Users/foobar/.rvm/gems/ruby-2.0.0-p247@gemset/gems/activesupport-4.1.0/lib/active_support/dependencies.rb:232:in `load_dependency'
/Users/foobar/.rvm/gems/ruby-2.0.0-p247@gemset/gems/activesupport-4.1.0/lib/active_support/dependencies.rb:247:in `require'
/Users/foobar/.rvm/gems/ruby-2.0.0-p247@gemset/gems/bsm-sso-client-0.8.4/lib/bsm/sso/client.rb:100:in `<top (required)>'
/Users/foobar/.rvm/gems/ruby-2.0.0-p247@gemset/gems/bsm-sso-client-0.8.4/lib/bsm-sso-client.rb:1:in `require'
/Users/foobar/.rvm/gems/ruby-2.0.0-p247@gemset/gems/bsm-sso-client-0.8.4/lib/bsm-sso-client.rb:1:in `<top (required)>'
/Users/foobar/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `require'
/Users/foobar/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `block (2 levels) in require'
/Users/foobar/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in `each'
/Users/foobar/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in `block in require'
/Users/foobar/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in `each'
/Users/foobar/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in `require'
/Users/foobar/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler.rb:132:in `require'
/Users/foobar/Work/VerveWireless/gemset/config/application.rb:5:in `<top (required)>'
/Users/foobar/Work/VerveWireless/gemset/Rakefile:5:in `require'
/Users/foobar/Work/VerveWireless/gemset/Rakefile:5:in `<top (required)>'
/Users/foobar/.rvm/gems/ruby-2.0.0-p247@gemset/gems/rake-10.3.2/lib/rake/rake_module.rb:28:in `load'
/Users/foobar/.rvm/gems/ruby-2.0.0-p247@gemset/gems/rake-10.3.2/lib/rake/rake_module.rb:28:in `load_rakefile'
/Users/foobar/.rvm/gems/ruby-2.0.0-p247@gemset/gems/rake-10.3.2/lib/rake/application.rb:687:in `raw_load_rakefile'
/Users/foobar/.rvm/gems/ruby-2.0.0-p247@gemset/gems/rake-10.3.2/lib/rake/application.rb:94:in `block in load_rakefile'
/Users/foobar/.rvm/gems/ruby-2.0.0-p247@gemset/gems/rake-10.3.2/lib/rake/application.rb:176:in `standard_exception_handling'
/Users/foobar/.rvm/gems/ruby-2.0.0-p247@gemset/gems/rake-10.3.2/lib/rake/application.rb:93:in `load_rakefile'
/Users/foobar/.rvm/gems/ruby-2.0.0-p247@gemset/gems/rake-10.3.2/lib/rake/application.rb:77:in `block in run'
/Users/foobar/.rvm/gems/ruby-2.0.0-p247@gemset/gems/rake-10.3.2/lib/rake/application.rb:176:in `standard_exception_handling'
/Users/foobar/.rvm/gems/ruby-2.0.0-p247@gemset/gems/rake-10.3.2/lib/rake/application.rb:75:in `run'
/Users/foobar/.rvm/gems/ruby-2.0.0-p247@gemset/gems/rake-10.3.2/bin/rake:33:in `<top (required)>'
/Users/foobar/.rvm/gems/ruby-2.0.0-p247@gemset/bin/rake:23:in `load'
/Users/foobar/.rvm/gems/ruby-2.0.0-p247@gemset/bin/rake:23:in `<main>'
/Users/foobar/.rvm/gems/ruby-2.0.0-p247@gemset/bin/ruby_noexec_wrapper:14:in `eval'
/Users/foobar/.rvm/gems/ruby-2.0.0-p247@gemset/bin/ruby_noexec_wrapper:14:in `<main>'
似乎是一个依赖性问题,但我无法弄清楚缺少什么。任何帮助都会很棒,谢谢!
最佳答案
经过一些挖掘,我在发行说明的 Rails 4.1 删除部分找到了它。
删除了已弃用的 String#encoding_aware?核心扩展(core_ext/string/encoding)。
因此必须删除或修改此行 require 'active_support/core_ext/string/encoding'
的任何实例。
关于ruby-on-rails - Rails 4.1 - LoadError : cannot load such file -- active_support/core_ext/string/encoding,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23962018/
我确实安装了下面提到的 ruby 东西 当我尝试执行 chef-client 时,我收到下面提到的错误 c:\RubyDevKit>chef-client C:/Ruby193/lib/ruby/
完整堆栈跟踪: /Users/galharth/.rvm/gems/ruby-2.3.0/gems/activesupport-4.2.5/lib/active_support/dependencie
我尝试使用 Ruby(在 Windows 下)连接到数据库。为此: 在 C:\Ruby193 安装 Ruby 安装 devkit (c:\ruby193\devkit)。运行“ruby dk.rb i
当我尝试在命令行中包含一个库时,我收到 LoadError 消息 $ ruby -v ruby 1.8.7 (2012-06-29 patchlevel 370) $ gem list | grep
这里的 Ruby 新手试图弄清楚如何使用 Gem,到目前为止,体验并不是很好。 在通过 gem 安装 mysql2 之后,我尝试在一个简单的文件中使用它。 require 'mysql2'#clien
我已经按照 https://github.com/cucumber/cucumber-rails#installation 在新的 Rails 4 应用程序中安装了 Cucumber-rails ge
在我的应用程序中;当我提交表单时,出现此错误: LoadError at /questions Unable to autoload constant Message, expected /app/m
似乎自动加载器正在加载 lib/tools/address 而不是我的模型 地址抛出以下错误 LoadError: Unable to autoload constant Address, expec
我想使用 smarter_csv gem,但是当我在代码中写入 require "smarter_csv" 时,它会给我以下错误消息: /System/Library/Frameworks/Ruby.
我刚开始使用 ruby,但在使用 bundle 时遇到困难。 bundle install 我的错误: /usr/local/lib/ruby/site_ruby/2.1.0/rubygems/c
在这个应用程序上一切正常,现在我在尝试推送到 Heroku 时得到了这个: Counting objects: 28, done. Delta compression using up to 4 th
我是 ruby 新手。我只是安装成功模块 libxml-ruby。当我运行一个需要“xml”的脚本时,它出现错误: C:/Ruby23-x64/lib/ruby/2.3.0/rubygems/core
我运行 pod install,但出现错误 LoadError - cannot load such file -- xcodeproj/prebuilt/x86_64-darwin12.5.0-2.
我正在尝试向我的 Xcode 项目添加一个 pod。我收到此错误: LoadError - no such file to load -- xcodeproj/prebuilt/universal-d
这个问题困扰了我几天...每当我使用 .bring_to_front 方法时 require "rubygems" require "watir" browser = Watir::Browser::
例如,当我需要一个文件(称为 st.rb)时: require 'rubygems' require 'mongrel' class TestHandler > require 'st.rb' Loa
我已经在 Ubuntu 上安装了 Julia 1.5.3,但 IJulia falis 带有 LoadError,如屏幕截图所示。 第一个conda环境的路径很不对,这个是在Ubuntu上跑的。 Pr
我在运行以下 Julia 代码片段时遇到错误 using GR, Interact t = 0:0.01:1 @manipulate for phi=0:0.1:6.28 plot(cos.(2
我无法运行 ruby Web 应用程序,并且收到以下消息错误: rackup webapp/config.ru --debug nil Exception `LoadError' at /usr/
我正在尝试按照本教程使用设计创建 token 身份验证: http://www.strukturedkaos.com/2011/09/19/soup-to-nuts-token-authenticat
我是一名优秀的程序员,十分优秀!