Sha256: 14362cd970a9a20fc328465e1ff3b1c8fd5830a1832e198f053af99817bd2b37

Contents?: true

Size: 463 Bytes

Versions: 4

Compression:

Stored size: 463 Bytes

Contents

<h2> XmlToRailsForm </h2>
<%= form_for @xml_data, url: xml_update_path, method: :post do |f| %>
    <% @node_set.each do |set| %>
        <% if set.key?(:child_node) %>
            <%= iterate_node(set, f) %>
        <% else%>
            <%= render partial: 'xml_to_form/xml_handlers/parent_node_form', locals: {node_hash: set, f: f} %>
        <% end %>
    <% end %>
    <%= hidden_field_tag :file_content, @file%>
    <%= submit_tag 'Update xml' %>
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
xml_to_form-0.0.4 app/views/xml_to_form/xml_handlers/xml_form.html.erb
xml_to_form-0.0.3 app/views/xml_to_form/xml_handlers/xml_form.html.erb
xml_to_form-0.0.2 app/views/xml_to_form/xml_handlers/xml_form.html.erb
xml_to_form-0.0.1 app/views/xml_to_form/xml_handlers/xml_form.html.erb