dm-geokit icon indicating copy to clipboard operation
dm-geokit copied to clipboard

ArgumentError on example query

Open PenguinOfWar opened this issue 11 years ago • 0 comments

Hi,

Using your basic example query (modified slightly to fit my class name):

Locations.all(:address.near => {:origin => 'Portland, OR', :distance => 5.mi}, :order => [:address_distance.desc])

Throws an argument error:

+options[:field]+ entry :address_distance does not map to a property in Locations
file: query.rb location: assert_valid_fields_without_operator line: 805

Full backtrace:

http://pastebin.com/8kgAeEWn

PenguinOfWar avatar Apr 21 '13 21:04 PenguinOfWar