sferik/rails_admin — Issue #1024: i want the button work by use accepts_nested_attribute_for
Author: yangman-tutu
Created: 2012-03-05 09:23:24+00:00
State: open

the rails_admin.rb
config.model TagRecommend do
visible false

edit do
field :tag do
visible false
end
field :name
end

list do
field :tag
field :name
end

show do
field :tag
field :name
end
end

in the Tag model
has_many :tag_recommends
accepts_nested_attributes_for :tag_recommends

i want to show the add form by click the button,but like this it not work ,i try many ways ,it always not work.
i apprciate any help!