Hi Im using the 5 tables+5 views+one model+one controller.so i can't understand and give any idea
balaji On 12/8/08, Ar Chron <[EMAIL PROTECTED]> wrote: > > > Basic vanilla Rails... > > Your parent table (resort_basic?) should have an ID column. > > All your child tables (like resort_contact?) should include a field > named resort_basic_id of type integer. > > class resort_basic > has_many :resort_contacts > etc, etc > end > > class resort_contact > belongs_to :resort_basic > end > > You can: > -> use a hidden field on the resort_contact form to store the > resort_basic_id, setting this value in the resort_contact controller's > new method if the vlaue is known, then retrieve that from the params in > the create method > > -> or the resort_contact form may include a droplist field where you > choose the resort_basic ID as part of creating the resort contact > > -> or some other more advanced methods, but the nature of your question > leads me to believe that you should stick to the basics for now. > > As for links: > > http://api.rubyonrails.org/ > or > http://www.google.com > > There are tons of examples out there that don't have to be repeated > here. > -- > 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 -~----------~----~----~----~------~----~------~--~---

