Sha256: e26945a129580bc2f2e7cf0579d270d34a7e209b081121d91fb208c7cf1d017b
Contents?: true
Size: 446 Bytes
Versions: 18
Compression:
Stored size: 446 Bytes
Contents
ruby: # Fills the last column of the list with "buttons". # Requires row current_controller (supplied by Rails) if defined?(current_controller) url = "/#{current_controller}/#{row.id}" else url = url_for row end = link_to t('button.show').html_safe, url = link_to t('button.edit').html_safe, url + '/edit' = link_to t('button.delete').html_safe, url, remote: true, data: { confirm: 'Are you sure?' }, method: :delete
Version data entries
18 entries across 18 versions & 1 rubygems