1.) Well, you ve generated a recursive loop. You are calling in method
distance method distance.

2.) Take a look at the activescaffold wiki:
http://wiki.github.com/activescaffold/active_scaffold/search-overrides

On Aug 19, 5:30 pm, gs84 <[email protected]> wrote:
> On 19 août, 08:05, "[email protected]"
>
> <[email protected]> wrote:
> > Hi,
>
> > 1) you need a virtual "distance" column in your offreservices model,
> > which you have to set with calculated value. Either if its possible
> > directly in your sql query or just afterwards in your do_list method
>
> I add in offreservices model
>  def distance
>    self.distance
>  end
>
> I have and  "stack level too deep"" error
> Also i don't know how to retreive and set the distance calculated by
> Geokit bacause i am using :    acts_as_mappable :through =>
> { :entiteservices => :commune }
>
> > 2) Generate your own search_ui type overwrite and set search_ui for
> > that column to your new search_ui.
>
> Do you have an example please?
>
> Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails plugin" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/activescaffold?hl=en.

Reply via email to