An open API service indexing awesome lists of open source software.

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

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 .
```