Interesting... That makes everything work as expected! Thanks > There's some funky stuff with STI that basically boils down to the > fact that if a class hasn't been loaded yet rails doesn't know it > exists (and so doesn't create the correct query). > One way of doing things is to force these classes to be loaded, eg at > the bottom of person.rb put > > require_dependency 'customer' > require_dependency 'employee' > require_dependency 'developer'
-- 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@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 -~----------~----~----~----~------~----~------~--~---