Tag Archives: twitter bootstrap

Add bootstrap to your rails app without gem file

If you want to add Twitter Bootstrap without gem file, follow those steps:

Download Bootstrap
Direct download link Bootstrap 3.0.0
Or got to http://getbootstrap.com/

Copy CSS Files:

bootstrap/dist/css/bootstrap.css
bootstrap/dist/css/bootstrap.min.css
to: app/assets/stylesheets

Copy Js Files:

bootstrap/dist/js/bootstrap.js
bootstrap/dist/js/bootstrap.min.js
to: app/assets/javascripts

Append bootstrap CSS to application.css:

Append to: app/assets/stylesheets/application.css
*= require bootstrap

Append bootstrap JS to application.js:

Append to: app/assets/javascripts/application.js
//= require bootstrap

That’s it.

Advertisements