Sha256: 04c121f68f131d6a5f5c544502db722283322961ff2ee4ed23f1dbb849fb03ab

Contents?: true

Size: 569 Bytes

Versions: 1

Compression:

Stored size: 569 Bytes

Contents

%tr{:id => "<%= singular_name %>_#{<%= singular_name %>.id}"}
  <%- for attribute in attributes -%>
  %td= h <%= singular_name %>.<%= attribute.name %>
  <%- end -%>
  <%- if action? :edit -%>
  %td= link_to 'Edit', edit_<%= singular_name %>_path(@<%= parent_singular_name %>, <%= singular_name %>), :class => "<%= options[:ajaxify] ? 'dialog_link' : '' %>"
  <%- end -%>
  <%- if action? :destroy -%>
  %td= link_to 'Remove', <%= singular_name %>_path(@<%= parent_singular_name %>, <%= singular_name %>), :confirm => 'Are you sure?', :method => :delete
  <%- end -%>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
twilson63-nifty-generators-0.3.3 rails_generators/nifty_nested_scaffold/templates/views/haml/_item.html.haml