From: Mark Thomas Date: 2009-04-01T04:34:45+09:00 Subject: Re: activerecord query building question > Right- I tried the following, which works for my schema (by which I > mean, there is a 'City' column in the refphyslocation table): > > RefPhysLocation.find_all_by_City("Mineola").each do |location| >    puts location.refphys.fullname > end > > and.. the first bit works (I'd forgotten to capitalize 'city' before).. > But I now get 'uninitialized constant RefPhysLocation::Refphys' . I > guess there's something I didn't set up properly :/ Do you have any idea > what? You probably have an capitalization where it should be lowercase somewhere. > (I know, I should rtfm and google it.. I don't have time right > now, because our mail server at work almost blew up). > Thanks for getting me this far at least