{"id":15151848,"url":"https://github.com/blocknotes/activeadmin_simple_form","last_synced_at":"2025-09-29T21:31:22.844Z","repository":{"id":56842070,"uuid":"123827840","full_name":"blocknotes/activeadmin_simple_form","owner":"blocknotes","description":"An ActiveAdmin 1.x plugin to use Simple Form in place of Formtastic in edit views","archived":true,"fork":false,"pushed_at":"2020-08-22T08:57:11.000Z","size":5,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-09-13T22:10:04.907Z","etag":null,"topics":["activeadmin","activeadmin-plugin","rails5","ruby","simpleform"],"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/blocknotes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-03-04T20:50:18.000Z","updated_at":"2023-01-28T02:16:40.000Z","dependencies_parsed_at":"2022-08-29T06:50:49.130Z","dependency_job_id":null,"html_url":"https://github.com/blocknotes/activeadmin_simple_form","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blocknotes%2Factiveadmin_simple_form","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blocknotes%2Factiveadmin_simple_form/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blocknotes%2Factiveadmin_simple_form/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blocknotes%2Factiveadmin_simple_form/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blocknotes","download_url":"https://codeload.github.com/blocknotes/activeadmin_simple_form/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219553701,"owners_count":16506266,"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","rails5","ruby","simpleform"],"created_at":"2024-09-26T15:23:02.705Z","updated_at":"2025-09-29T21:31:17.544Z","avatar_url":"https://github.com/blocknotes.png","language":"Ruby","readme":"# ActiveAdmin SimpleForm [![Gem Version](https://badge.fury.io/rb/activeadmin_simple_form.svg)](https://badge.fury.io/rb/activeadmin_simple_form)\n\nWARNING: this component is just a proof of concept, it can be useful for experimental purposes.\n\n---\n\nAn Active Admin plugin to use Simple Form in place of Formtastic in edit views.\n\n## Install\n\n- Add to your Gemfile: gem 'activeadmin_simple_form'\n- Execute bundle\n- Create the Simple Form config initializer: `rails generate simple_form:install`\n- Add to the config the wrapper used for the fields in *inputs* blocks:\n\n```rb\n  config.wrappers :inputs_container, tag: :li, class: :input, hint_class: :field_with_hint, error_class: :field_with_errors do |b|\n    b.use :html5\n    b.use :placeholder\n    b.optional :maxlength\n    b.optional :minlength\n    b.optional :pattern\n    b.optional :min_max\n    b.optional :readonly\n    b.use :label_input\n    b.use :hint,  wrap_with: { tag: :span, class: :hint }\n    b.use :error, wrap_with: { tag: :span, class: :error }\n  end\n```\n\n## Example\n\n- Author model example:\n\n```rb\n  form do |f|\n    f.inputs 'Informations' do\n      f.input :name\n      f.input :age\n      f.association :country  # using input for associations is not supported\n      f.has_many :articles do |ff|\n        ff.input :title\n        ff.input :description\n        ff.input :published\n        ff.input :_destroy, as: :boolean, required: false unless ff.object.new_record?\n      end\n    end\n    f.actions\n  end\n```\n\n## Do you like it? Star it!\n\nIf you use this component just star it. A developer is more motivated to improve a project when there is some interest.\n\nTake a look at [other ActiveAdmin components](https://github.com/blocknotes?utf8=✓\u0026tab=repositories\u0026q=activeadmin\u0026type=source) that I made if you are curious.\n\n## Contributors\n\n- [Mattia Roccoberton](http://blocknot.es) - creator, maintainer\n\n## License\n\n[MIT](LICENSE.txt)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblocknotes%2Factiveadmin_simple_form","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblocknotes%2Factiveadmin_simple_form","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblocknotes%2Factiveadmin_simple_form/lists"}