{"id":17548466,"url":"https://github.com/dhyegocalota/active_admin-form_errors","last_synced_at":"2025-04-24T00:24:47.335Z","repository":{"id":59150263,"uuid":"106951064","full_name":"dhyegocalota/active_admin-form_errors","owner":"dhyegocalota","description":"Pretty form errors by default in your ActiveAdmin. :lipstick:","archived":false,"fork":false,"pushed_at":"2017-10-16T12:24:15.000Z","size":225,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-30T11:01:53.735Z","etag":null,"topics":["activeadmin","activeadmin-plugin","formtastic","rails","ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dhyegocalota.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-10-14T18:09:12.000Z","updated_at":"2021-04-18T07:29:35.000Z","dependencies_parsed_at":"2022-09-13T11:00:20.070Z","dependency_job_id":null,"html_url":"https://github.com/dhyegocalota/active_admin-form_errors","commit_stats":null,"previous_names":["dhyegofernando/active_admin-form_errors"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dhyegocalota%2Factive_admin-form_errors","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dhyegocalota%2Factive_admin-form_errors/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dhyegocalota%2Factive_admin-form_errors/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dhyegocalota%2Factive_admin-form_errors/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dhyegocalota","download_url":"https://codeload.github.com/dhyegocalota/active_admin-form_errors/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250536770,"owners_count":21446796,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["activeadmin","activeadmin-plugin","formtastic","rails","ruby"],"created_at":"2024-10-21T02:07:39.673Z","updated_at":"2025-04-24T00:24:47.313Z","avatar_url":"https://github.com/dhyegocalota.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ActiveAdmin Form Errors\nPretty form errors by default in your ActiveAdmin.\n\n\u003cimg src=\"./demo.gif\"/\u003e\n\n## Installation\n**1. Import gem**\n```ruby\ngem 'active_admin-form_errors'\n```\n\n**2. Import stylesheets (change `app/assets/stylesheets/active_admin.scss`)**\n```scss\n@import 'active_admin/form_errors';\n```\n\n## Options\n**Disable it in a specific resource**\n```ruby\nActiveAdmin.register User do\n  config.form_errors = false\nend\n```\n\n**Disable by default at all resources (change `config/initializers/active_admin.rb`)**\n```ruby\nActiveAdmin.setup do\n  config.form_errors = false\nend\n```\n\n**Show only specific errors**\n```ruby\nActiveAdmin.register User do\n  config.form_errors = lambda do\n    if current_user.admin?\n      resource.errors.keys\n    else\n      [:name, :email]\n    end\n  end\nend\n```\n\n**Change the color base**\n```scss\n$form-errors-color: red; // must be before the import\n\n@import 'active_admin/form_errors';\n```\n\n## Maintainer\n[Dhyego Fernando](https://github.com/dhyegofernando)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdhyegocalota%2Factive_admin-form_errors","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdhyegocalota%2Factive_admin-form_errors","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdhyegocalota%2Factive_admin-form_errors/lists"}