Skip to content

Instantly share code, notes, and snippets.

@developer88
Created February 28, 2013 10:55
Show Gist options
  • Save developer88/5055902 to your computer and use it in GitHub Desktop.
Save developer88/5055902 to your computer and use it in GitHub Desktop.
Add custom header for has_many form in Active Admin
# 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