https://github.com/pacso/getbootstrap-rails
Twitter Bootstrap 4, for Rails
https://github.com/pacso/getbootstrap-rails
Last synced: 2 months ago
JSON representation
Twitter Bootstrap 4, for Rails
- Host: GitHub
- URL: https://github.com/pacso/getbootstrap-rails
- Owner: pacso
- Created: 2015-08-26T20:13:28.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-08-27T08:34:32.000Z (almost 11 years ago)
- Last Synced: 2025-02-02T00:16:54.867Z (over 1 year ago)
- Language: Ruby
- Size: 234 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# getbootstrap-rails
[Twitter Bootstrap 4](http://blog.getbootstrap.com/2015/08/19/bootstrap-4-alpha/), for Rails
The content of this gem was mostly copied from the excellent [bootstrap-sass](https://github.com/twbs/bootstrap-sass) gem, but with JS/CSS swapped out for Bootstrap 4.
**:bangbang: Please Note:** This project was created due to lack of Bootstrap 4 availability through the [officially supported gem](https://github.com/twbs/bootstrap-sass). I expect at some point Bootstrap 4 will be available through the official gem, at which time this gem will be obsolete.
## OMG, Bugs!
Bootstrap 4 is alpha software. It isn't ready yet. Expect things not to work properly.
If you want to help fix them, use the official resources to do so:
* [Bootstrap 4 Alpha Announcement](http://blog.getbootstrap.com/2015/08/19/bootstrap-4-alpha/)
* [v4-alpha documentation](http://v4-alpha.getbootstrap.com/)
* [Issue Tracker](https://github.com/twbs/bootstrap/issues/)
## Installation
### Ruby on Rails
In your Gemfile, add the `getbootstrap-rails` gem, ensuring `sass-rails` is also present (it should be there by default in Rails 4).
```ruby
gem 'getbootstrap-rails', '~> 4.0.0.pre.alpha'
gem 'sass-rails', '~> 5.0'
```
Run `bundle install` and restart your application to make the files available through the asset pipeline.
Import Bootstrap styles in `app/assets/stylesheets/application.css`:
````css
/*
* Wordy asset pipeline manifest header
*
*= require_tree .
*= require 'bootstrap'
*= require_self
*/
```
Require Bootstrap Javascripts in `app/assets/javascripts/application.js`:
```js
// Wordy asset pipeline manifest header
//
//= require jquery
//= require jquery_ujs
//= require turbolinks
//= require bootstrap
//= require_tree .
```