I am using rails_admin
gem and have this Post
model
class Post < ActiveRecord::Base
# Association
has_many :post_categories
has_many :categories, through: :post_categories
has_many :post_tags
has_many :tags, through: :post_tags
# rails_admin configuration
rails_admin do
edit do
field :title
field :categories
field :tags
end
end
end
The problem is the Category field displayed as expected but Tag field is not.
Please tell me what possibly wrong?
我想您会丢失accepts_nested_attributes_for :tags
。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.