简体   繁体   English

twitter-bootstrap-rails是否与rails 4兼容?

[英]is twitter-bootstrap-rails compatible with rails 4?

Is twitter-bootstrap-rails compatible with rails 4 and ruby 2.0. twitter-bootstrap-rails是否与rails 4和ruby 2.0兼容。 I was having tons of trouble installing this on my rails app after going through two railscast and the readme on its github page. 在经历了两个railscast及其github页面上的自述文件之后,在将其安装到我的rails应用程序上时遇到了很多麻烦。 Sorry I couldn't find a straight forward answer both in the repo's issues and from googling online. 抱歉,在回购协议的问题和在线搜索中都找不到直接的答案。

on the repo page it says 在回购页面上说

Twitter Bootstrap for Rails 3.1 Asset Pipeline

To get bootstrap in Rail 4. 要在Rail 4中进行引导。

Add gem 'bootstrap-sass' to your Gemfile. 将gem'bootstrap gem 'bootstrap-sass'添加到您的Gemfile中。

and then add @import "bootstrap-sprockets"; 然后添加@import "bootstrap-sprockets"; and @import "bootstrap"; @import "bootstrap";

to the top of your application.scss file. 到application.scss文件的顶部。 Don't forget to run bundle install. 不要忘记运行捆绑软件安装。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM