SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Guru Skyblaze's Avatar
    Join Date
    Jul 2005
    Location
    Italy
    Posts
    734
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    edit form with two models...

    I have an edit form that takes care of two models (customer and contact). One of these two models(contact) has a "many to one" relationship with the other (customer) and so i give the options to add as many "contact" models the user wants. But when i process the edit request how can i know which "contact" models in the params hash are to be updated or created?

  2. #2
    SitePoint Zealot tragu's Avatar
    Join Date
    Sep 2002
    Location
    Canada
    Posts
    193
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    There is nice a tutorial about how to do this in Rails Forum: http://railsforum.com/viewtopic.php?pid=3713

    Thuva


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •