Rails中的Bootstrap gem

时间:2015-06-30 16:44:41

标签: ruby-on-rails twitter-bootstrap

我要创建一个新的Rails项目,我知道我应该使用gem'bootstrap-sass',这对我来说不是问题。但我有一个问题 - 为什么我应该使用gem而不是直接向index.html添加一些文件(CSS和JS)?你能解释一下吗?提前谢谢!

1 个答案:

答案 0 :(得分:2)

Use gem or source files don't make any big difference.

But, when you use gem it's easier to update... you need just update the gem and it's done! And when you use the source files, you must download the new version and replace the old files. I think it's the big deal when using gem: easer to update.