Check_box validation error_message div/span tag problem

when a check box in my form is not validated, the check box and the
label are not anymore aligned… a hidden input field is added, which
gives a mess in the display…

<%= f.check_box(:accepted_terms, {:id => "user_accepted_terms"} %>I am over 14 <% if @user.errors.on(:accepted_terms) %> <%= @user.errors.on(:accepted_terms) %> <% end %>

but the generated html is : (2 divs which leads to the check box and
the label on 2 lines)

I am over 14 years •You must confirm this paragraph

is there any way to avoid this problem ?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs