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 Customizing Forms Installing simple_form

What's the best way to update the SimpleForm initializers for Bootstrap v3?

I'm currently following these tutorials but I have used Bootstrap v3 and it's causing lot's of problems with SimpleForm. I have managed to find lot's of information on Google in regards to what classes should be changed to make Bootstrap v3 work, unfortunately I can still not manage to get horizontal-form classes working correctly. I'm quite certain the problem is the outdated class "controls" but changing to "col-lg-10" like some forums suggested just made the form worse.

I'm in the same boat, and just hopped into the forums for this exact problem. It would be great if things like this could be updated in the courses.

2 Answers

Robert Ho
PLUS
Robert Ho
Courses Plus Student 11,383 Points

Hey Joe,

From what I remember, the Build a Simple Ruby on Rails Application tutorial uses Bootstrap v.2.3 and NOT the newest version of Bootstrap (Bootstrap 3.x). I did the tutorial a long time ago and I'm not sure whether bootstrap is installed with a gem or done manually, but doing either step now might automatically install the newest version instead 2.3.2.

go here and download http://getbootstrap.com/2.3.2/, then install the proper CSS and JS files. What you said about the classes seems like the problem; the classes changed from names such as "span4", "span8" etc. to "col-xs-4", "col-lg-8" etc etc.

Good luck!

Yes, Bootstrap can be installed via a gem now.

markuslopez
markuslopez
371 Points

very interested in this solution too. i am using Bootstrap V3 and will refuse to downgrade to use V.2.3 because of significant work done to make V3 work well with my app