I have squeel installed and would like to do the following:
@branches = Branch.near(@latlon) #This provides an array of nearby branches
@dispensers = Dispenser.joins{@branches} #This does not work
I could geocode my dispensers, but I'd generally prefer the option above, if possible using active record, or active record + squeel. There must be some easy way to pull this off in Rails.