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 trialRyan Jones
941 Pointstroubleshooting bootstrap and simple-form
I can't seem to get the form on my site to respond to bootstraps classes. I'm still new to ruby on rails so i'm not really sure where to start to diagnose what is causing this.
```<%= simple_form_for(@status, :html => {:class => "form-horizontal"}) do |f| %> <% if @status.errors.any? %> <div id="error_explanation"> <h2><%= pluralize(@status.errors.count, "error") %> prohibited this status from being saved:</h2>
<ul>
<% @status.errors.full_messages.each do |message| %>
<li><%= msg %></li>
<% end %>
</ul>
</div>
<% end %>
<%= f.input :user_id %> <%= f.input :content %> <div class="form-actions"> <%= f.button :submit %> </div> <% end %> ```
this is the code that I am running but my form isn't responding to the classes. like it's not displaying horizontal and just looks plain bad. Any ideas on how to fix this would greatly be appreciated.
David Curtis
11,301 PointsDavid Curtis
11,301 Pointsfirst thing i would check is to make sure you have bootstrap set up properly.