Skip to content

Instantly share code, notes, and snippets.

@kirkbushell
Created February 3, 2012 02:58
Show Gist options
  • Save kirkbushell/1727355 to your computer and use it in GitHub Desktop.
Save kirkbushell/1727355 to your computer and use it in GitHub Desktop.
# PRODUCT MODEL
has_many :product_people
has_many :people, :through => :product_people
accepts_nested_attributes_for :people
# PRODUCTS IN ACTIVE ADMIN
f.inputs "Cast" do
f.has_many :product_people do |p|
p.input :name
p.input :_destroy, :as => :boolean
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment