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 << :locate
i tried this record.to_gmaps4rails have the right data, and gmaps4rails
helper not throws errors, but the situation is that this helper not show
anything. In other sections in the proyect show the map correct.
in the documentation of gmaps4rails say that is necesary the "<%= yield
:scripts %>" in the layout and i have this in my layout. Will be possible
do that in activescaffold?. i think that the javascripts necessaries for
show the maps are inhibited in this section of activescaffold....
Any idea?
thanks in advance
best regards
--
You received this message because you are subscribed to the Google Groups
"ActiveScaffold : Ruby on Rails plugin" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/activescaffold/-/jhUBcyeTXTkJ.
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.