Sha256: ca211f187d2f9786d21778f398cc884fe5a160dbc45cbf5032761926302c4283

Contents?: true

Size: 429 Bytes

Versions: 1

Compression:

Stored size: 429 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, :name, { :prompt => true }) %>
</p>
<% end -%>

Version data entries

1 entries across 1 versions & 1 rubygems

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