thanks Sergio, the log say that

Rendered 
/home/gertec/torquebox-2.1.2/jruby/lib/ruby/gems/1.8/gems/gmaps4rails-1.5.5/app/views/gmaps4rails/_gmaps4rails.html.erb
 (21.0ms)

umm, seems like i need put an initial coordinate (box), i'll try and if it 
works i will comment


El 10/10/2012 14:49, [email protected] escribió:
Check in the log if gmaps4rails/_gmaps4rails partial is rendered.

On Tue, 9 Oct 2012 07:48:24 -0700 (PDT), bencarsal
<[email protected]> 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

Links:
------
[1] https://groups.google.com/d/msg/activescaffold/-/jhUBcyeTXTkJ

--
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