Sha256: a597ca66f14c76f975d707cf056668b43b0de30b21037965942cc31e81565cf9

Contents?: true

Size: 455 Bytes

Versions: 2

Compression:

Stored size: 455 Bytes

Contents

<%%= f.error_messages %>
<% for attribute in attributes -%>
<p>
  <%%= f.label :<%= attribute.name %> %><br />
  <%%= f.<%= attribute.field_type %> :<%= attribute.name %> %>
</p>
<%- end -%>
<% for parent_model in parent_models -%>
<p>
  <%= parent_model.name.titleize %>:<br />
  <%%= f.collection_select(:<%= parent_model.name.underscore %>_id, <%= parent_model.name %>.all, :id, :<%= field_for(parent_model) %>, { :prompt => true }) %>
</p>
<% end -%>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
view_mapper-0.3.4 lib/view_mapper/views/belongs_to/templates/view_form.html.erb
view_mapper-0.3.3 lib/view_mapper/views/belongs_to/templates/view_form.html.erb