2011-06-08 53 views
7

我想設置茉莉花寶石,如其網站上所述。運行後:茉莉花安裝錯誤軌3.1 ActiveSupport :: Concern(NameError)

bundle exec jasmine init 

我得到一個錯誤:

/Users/sts-158imac/.rvm/gems/[email protected]/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/[email protected]/gems/railties-3.1.0.rc1/lib/rails/railtie/configurable.rb:3:in `<class:Railtie>' 
from /Users/sts-158imac/.rvm/gems/[email protected]/gems/railties-3.1.0.rc1/lib/rails/railtie/configurable.rb:2:in `<module:Rails>' 
from /Users/sts-158imac/.rvm/gems/[email protected]/gems/railties-3.1.0.rc1/lib/rails/railtie/configurable.rb:1:in `<top (required)>' 
from /Users/sts-158imac/.rvm/gems/[email protected]/gems/railties-3.1.0.rc1/lib/rails/railtie.rb:129:in `inherited' 
from /Users/sts-158imac/.rvm/gems/[email protected]/gems/jasmine-1.0.2.1/lib/jasmine/railtie.rb:3:in `<module:Jasmine>' 
from /Users/sts-158imac/.rvm/gems/[email protected]/gems/jasmine-1.0.2.1/lib/jasmine/railtie.rb:2:in `<top (required)>' 
from /Users/sts-158imac/.rvm/gems/[email protected]/gems/jasmine-1.0.2.1/lib/jasmine.rb:12:in `require' 
from /Users/sts-158imac/.rvm/gems/[email protected]/gems/jasmine-1.0.2.1/lib/jasmine.rb:12:in `<top (required)>' 
from /Users/sts-158imac/.rvm/gems/[email protected]/gems/jasmine-1.0.2.1/bin/jasmine:4:in `require' 
from /Users/sts-158imac/.rvm/gems/[email protected]/gems/jasmine-1.0.2.1/bin/jasmine:4:in `<top (required)>' 
from /Users/sts-158imac/.rvm/gems/[email protected]/bin/jasmine:19:in `load' 
from /Users/sts-158imac/.rvm/gems/[email protected]/bin/jasmine:19:in `<main>' 

回答

5

而不是試圖建立Jamine與bundle exec jasmine init

嘗試使用rails g jasmine:install,一旦你在插入茉莉寶石後,捆綁安裝,這將是可用你的Gemfile。 `