Sha256: 7f0fb1fa2612685f53b25cf5bc3c3e04a8a6782048be6d3bd2335fbcdcd6a3f3

Contents?: true

Size: 580 Bytes

Versions: 1

Compression:

Stored size: 580 Bytes

Contents

<div class="child">
<% for attribute in hmt_model.through_model.attributes -%>
  <p>
    <%= hmt_model.through_model.name %> <%%= f.label :<%= attribute.name %> %><br />
    <%%= f.<%= attribute.field_type %> :<%= attribute.name %> %>
  </p>
<% end -%>
  <p>
    <%= hmt_model.name.titleize %>:<br />
    <%%= f.collection_select(:<%= hmt_model.name.underscore %>_id, <%= hmt_model.name %>.all, :id, :<%= field_for(hmt_model) %>, { :prompt => true }) %>
  </p>
  <p>
    <%%= f.hidden_field :_destroy, :class => 'delete' %>
    <%%= remove_child_link 'remove', f %>
  </p>
</div>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
view_mapper-0.3.4 lib/view_mapper/views/has_many_existing/templates/view_child_form.html.erb