Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Ruby Build a Simple Ruby on Rails Application Frontend Development Laying Out the Page

Bootstrap 3 installation

Can anyone show me how to install bootstrap 3 in ruby on rails 4. Thanks.

4 Answers

Maciej Czuchnowski
Maciej Czuchnowski
36,441 Points

I would suggest using the Bootstrap gem instead of putting files in your project manually: https://github.com/twbs/bootstrap-sass

maciej , is right. If your running on Mac OSx or Linux, the gem should work fine. Windows users have had problems integrating the bootstrap gem.

Maciej Czuchnowski
Maciej Czuchnowski
36,441 Points

Yup, and if you're still using Windows, think about VMWare Player with some Linux distribution on it, you will get smoother and more stable experience in the long run.

you can just implement the stylesheet in the stylesheets directory in your application. It will load dynamically along with any other stylesheet. This also applies for the javascript files necessary for bootstrap to function.

Kenan Memis
Kenan Memis
47,314 Points

Hi,

The following link has a walkthrough for installing Bootstrap 3 with Rails 4. I checked it, it works perfect.

http://rvg.me/2013/11/using-bootstrap-3-with-rails-4/