search for: has_obne

Displaying 1 result from an estimated 1 matches for "has_obne".

2008 Oct 31
0
Get an object other than primary key ID
...eg: @sites.each do |@site| @site_id = @site.id @tower = Tower.find(:all, :conditions => ["site_id =?", @site_id]) Tower Belongs to Site. so Site_id is a reference in tower object. there will be only one Tower object for Site Object. Should we give relation as has_obne in site model?? help me ot. Karthik --~--~---------~--~----~------------~-------~--~----~ 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...