Created
February 28, 2013 10:55
-
-
Save developer88/5055902 to your computer and use it in GitHub Desktop.
Add custom header for has_many form in 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
# in any ActiveAdmin Resource you need in form block add the following code | |
# change 'translations' with your association name | |
f.has_many :translations do |translation| | |
translation.inputs("Caption"){} # Adding caption for languages | |
translation.inputs(""){} # Spacer | |
translations.input # add necessary inputs here | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment