I started using Simple-Form and Bootstrap, and I tried to follow this link: Simple Form + Bootstrap , but I donβt know what happens, because when the field does not work, this is what happens:

Regarding this screenshot, I have a question:
1) As you can see, the Price field is not surrounded by red. How can i do this? Here is my code for the form:
<%= simple_form_for @lesson, :html => { :class => 'well' } do |lesson_form| %> <% if lesson_form.error_notification %> <div class="alert alert-error fade in"> <a class="close" data-dismiss="alert" href="#">×</a> <%= lesson_form.error_notification %> </div> <% end %> <%= lesson_form.input :title %> <%= lesson_form.input :category %> <%= lesson_form.input :description %> <%= lesson_form.input :price %> <%= lesson_form.button :submit, :label => 'Create', :class => 'btn btn-primary btn-large' %> <% end -%>
ruby-on-rails forms simple-form
Hommer smith
source share