ruby-on-rails-3 – jasmine setup错误栏3.1 ActiveSupport :: Concern(NameError)

前端之家收集整理的这篇文章主要介绍了ruby-on-rails-3 – jasmine setup错误栏3.1 ActiveSupport :: Concern(NameError)前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我正试图按照他们网站上的描述设置Jasmine Gem.跑完后:
bundle exec jasmine init

我收到一个错误

/Users/sts-158imac/.rvm/gems/ruby-1.9.2-p180@fmn/gems/railties-3.1.0.rc1/lib/rails/railtie/configurable.rb:4:in `<module:Configurable>': uninitialized constant ActiveSupport::Concern (NameError)
from /Users/sts-158imac/.rvm/gems/ruby-1.9.2-p180@fmn/gems/railties-3.1.0.rc1/lib/rails/railtie/configurable.rb:3:in `<class:Railtie>'
from /Users/sts-158imac/.rvm/gems/ruby-1.9.2-p180@fmn/gems/railties-3.1.0.rc1/lib/rails/railtie/configurable.rb:2:in `<module:Rails>'
from /Users/sts-158imac/.rvm/gems/ruby-1.9.2-p180@fmn/gems/railties-3.1.0.rc1/lib/rails/railtie/configurable.rb:1:in `<top (required)>'
from /Users/sts-158imac/.rvm/gems/ruby-1.9.2-p180@fmn/gems/railties-3.1.0.rc1/lib/rails/railtie.rb:129:in `inherited'
from /Users/sts-158imac/.rvm/gems/ruby-1.9.2-p180@fmn/gems/jasmine-1.0.2.1/lib/jasmine/railtie.rb:3:in `<module:Jasmine>'
from /Users/sts-158imac/.rvm/gems/ruby-1.9.2-p180@fmn/gems/jasmine-1.0.2.1/lib/jasmine/railtie.rb:2:in `<top (required)>'
from /Users/sts-158imac/.rvm/gems/ruby-1.9.2-p180@fmn/gems/jasmine-1.0.2.1/lib/jasmine.rb:12:in `require'
from /Users/sts-158imac/.rvm/gems/ruby-1.9.2-p180@fmn/gems/jasmine-1.0.2.1/lib/jasmine.rb:12:in `<top (required)>'
from /Users/sts-158imac/.rvm/gems/ruby-1.9.2-p180@fmn/gems/jasmine-1.0.2.1/bin/jasmine:4:in `require'
from /Users/sts-158imac/.rvm/gems/ruby-1.9.2-p180@fmn/gems/jasmine-1.0.2.1/bin/jasmine:4:in `<top (required)>'
from /Users/sts-158imac/.rvm/gems/ruby-1.9.2-p180@fmn/bin/jasmine:19:in `load'
from /Users/sts-158imac/.rvm/gems/ruby-1.9.2-p180@fmn/bin/jasmine:19:in `<main>'

解决方法

而不是尝试使用bundle exec jasmine init设置Jamine

尝试使用rails g jasmine:在你的Gemfile中插入jasmine gem之后捆绑安装后可用的安装.`

原文链接:https://www.f2er.com/ruby/268119.html

猜你在找的Ruby相关文章