2016-03-29 13 views
3

Annotate gem ile ilgili bazı problemler yaşıyorum. Ben ruby ​​2.3 çalıştırıyorum ve 5beta3 raylar. Ben bu olsun Annotatesekmesindeki komuta aramaya giderken yumağı yüklemek Annotate Gem yakut rayları 5

[email protected]:~/crash$ annotate 
WARN: Unresolved specs during Gem::Specification.reset: 
     activerecord (< 6.0, >= 3.2) 
WARN: Clearing out unresolved specs. 
Please report a bug if this causes problems. 
/usr/local/lib/ruby/gems/2.3.0/gems/annotate-2.7.0/lib/annotate.rb:12:in `require': cannot load such file -- active_support/core_ext/hash/indifferent_ 
access (LoadError) 
     from /usr/local/lib/ruby/gems/2.3.0/gems/annotate-2.7.0/lib/annotate.rb:12:in `rescue in <top (required)>' 
     from /usr/local/lib/ruby/gems/2.3.0/gems/annotate-2.7.0/lib/annotate.rb:6:in `<top (required)>' 
     from /usr/local/lib/ruby/gems/2.3.0/gems/annotate-2.7.0/bin/annotate:18:in `require' 
     from /usr/local/lib/ruby/gems/2.3.0/gems/annotate-2.7.0/bin/annotate:18:in `<top (required)>' 
     from /usr/local/bin/annotate:22:in `load' 
     from /usr/local/bin/annotate:22:in `<main>' 

emin

neler olduğunu ... sadece iyi iş gibi görünüyor ama.

cevap

3

Gem'i terminalden çalıştırmak isterseniz, sistem taşları yerine toplu halde bulunan taşlarınızı kullanmak için bundle exec annotate User'u deneyin. Model bilgilerini annotate'dan sonra vermeniz gerekir.

+0

"Rake db: migrate" ifadesinin kullanılması, bazen "açıklama" başarısız olduğunda çalışır. Raylar 5 ve üstü için, devel dalını github: https://www.bountysource.com/issues/41011908-rake-12-0-0-support adresinden kullanmanız gerekebilir. – sventechie