Sha256: 2e8c79c088bb90f612170eaacfc6dc73a4e4f024055bae34d8cbf9b2f7840472

Contents?: true

Size: 543 Bytes

Versions: 6

Compression:

Stored size: 543 Bytes

Contents

<%- model_attributes.each do |attribute| -%>
%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

6 entries across 6 versions & 1 rubygems

Version Path
stager-0.2.2 lib/generators/stager/controller/templates/views/show.html.haml
stager-0.2.1 lib/generators/stager/controller/templates/views/show.html.haml
stager-0.2.0 lib/generators/stager/controller/templates/views/show.html.haml
stager-0.1.2 lib/generators/stager/scaffold/templates/views/show.html.haml
stager-0.1.1 lib/generators/stager/scaffold/templates/views/show.html.haml
stager-0.1.0 lib/generators/stager/scaffold/templates/views/show.html.haml