Created
February 26, 2012 12:45
-
-
Save prikha/1916545 to your computer and use it in GitHub Desktop.
Deep Nesting active_admin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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