here is my model

class ProductLocation < ActiveRecord::Base
  belongs_to :property
  has_many :product_location_mappings
end


I want to load product_locations along with
referenced :product_location_mappings and return a deep model.

    @product_locations = ProductLocation.find_all_by_property_id
(property_id, :include => [:property, :product_location_mappings])

however result does not include :product_location_mappings...
I am using rails 2.3.2, not sure what to do..
--~--~---------~--~----~------------~-------~--~----~
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@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to