Sha256: d9db81023981e36a6a6cc2b6d892561328eded5075833d50b7ed993983556d67
Contents?: true
Size: 827 Bytes
Versions: 6
Compression:
Stored size: 827 Bytes
Contents
- title t('.title') %p.nav <% if options[:cancan] -%> - if can? :index, <%= class_name %> = link_to t('back'), <%= index_helper %>_path, class: 'index' - if can? :edit, @<%= singular_table_name %> = link_to t('edit'), edit_<%= singular_table_name %>_path(@<%= singular_table_name %>), class: 'edit' <% else -%> = link_to t('back'), <%= plural_name %>_path, class: 'index' = link_to t('edit'), edit_<%= singular_table_name %>_path(@<%= singular_table_name %>), class: 'edit' <% end -%> %dl <% for attribute in attributes.reject(&:password_digest?) -%> %dt= <%= class_name %>.human_attribute_name :<%= attribute.name %> <% if attribute.reference? -%> %dd= @<%= singular_table_name %>.<%= attribute.name %>.try :name <% else -%> %dd= @<%= singular_table_name %>.<%= attribute.name %> <% end -%> <% end -%>
Version data entries
6 entries across 6 versions & 1 rubygems