Class: Formtastic::Inputs::LeafletMapEditorInput
- Inherits:
-
Object
- Object
- Formtastic::Inputs::LeafletMapEditorInput
- Includes:
- Base
- Defined in:
- lib/formtastic/leaflet_map_editor_input.rb
Instance Method Summary collapse
Instance Method Details
#to_html ⇒ Object
6 7 8 9 10 11 |
# File 'lib/formtastic/leaflet_map_editor_input.rb', line 6 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 |