{"id":30928171,"url":"https://github.com/dphaener/action_validator","last_synced_at":"2026-03-11T19:31:30.141Z","repository":{"id":147539184,"uuid":"618928847","full_name":"dphaener/action_validator","owner":"dphaener","description":"Real time server side validation for Rails forms","archived":false,"fork":false,"pushed_at":"2025-06-08T23:58:17.000Z","size":58,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-29T13:12:12.029Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/dphaener.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"MIT-LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-25T18:54:46.000Z","updated_at":"2025-06-08T23:58:20.000Z","dependencies_parsed_at":"2023-05-31T17:00:19.878Z","dependency_job_id":null,"html_url":"https://github.com/dphaener/action_validator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dphaener/action_validator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dphaener%2Faction_validator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dphaener%2Faction_validator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dphaener%2Faction_validator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dphaener%2Faction_validator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dphaener","download_url":"https://codeload.github.com/dphaener/action_validator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dphaener%2Faction_validator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30395594,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-11T18:46:22.935Z","status":"ssl_error","status_checked_at":"2026-03-11T18:46:17.045Z","response_time":84,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2025-09-10T08:45:19.997Z","updated_at":"2026-03-11T19:31:30.126Z","avatar_url":"https://github.com/dphaener.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ActionValidator\n\nActionValidator is a Rails engine that provides a simple way to perform dynamic client and server side validations\nfor your Rails forms.\n\nIt leverages native HTML5 validations by default and will only perform server side validations if the HTML5 validation\npasses.\n\nBehind the scenes, ActionValidator uses ActionCable to perform the server side validations. Any validations that exist\non your model will be automatically validated on the server side, and if there are any errors, they will be returned\nto the client and displayed in the appropriate form field.\n\n## Usage\n\nUsage of this gem is very straightforward. There are two helper methods that you can use to render your forms.\n\n### validator_form_for\n\nThis is the same as the standard Rails `form_for` helper, but it ensures your form uses the `ActionValidator::FormBuilder`\nto build your forms and automatically adds all of the necessary attributes to the form.\n\nIf you have your own custom form builder, make sure to inherit from `ActionValidator::FormBuilder` and set that as\nyour default builder in your `application_controller.rb` file.\n\nAlso be sure to call `super` in any form builder methods that you override, otherwise you will not get the necessary\nattributes added to your form.\n\n### validator_form_with\n\nThis is the same as the standard Rails `form_with` helper and provides the same functionality as `validator_form_for`.\n\n### validator_error\n\nThis helper method will render a div with the correct Stimulus data attributes on it so that errors can be displayed\non your form.\n\n## Requirements\n\nAll of the JavaScript for ActionValidator is shipped with the gem and currently only supports integration when using\nImportmaps.\n\n## Example\n\nCheck the [dummy app](https://github.com/dphaener/action_validator/tree/main/test/dummy) for a working example of how the gem can be used.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem \"action_validator\"\n```\n\nAnd then execute:\n\n```bash\n$ bundle\n```\n\nOr install it yourself as:\n\n```bash\n$ gem install action_validator\n```\n\n## Contributing\n\nContribution directions go here.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdphaener%2Faction_validator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdphaener%2Faction_validator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdphaener%2Faction_validator/lists"}