For example, I have two models Person and Address, that one person has one address. class Person < ActiveRecord::Base has_one :address end class Address < ActiveRecord::Base belongs_to :person end Now, I want to write a form to create a person including an address <!--[form:entry]--> <p><label for="person_name">Name</label><br/> <%= text_field ''person'', ''name'', :size => 10 %></p> ...... <p><label for="person_address_country">Country</label><br/> <%= text_field ''person'', ''address.country'' %></p> # i think it will map to person.address.country, but it doesn''t work, how can i do it? ...... <!--[eoform:entry]--> -- http://sourceforge.net/projects/mycodeline/ http://rubyforge.org/projects/ropenwiki/ --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---