Sha256: f96f5ea7dcbd0330a6c1e55db7d47fd033150ef7aa7818f732123c25bd827256

Contents?: true

Size: 557 Bytes

Versions: 5

Compression:

Stored size: 557 Bytes

Contents

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

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

%p
  <%- if action? :edit -%>
  = link_to "Edit", <%= item_path action: :edit, instance_variable: true %>
  |
  <%- end -%>
  <%- if action? :destroy -%>
  = link_to "Destroy", <%= item_path instance_variable: true %>, confirm: 'Are you sure?', method: :delete
  |
  <%- end -%>
  <%- if action? :index -%>
  = link_to "View All", <%= items_path %>
  <%- end -%>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
zoo-generators-0.1.5 lib/generators/zoo/scaffold/templates/views/haml/show.html.haml
zoo-generators-0.1.4 lib/generators/zoo/scaffold/templates/views/haml/show.html.haml
zoo-generators-0.1.3 lib/generators/zoo/scaffold/templates/views/haml/show.html.haml
zoo-generators-0.1.2 lib/generators/zoo/scaffold/templates/views/haml/show.html.haml
zoo-generators-0.1.1 lib/generators/zoo/scaffold/templates/views/haml/show.html.haml