Remove 'Show' link from ActiveAdmin default_actions

前端 未结 2 1240
迷失自我
迷失自我 2021-02-01 22:24

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 =         


        
2条回答
  •  迷失自我
    2021-02-01 22:26

    More recent versions support a call to actions method within the resource definition:

    ActiveAdmin.register Foo do
      actions :all, except: [:edit, :destroy] #just show
      ...
    

提交回复
热议问题