Sha256: bd2a8cd1fd548b0afb7d9f800cb7887ed377a40891c00eb88210a319795e1dba

Contents?: true

Size: 490 Bytes

Versions: 4

Compression:

Stored size: 490 Bytes

Contents

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

<% end -%>
<% for parent_model in parent_models -%>
<p>
  <b><%= parent_model.name.titleize %>:</b>
  <%%=h @<%= singular_name %>.<%= parent_model.name.underscore %>_<%= field_for(parent_model) %> %>
</p>

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

Version data entries

4 entries across 2 versions & 1 rubygems

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