ruby on rails and bootstrap , make field_with_errors display horizontal
问题 in custom.css.scss file .field_with_errors { @extend .control-group; @extend .error; } and the html.erb <%= form_for @timecard , url:{action: "savecard"},html:{class: "form-inline"} do |f| %> <%= f.label :"Date"%> <%= f.date_select :starttime ,{use_month_numbers: true }, class: "input-small" %> <%= f.label :"Hours"%> <%= f.number_field :hours, class: "input-small" %> <%= f.label :"Project"%> <% projects = Project.all.map { |project| [project.name, project.charge_number] } %> <%= f.select