Sha256: 088de0d1daf753e53969b5ff65a236c1039544440ab7b8f07c15a2debfcf58f2
Contents?: true
Size: 596 Bytes
Versions: 7
Compression:
Stored size: 596 Bytes
Contents
ruby: # Fills the last column of the list with "buttons". # Requires row current_controller (supplied by Rails) url = if defined?(current_controller) "/#{current_controller}/#{row.id}" else url_for row end show = t('button.show') edit = t('button.edit') delete = t('button.delete') = link_to image_tag('show.gif', alt: show, title: show), url = link_to image_tag('plus.png', alt: edit, title: edit), "#{url}/edit" = link_to image_tag('minus.png', alt: delete, title: delete), url, data: { turbo_method: :delete, turbo_confirm: 'Are you sure?' }
Version data entries
7 entries across 7 versions & 1 rubygems