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

Installing Bootstrap issues.

I'm having issues installing bootstrap... I'm running version 1.9.3 of ruby and rails 3.2.12. I get this message even though I have put the correct files in the assets folder and the web page does not change. i just get these messages in terminal. Please help!

Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-11-25 18:36:01 -0500 Served asset /jquery_ujs.js - 304 Not Modified (2ms) [2013-11-25 18:36:01] WARN Could not determine content-length of response body. Set content-length of the response or set Response#chunked = true

Started GET "/assets/statuses.js?body=1" for 127.0.0.1 at 2013-11-25 18:36:01 -0500 Served asset /statuses.js - 304 Not Modified (1ms) [2013-11-25 18:36:01] WARN Could not determine content-length of response body. Set content-length of the response or set Response#chunked = true

Started GET "/assets/scaffolds.css?body=1" for 127.0.0.1 at 2013-11-25 18:36:01 -0500 Served asset /scaffolds.css - 304 Not Modified (2ms) [2013-11-25 18:36:01] WARN Could not determine content-length of response body. Set content-length of the response or set Response#chunked = true

Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-11-25 18:36:01 -0500 Served asset /application.js - 304 Not Modified (17ms) [2013-11-25 18:36:01] WARN Could not determine content-length of response body. Set content-length of the response or set Response#chunked = true

1 Answer

Chris McKnight
PLUS
Chris McKnight
Courses Plus Student 11,045 Points

The warning about content length is because webrick doesn't set the content length. If you don't want to see those messages, I would suggest using thin. Just add gem 'thin' to you gemfile and bundle install.

As for bootstrap, do any bootstrap styles work in the browser? You can try creating a button on page and see if the styles show up.

<a href="#" class="btn btn-primary">Test</a>

If the anchor doesn't get bootstrap styles, can you post what you have in your gemfile and application.css file?