[Rails] Re: geokit - using :through to connect models

2009-02-24 Thread Sergio Ruiz
thanks for your help! i am gonna have to look into this a little bit more to get my head around this.. thanks! -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on R

[Rails] Re: geokit - using :through to connect models

2009-02-23 Thread Sarah Mei
I think your trouble here is with the polymorphic association. (Why do you need it - is there another model that has_one or has_many :internships :as => :employer?) Try either removing :polymorphic => true if you don't need it, or adding :as => :employer to the Employer's has_many :internships li