Sha256: 656bd468d99b82e3328329ff66248a114b1567d9fe987ef9f23cc2a58e27eb83

Contents?: true

Size: 545 Bytes

Versions: 4

Compression:

Stored size: 545 Bytes

Contents

<tr>
<% for attribute in attributes -%>
  <td><%%= <%= singular_name %>.<%= attribute.name %> %></td>
<% end -%>
  <td><%%= link_to 'Show', <%= scope_prefix + singular_name %>_path(<%= instance_variable_scope(singular_name) %>) %></td>
  <td><%%= link_to 'Edit', edit_<%= scope_prefix + singular_name %>_path(<%= instance_variable_scope(singular_name) %>) %></td>
  <td><%%= link_to 'Destroy', <%= scope_prefix + singular_name %>_path(<%= instance_variable_scope(singular_name) %>), :confirm => 'Are you sure?', :method => :delete %></td>
</tr>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ingoweiss_generators-0.0.6 lib/generators/ingoweiss/scaffold_views/templates/_entry.html.erb
ingoweiss_generators-0.0.5 lib/generators/ingoweiss/scaffold_views/templates/_entry.html.erb
ingoweiss_generators-0.0.4 lib/generators/ingoweiss/scaffold_views/templates/_entry.html.erb
ingoweiss_generators-0.0.3 lib/generators/ingoweiss/scaffold_views/templates/_entry.html.erb