Sha256: 8202bd03aaeab9dd57b15c62676b2d2d8c76b3d2aa49722a6e47c6bde76e859c

Contents?: true

Size: 718 Bytes

Versions: 5

Compression:

Stored size: 718 Bytes

Contents

<% for attribute in attributes -%>
<p>
  <b><%= attribute.column.human_name %>:</b>
  <%%=h @<%= singular_name %>.<%= attribute.name %> %>
</p>

<% end -%>
<% child_models.each do |child_model| -%>
<%% @<%= singular_name %>.<%= child_model.name.underscore.pluralize %>.each do |<%= child_model.name.underscore %>| %>
  <div class="child">
<% for attribute in child_model.attributes -%>
    <p>
      <b><%= child_model.name %> <%= attribute.column.human_name %>:</b>
      <%%=h <%= child_model.name.underscore%>.<%= attribute.name %> %>
    </p>
<% end -%>
  </div>
<%% end %>

<% end -%>
<%%= link_to 'Edit', edit_<%= singular_name %>_path(@<%= singular_name %>) %> |
<%%= link_to 'Back', <%= plural_name %>_path %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
view_mapper-0.3.4 lib/view_mapper/views/has_many/templates/view_show.html.erb
view_mapper-0.3.3 lib/view_mapper/views/has_many/templates/view_show.html.erb
view_mapper-0.3.2 lib/view_mapper/views/has_many/templates/view_show.html.erb
view_mapper-0.3.1 lib/view_mapper/views/has_many/templates/view_show.html.erb
view_mapper-0.3.0 lib/view_mapper/has_many_templates/view_show.html.erb