How to add wrapbootstrap (made with twitter bootstrap) themes to rails application

AdamT picture AdamT · Oct 8, 2012 · Viewed 9.2k times · Source

The website https://wrapbootstrap.com/ has themes which were made using Twitter Bootstrap. Each of these themes include different versions of Twitter Bootstrap along with other various libraries and versions (jquery, fontawesome, etc...)

How do I add these themes to my existing Rails app? What are the steps?

I'm especially curious about the conflicts that may arrise if I'm already using a different version of jquery, twitter bootstrap, fontawesome, and others (as declared in the Gemfile).

Thank you

Answer

cpursley picture cpursley · Nov 28, 2012

You can add the css from the theme you purchased from wrapbootstrap to your assets > application.css.scss file. And use the html tags that came with the theme in your rails app views so that the css styling is applied.

Also, I would recommend using gem 'sass-rails' to import the standard bootstrap styling.

Here's a tutorial to get you started with adding bootstrap to a rails app. Adding the theme css and html tags is up to you.

http://railscasts.com/episodes/328-twitter-bootstrap-basics?view=asciicast