# Graticule / acts\_as\_geocodable error?

**URL:** <https://www.ruby-forum.com/t/graticule-acts-as-geocodable-error/166977>\
**Category:** Rails\
**Created:** [May 1, 2009, 5:16pm UTC](https://www.ruby-forum.com/t/graticule-acts-as-geocodable-error/166977 "2009-05-01T17:16:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![scott](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/3e96dc/32.png) [@scott](https://www.ruby-forum.com/u/scott)\
**Post date:** [May 1, 2009, 5:16pm UTC](https://www.ruby-forum.com/t/graticule-acts-as-geocodable-error/166977/1 "2009-05-01T17:16:03Z")

</div>

Has anyone encountered this error using Graticule &  
acts\_as\_geocodable?

ActiveRecord::UnknownAttributeError (unknown attribute: precision):  
( **DELEGATION** ):2:in ` __send__' ( __DELEGATION__ ):2:in`with\_scope’  
app/models/listing.rb:113:in `advanced\_find’  
…

Here is line 113 in listing.rb:

published.find(:all,  
:origin =\> zip\_code,  
:within =\> miles,  
:conditions =\> [conditions.join(" AND "), args, args],  
:page =\> {:size =\> 10, :current =\> (page || ‘’)},  
:order =\> ‘distance ASC’)

The only mention of ‘precision’ is in my schema:

```
t.decimal "latitude", :precision => 15, :scale => 12
t.decimal "longitude", :precision => 15, :scale => 12

```

and when I render the distance coming back:

Distance: **\<%= number\_with\_precision listing.distance,  
:precision =\> 1 %\> miles away**

I can’t figure out what “attribute” it’s talking about. Thanks for  
the help.
