David Hanson <[EMAIL PROTECTED]> wrote:
           
  Look arround to the following answer for your case:
   
  ---------------------------------
  Controller
  ---------------------------------
  ...
    def detail_hotel
    
       @hotel = Hotel.find(params[:id])    
         @kamars = @hotel.kamars
  ...
   
  ---------------------------------
  Kamar's Model
  ---------------------------------
  class Kamar < ActiveRecord::Base
  ...
  belongs_to :hotel, :foreign_key => 'id_hotel'
   ...

  ---------------------------------
  Hotel's Model
  ---------------------------------
  class Hotel < ActiveRecord::Base
  has_many :kamars, :foreign_key => 'id_hotel'
  ...
   
  And your show.rhtml,  copy looping in kamar's show.rhtml there.
   


      Recent Activity
    
      4
  New Members
  
      1
  New Polls

Visit Your Group 
      Yahoo! Finance
  It's Now Personal
  Guides, news,
  advice & more.

    New business?
  Get new customers.
  List your web site
  in Yahoo! Search.

    Cat Groups
  on Yahoo! Groups
  discuss everything
  related to cats.



  .

 
                         

       
---------------------------------
Bergabunglah dengan orang-orang yang berwawasan, di bidang Anda di Yahoo! 
Answers

[Non-text portions of this message have been removed]

Kirim email ke