我學習rails.I從https://github.com/diaspora/diaspora下載的代碼,但它不能run.It的錯誤代碼:名稱錯誤,未初始化的常量TurboDevAssets(NameError)
/home/a1/.rvm/rubies/ruby- 2.1.7/web/diaspora/config/environments/development.rb:42:in `block in <top (required)>': uninitialized constant TurboDevAssets (NameError)
from /home/a1/.rvm/gems/ruby-2.1.7/gems/railties-4.2.6/lib/rails/railtie.rb:210:in `instance_eval'
from /home/a1/.rvm/gems/ruby-2.1.7/gems/railties-4.2.6/lib/rails/railtie.rb:210:in `configure'
from /home/a1/.rvm/gems/ruby-2.1.7/gems/railties-4.2.6/lib/rails/railtie.rb:182:in `configure'
from /home/a1/.rvm/rubies/ruby-2.1.7/web/diaspora/config/environments/development.rb:1:in `<top (required)>'
的配置/環境/發展。 rb是
Diaspora::Application.configure do
....
# Speed up asset serving
config.middleware.insert 0, TurboDevAssets
end
如何解決該問題?
他的意思這裏什麼是該行添加到「Gemfile中」。它應該已經在「開發」部分,但是如果它沒有加載,請嘗試將其移動到您已知的部分中,然後將其移至所有條件之外,以便強制加載。 然後重新運行命令:RAILS_ENV = development bin/bundle install --jobs $(nproc)--deployment --with development --with test - with postgresql – Kaleb