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/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to