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

Akilah Jones
Akilah Jones
18,397 Points

Front-End Development: Twitter Bootstrap not working

I downloaded the project files, but the twitter bootstrap styles are not being applied to my web app. After looking at the source, I can see that none of the bootstrap files are being referenced in the HTML header.

I manually included them and the page layout displays correctly.

Since this was downloaded without modification, I assumed that everything should be implemented already.

I searched forum and google, but nothing seems to work!

Is anyone else having this issue? Is this something wrong the project files?

I noticed that this was initially part of the Ruby on Rail Track, but later removed...

Please advise


2 Answers

Akilah Jones
Akilah Jones
18,397 Points

I did watch (and follow) the video and I imported bootstrap, so I don't understand what went wrong.

However, I did come across another site that had installation instructions. Everything worked perfectly.

Instead of downloading directly from bootstrap site and moving files. I updated the gemfile, did a bundle install, imported bootstrap and restarted the server.

Kester Browne
Kester Browne
24,414 Points

Make sure you have

@import "bootstrap";

at the top of your CSS file.