I've made a title of my resources as a link to a Show action. Now I want to remove that link form default_actions
.
actions :all, :except => [:show]
Won't do because I need show
action to be available.
I'le also tried
column do |show|
links = ''.html_safe
links += link_to "Edit", edit_admin_show_path(show)
links += ' '
links += link_to "Del", admin_show_path(show), :confirm => 'Are you sure?', :method => :delete
links
end
But delete link isn't working but rather takes me to the Show page.
I'll be thankful for any help
I did it this way (resource_path).
column "" do |resource|
links = ''.html_safe
links += link_to I18n.t('active_admin.edit'), edit_resource_path(resource), :class => "member_link edit_link"
links += link_to I18n.t('active_admin.delete'), resource_path(resource), :method => :delete, :confirm => I18n.t('active_admin.delete_confirmation'), :class => "member_link delete_link"
links
end
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With