Sha256: d739433e156738803629cedf9edeeb49a00dff9dfee3b66f346175b883539559
Contents?: true
Size: 797 Bytes
Versions: 10
Compression:
Stored size: 797 Bytes
Contents
= dropdown(variation: :dropleft) do - if actions.index(:edit) = dropdown_link_to 'Edit', effective_resource.action_path(:edit, resource), title: "Edit #{resource}" - if actions.index(:show) = dropdown_link_to 'View', effective_resource.action_path(:show, resource), title: resource.to_s - (actions - [:edit, :show, :destroy]).each do |action| = dropdown_link_to action.to_s.titleize, effective_resource.action_path(action, resource), title: "#{action} #{resource}", data: { method: :post, confirm: "Really #{action} #{resource}?"} = yield - if actions.index(:destroy) = dropdown_link_to "Delete #{resource}", effective_resource.action_path(:destroy, resource), title: "Delete #{resource}", data: { method: :delete, confirm: "Really delete #{resource}?" }
Version data entries
10 entries across 10 versions & 1 rubygems