简体   繁体   中英

is twitter-bootstrap-rails compatible with rails 4?

Is twitter-bootstrap-rails compatible with rails 4 and 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. 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.

Add gem 'bootstrap-sass' to your Gemfile.

and then add @import "bootstrap-sprockets"; and @import "bootstrap";

to the top of your application.scss file. Don't forget to run bundle install.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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