Sha256: a6352d554dc9a1eee72232bd372498267c4b0ac763c72a6a65a6deda67ae1666

Contents?: true

Size: 620 Bytes

Versions: 2

Compression:

Stored size: 620 Bytes

Contents

<%% title "<%= singular_name.titleize %>" %>

<%- for attribute in model_attributes -%>
<p>
  <strong><%= attribute.human_name.titleize %>:</strong>
  <%%= @<%= instance_name %>.<%= attribute.name %> %>
</p>
<%- end -%>

<p>
<%- if action? :edit -%>
  <%%= link_to "Editar", <%= item_path :action => :edit, :instance_variable => true %> %> |
<%- end -%>
<%- if action? :destroy -%>
  <%%= link_to "Deletar", <%= item_path :instance_variable => true %>, :confirm => 'Excluir permanentemente?', :method => :delete %> |
<%- end -%>
<%- if action? :index -%>
  <%%= link_to "Listagem", <%= items_path %> %>
<%- end -%>
</p>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
flockonus-nifty-generators-0.0.12 lib/generators/nifty/scaffold/templates/views/erb/show.html.erb
flockonus-nifty-generators-0.0.11 lib/generators/nifty/scaffold/templates/views/erb/show.html.erb