ruby on rails - Why doesn't my has_many association use table_for in ActiveAdmin? -
this image when want show name category association relationship:
this code:
column :categories |c| table_for c.categories.all column |category| link_to category.name, [ :admin, category ] end end end
i don't want use table_for
, because has "table" don't want.
how do this?
you can list them out:
index column :categories |c| ul c.categories.each |category| li link_to(category.name, [:admin, category]) end end end end
Comments
Post a Comment