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
<div class="fieldWithErrors">
around the field of the location like the others fields required
how i can connect the error of the location with the field:
<input id="user_location_attributes_full_address"
class="ac_input"
type="text" value="" size="30"
name="user[location_attributes][full_address]" />
thanks.
--
Posted via http://www.ruby-forum.com/.