Hi, i have this in a my form for registration user
<% fields_for “user[location_attributes]”, @user.location do
|location_form| %>
<%= location_form.text_field :full_address %>
<% end %>
the location is required.
and so if i submit the form without insert the location the instruction:
<%= error_messages_for :user %>
print: location required.
but in the field there isn’t the div
around the field of the location like the others fields required
how i can connect the error of the location with the field:
thanks.