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

Twitter Bootstrap not being included in project files version of code

Hi,

I downloaded the project files code in Stage 4, and encountered an issue where my webpages had no styling whatsoever. When I inspect page element, I notice that the <head> tag isn't including anything other than the application.css and application.js files, omitting the twitter bootstrap styles that are also within the assets directory.

I know this problem was encountered several other times, and people suggested using a "rake assets:clean" to fix the error, however this wasn't working for me. I was wondering if anyone had any explanation for why this might not work for me, or any other suggestions that could get styling back into the page?

Thanks!

1 Answer

Todd Nestor
Todd Nestor
10,689 Points

Sorry, it has been 10 days so not sure if this is still a problem or not.

Double check to make sure the bootstrap javascript file is in your app/assets/javascripts folder and also that the application.js in there includes the following line:

//= require_tree .

If that doesn't help can you provide a link to your repository?