Skip to content

Instantly share code, notes, and snippets.

@prikha
Created February 26, 2012 12:45
Show Gist options
  • Save prikha/1916545 to your computer and use it in GitHub Desktop.
Save prikha/1916545 to your computer and use it in GitHub Desktop.
Deep Nesting active_admin
form do |f|
f.inputs "Challenge" do
f.input :name
f.input :about
f.input :starts
f.input :ends
end
f.inputs do
f.has_many :time_sets do |time_set|
time_set.input :name
time_set.has_many :participants do |participant|
participant.input :first_name
participant.input :last_name
participant.input :email
participant.input :birth_year
participant.input :team
participant.input :qualification
end
end
end
f.buttons
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment