1
我安裝太陽黑子時出現問題。我將它們包含在我的Gem文件中:安裝太陽黑子燈
gem 'sunspot_solr', github: 'sunspot/sunspot', branch: 'master'
gem 'sunspot_rails', github: 'sunspot/sunspot', branch: 'master'
安裝了該軟件包。但是,當我嘗試安裝它rails generate sunspot_rails:install
錯誤彈出說uninitialized constant Sunspot::Rails::Application (NameError)
對於完整的錯誤,請閱讀下面
/home/aws003/Desktop/Raghuveer/Sunspot/config/application.rb:10:in `<module:Sunspot>': uninitialized constant Sunspot::Rails::Application (NameError)
from /home/aws003/Desktop/Raghuveer/Sunspot/config/application.rb:9:in `<top (required)>'
from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/railties-4.0.2/lib/rails/commands.rb:43:in `require'
from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/railties-4.0.2/lib/rails/commands.rb:43:in `<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>'
片斷我應該怎麼做來解決這個問題?
請包含您的config/application.rb,並嘗試刪除github和分支。 –