如果bootstrap在部署到heroku上时,出现bootstrap的css不起作用的话:
请执行
1、在config/initializers/assets.rb文件中添加一行:
Rails.application.config.assets.precompile += ['static_pages.css']
2、在控制台上执行
RAILS_ENV=production bundle exec rake assets:precompile
3、在production.rb中设置
OK!config.assets.compile = true