未初始化的常量Sprockets :: Rails(NameError)

时间:2015-12-19 09:43:15

标签: sass ruby-on-rails-3.2

运行rails时出现以下错误。

/home/dev/.rvm/gems/ruby-2.0.0-p643/gems/bootstrap-sass-3.3.6/lib/bootstrap-sass/engine.rb:11:in `block in <class:Engine>': uninitialized constant Sprockets::Rails (NameError)

from /home/dev/.rvm/gems/ruby-2.0.0-p643/gems/railties-3.2.12/lib/rails/initializable.rb:30:in `instance_exec'
from /home/dev/.rvm/gems/ruby-2.0.0-p643/gems/railties-3.2.12/lib/rails/initializable.rb:30:in `run'
from /home/dev/.rvm/gems/ruby-2.0.0-p643/gems/railties-3.2.12/lib/rails/initializable.rb:55:in `block in run_initializers'
from /home/dev/.rvm/gems/ruby-2.0.0-p643/gems/railties-3.2.12/lib/rails/initializable.rb:54:in `each'
from /home/dev/.rvm/gems/ruby-2.0.0-p643/gems/railties-3.2.12/lib/rails/initializable.rb:54:in `run_initializers'
from /home/dev/.rvm/gems/ruby-2.0.0-p643/gems/railties-3.2.12/lib/rails/application.rb:136:in `initialize!'
from /home/dev/.rvm/gems/ruby-2.0.0-p643/gems/railties-3.2.12/lib/rails/railtie/configurable.rb:30:in `method_missing'
from /home/dev/Desktop/todo/config/environment.rb:5:in `<top (required)>'
from /home/dev/Desktop/todo/config.ru:3:in `block in <main>'
from /home/dev/.rvm/gems/ruby-2.0.0-p643/gems/rack-1.4.7/lib/rack/builder.rb:51:in `instance_eval'
from /home/dev/.rvm/gems/ruby-2.0.0-p643/gems/rack-1.4.7/lib/rack/builder.rb:51:in `initialize'
from /home/dev/Desktop/todo/config.ru:in `new'
from /home/dev/Desktop/todo/config.ru:in `<main>'
from /home/dev/.rvm/gems/ruby-2.0.0-p643/gems/rack-1.4.7/lib/rack/builder.rb:40:in `eval'
from /home/dev/.rvm/gems/ruby-2.0.0-p643/gems/rack-1.4.7/lib/rack/builder.rb:40:in `parse_file'
from /home/dev/.rvm/gems/ruby-2.0.0-p643/gems/rack-1.4.7/lib/rack/server.rb:200:in `app'
from /home/dev/.rvm/gems/ruby-2.0.0-p643/gems/railties-3.2.12/lib/rails/commands/server.rb:46:in `app'
from /home/dev/.rvm/gems/ruby-2.0.0-p643/gems/rack-1.4.7/lib/rack/server.rb:304:in `wrapped_app'
from /home/dev/.rvm/gems/ruby-2.0.0-p643/gems/rack-1.4.7/lib/rack/server.rb:254:in `start'
from /home/dev/.rvm/gems/ruby-2.0.0-p643/gems/railties-3.2.12/lib/rails/commands/server.rb:70:in `start'
from /home/dev/.rvm/gems/ruby-2.0.0-p643/gems/railties-3.2.12/lib/rails/commands.rb:55:in `block in <top (required)>'
from /home/dev/.rvm/gems/ruby-2.0.0-p643/gems/railties-3.2.12/lib/rails/commands.rb:50:in `tap'
from /home/dev/.rvm/gems/ruby-2.0.0-p643/gems/railties-3.2.12/lib/rails/commands.rb:50:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'

请帮忙

0 个答案:

没有答案