Prashant
2006-Dec-21 07:37 UTC
how to display the content of one tble on another table view
hi all, i just started on rails and ma trying to learn it so pls help me out with following problem i got 2 tables say tbl1 and tbl2 (tbl1 primary key is tbl2 foregn key) both the tables have cntrls(say cntrl1 and cntr2) and models(model1 and model2) now i want to display the contens of tble2 in the show only tht contnds of tbl2 whose foregn key is primary key of tbl1. that 2 in the rhtml view of tbl1 also how do i add the primary key of tbl1 as foreing key of tbl2 pls help me out -- 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 -~----------~----~----~----~------~----~------~--~---