Hi, I have a form that contains two fields : Actor - text field Movie - text field. On clicking Add another movie link, I am displaying another text field for entering another movie using AJAX. So on clicking submit , i am doing validations for the form fields. If there is an error in the form fields, the text fields we have added using AJAX, disappears. Is there any to solve this problem ? Also what name should I give to the added text field for Movie ? In movies table the name of the field is moviename. Can we give like <%= text_field ''movie'',''moviename'' %>. But we have to save all the movie names entered into the movies table with actor_id as the foreign key. How should we name the movie text field in this case? Can anybody help me out in this? -- 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 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 -~----------~----~----~----~------~----~------~--~---