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

Development Tools

cant seem to get twitter bootstrap to work

I am working on the Build a Simple Ruby on Rails Application tutorial. particularly the part where I install twitter bootstrap. I am following the tutorial exactly, but cant seem to get the classes to work exactly how they do on the site. I had it working at one point (kind of) have had to restart my project multiple times (The Build a Simple Ruby on Rails Application project) it seems that bootstrap has been changed around a great deal since the recording of the video. Any help installing twitter bootstrap on Ubuntu would be appretiacted.

Are you following the tutorial using Git/GitHub? If you're using GitHub, can you share a link to your repo?

Here's how to setup Twitter Bootstrap with the current version (v3.0.0).

  1. Add gem 'bootstrap-sass', github: 'thomas-mcdonald/bootstrap-sass', branch: '3' to your /Gemfile
  2. Run bundle install from the command line
  3. Create a file called custom-bootstrap.css (or whatever) at /app/assets/stylesheets/custom-bootstrap.css
  4. Add the line @import 'bootstrap'; at the top of your new css file.
  5. Start/Restart your local server with rails server

Let me know if you have any trouble.

hey does this work for rails 3. i think sass only works for rails 4