Skip to content

Instantly share code, notes, and snippets.

@developer88
Created March 4, 2013 15:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save developer88/5083137 to your computer and use it in GitHub Desktop.
Save developer88/5083137 to your computer and use it in GitHub Desktop.
Ugly hack to display error messages in ActiveAdmin form
if f.object.errors.size > 0
f.inputs I18n.t("active_admin.errors") do
content_tag(:li, f.object.errors.full_messages.join('<br/>').html_safe, class: 'errors_messages')
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment