Skip to content

pacso/getbootstrap-rails

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

getbootstrap-rails

Twitter Bootstrap 4, for Rails

The content of this gem was mostly copied from the excellent bootstrap-sass gem, but with JS/CSS swapped out for Bootstrap 4.

‼️ Please Note: This project was created due to lack of Bootstrap 4 availability through the officially supported gem. 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:

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

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:

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

About

Twitter Bootstrap 4, for Rails

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages