我为ActiveAdmin rescource创建了一个集合操作,并希望从资源索引页面链接到它.
手册提供了一些选项,但没有在页面上添加html /按钮(或者我看不到哪里).
http://activeadmin.info/docs/3-index-pages.html
@H_301_8@解决方法
您可以使用action_item块在索引页面上创建按钮:
action_item only: :index do link_to 'Button text',post_path(post) end
https://github.com/activeadmin/activeadmin/blob/master/docs/8-custom-actions.md#action-items
@H_301_8@ @H_301_8@