Sha256: 2f1dc1a9abd52b898707f41dc80be4948a9c22a677bc884f9ff32080eae2366d
Contents?: true
Size: 480 Bytes
Versions: 3
Compression:
Stored size: 480 Bytes
Contents
module <%= helper_class_name %> <%- if action? :edit -%> def link_to_edit_<%= singular_name %>(<%= singular_name %>, *args) link_to t('common.edit'), <%= edit_item_path %>(<%= singular_name %>, *args) end <%- end -%> <%- if action? :destroy -%> def link_to_destroy_<%= singular_name %>(<%= singular_name %>) link_to t('common.destroy'), <%= item_path %>(<%= singular_name %>), :method => 'delete', :confirm => t('common.confirm_destroy') end <%- end -%> end
Version data entries
3 entries across 3 versions & 1 rubygems