Sha256: 890efcb3336d23a4c95a16c83b558ad2a0b4043800aa87496c268a98bba26fbe
Contents?: true
Size: 406 Bytes
Versions: 1
Compression:
Stored size: 406 Bytes
Contents
module Formtastic module Inputs class LeafletMapEditorInput include Base def to_html html = '<div id="%s_%s_map" class="leaflet_map" style="height: 600px;" />' % [object_name, method] input_wrapping do label_html << html.html_safe << builder.hidden_field(method, {:value => object.position_geojson.to_s.gsub("\"", "'")}) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
formtastic_leaflet_map_editor_input-0.0.1 | lib/formtastic/leaflet_map_editor_input.rb |