On Tue, 9 Oct 2012 07:48:24 -0700 (PDT), bencarsal
<
benc...@gmail.com> wrote:
> Hi group,
>
> i want to know if somebody has gmaps4rails in the action update in
> activescaffold.
>
> i have this:
>
> in helper about my controller mymodel_helper.rb:
>
> def locate_form_column(record, options)
> gmaps4rails(record.to_gmaps4rails)
> end
>
> and in the model have this virtual column:
>
> attr_accessible :locate
>
> def locate=(_longitud,_latitud)
> latitude = _latitud
> longitude = _longitud
> end
>
> def locate
> "#{latitude} - #{longitude}"
> end
>
> in the controller:
>
> active_scaffold :sites do |conf|
> conf.columns
>