Rails在预编译时生成bootstrap-sass错误

时间:2015-05-01 20:36:48

标签: ruby-on-rails twitter-bootstrap assets precompile

在开发环境中,我的rails应用程序的一切都很好用。但是当我在生产模式下尝试它时,我在做一些预编译时遇到了这个错误:

RAILS_ENV=production rake assets:precompile --trace
** Invoke assets:precompile (first_time)
** Invoke assets:environment (first_time)
** Execute assets:environment
** Invoke environment (first_time)
** Execute environment
rake aborted!
NoMethodError: undefined method `<<' for true:TrueClass
/home/xxxxx/.rvm/gems/ruby-2.1.5/gems/bootstrap-sass-3.3.4.1/lib/bootstrap-sass/engine.rb:8:in `block in <class:Engine>'
/home/xxxxx/.rvm/gems/ruby-2.1.5/gems/railties-4.1.6/lib/rails/initializable.rb:30:in `instance_exec'
/home/xxxxx/.rvm/gems/ruby-2.1.5/gems/railties-4.1.6/lib/rails/initializable.rb:30:in `run'
/home/xxxxx/.rvm/gems/ruby-2.1.5/gems/railties-4.1.6/lib/rails/initializable.rb:55:in `block in run_initializers'

我已经尝试过找到多个解决方案但到目前为止都没有。

我尝试将config.assets.initialize_on_precompile = false添加到config/application.rb但没有成功......

0 个答案:

没有答案