我有一个自定义ActiveAdmin页面,其中show
操作显示了一堆属性。我添加了一行来显示关联对象,但不希望它链接到该对象的显示页面。我怎么能压制链接?示例如下:
ActiveAdmin.register Thingy do
show do |thingy|
attributes_table do
row :name
row :date
row :associate do
thingy.associate
end
end
end
end
name
和date
行显示为“标签:值”。 associate
行也可以,但'Value'是指向该特定关联对象的显示页面的链接,我不想这样做。