{"id":16183696,"url":"https://github.com/davyjoneslocker/client_side_validations-simple_form","last_synced_at":"2025-04-08T02:42:46.095Z","repository":{"id":658114,"uuid":"2537084","full_name":"DavyJonesLocker/client_side_validations-simple_form","owner":"DavyJonesLocker","description":"Simple Form plugin for ClientSideValidations","archived":false,"fork":false,"pushed_at":"2024-05-03T17:41:56.000Z","size":603,"stargazers_count":252,"open_issues_count":5,"forks_count":102,"subscribers_count":7,"default_branch":"main","last_synced_at":"2024-05-23T05:32:29.302Z","etag":null,"topics":["clientsidevalidations","rails","simpleform"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/DavyJonesLocker.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","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":"2011-10-08T06:59:18.000Z","updated_at":"2024-06-01T12:25:54.594Z","dependencies_parsed_at":"2023-11-10T20:24:13.354Z","dependency_job_id":"a2252b9b-c6c9-4295-af98-0d18c2505a45","html_url":"https://github.com/DavyJonesLocker/client_side_validations-simple_form","commit_stats":{"total_commits":474,"total_committers":13,"mean_commits":36.46153846153846,"dds":0.240506329113924,"last_synced_commit":"72a16ede67b8f93d9c5ab38eda9c7d07282d7868"},"previous_names":[],"tags_count":53,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DavyJonesLocker%2Fclient_side_validations-simple_form","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DavyJonesLocker%2Fclient_side_validations-simple_form/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DavyJonesLocker%2Fclient_side_validations-simple_form/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DavyJonesLocker%2Fclient_side_validations-simple_form/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DavyJonesLocker","download_url":"https://codeload.github.com/DavyJonesLocker/client_side_validations-simple_form/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247767232,"owners_count":20992538,"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":["clientsidevalidations","rails","simpleform"],"created_at":"2024-10-10T07:06:01.352Z","updated_at":"2025-04-08T02:42:46.079Z","avatar_url":"https://github.com/DavyJonesLocker.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ClientSideValidations-SimpleForm #\n\n[![Gem Version](https://badge.fury.io/rb/client_side_validations-simple_form.svg)](https://badge.fury.io/rb/client_side_validations-simple_form)\n[![npm version](https://badge.fury.io/js/%40client-side-validations%2Fsimple-form.svg)](https://badge.fury.io/js/%40client-side-validations%2Fsimple-form)\n[![Ruby Build Status](https://github.com/DavyJonesLocker/client_side_validations-simple_form/actions/workflows/ruby.yml/badge.svg)](https://github.com/DavyJonesLocker/client_side_validations-simple_form/actions)\n[![JavaScript Build Status](https://github.com/DavyJonesLocker/client_side_validations-simple_form/actions/workflows/javascript.yml/badge.svg)](https://github.com/DavyJonesLocker/client_side_validations-simple_form/actions)\n[![Maintainability](https://api.codeclimate.com/v1/badges/b9e9cbbd0d9f454adba7/maintainability)](https://codeclimate.com/github/DavyJonesLocker/client_side_validations-simple_form/maintainability)\n[![Coverage Status](https://coveralls.io/repos/github/DavyJonesLocker/client_side_validations-simple_form/badge.svg?branch=main)](https://coveralls.io/github/DavyJonesLocker/client_side_validations-simple_form?branch=main)\n\n[Simple Form](https://github.com/heartcombo/simple_form) plugin for [ClientSideValidations](https://github.com/DavyJonesLocker/client_side_validations)\n\n## Installation ##\n\nIn your Gemfile add the following:\n\n```ruby\ngem 'simple_form'\ngem 'client_side_validations'\ngem 'client_side_validations-simple_form'\n```\n\nOrder matters here. `simple_form` and `client_side_validations` need to be\nrequired **before** `client_side_validations-simple_form`.\n\n[Follow the remaining installation instructions for ClientSideValidations](https://github.com/DavyJonesLocker/client_side_validations/blob/main/README.md)\n\n### JavaScript file ###\n\nInstructions depend on your technology stack.\n\n####  When using Webpacker ####\n\nMake sure that you are requiring jQuery and Client Side Validations.\n\nAdd the following package:\n\n```sh\nyarn add @client-side-validations/simple-form\n```\n\nThen, according to the CSS framework and module system you are using, add\n**one** of the following lines to your `app/javascript/packs/application.js`\npack:\n\n```js\n// No framework / Generic frameworks / Bootstrap 3 with `import` syntax\nimport '@client-side-validations/simple-form/src'\n\n// Bootstrap 4+ with `import` syntax\nimport '@client-side-validations/simple-form/src/index.bootstrap4'\n\n// No framework / Generic frameworks / Bootstrap 3 with `require` syntax\nrequire('@client-side-validations/simple-form')\n\n// Bootstrap 4+ with `require` syntax\nrequire('@client-side-validations/simple-form/dist/simple-form.bootstrap4.esm')\n```\n\n####  When using Sprockets ####\n\nMake sure that you are requiring jQuery and Client Side Validations.\n\nAccording to the web framework you are using, add **one** of the following\nlines to your `app/assets/javascripts/application.js`, **after**\n`//= require rails.validations`\n\n```js\n// No framework / Generic frameworks / Bootstrap 3\n//= require rails.validations.simple_form\n\n// Bootstrap 4+\n//= require rails.validations.simple_form.bootstrap4\n```\n\nIf you need to copy the asset files from the gem into your project, run:\n\n```\nrails g client_side_validations:copy_assets\n```\n\nNote: If you run `copy_assets`, you will need to run it again each time you update this project.\n\n## Usage ##\n\nThe usage is the same as `ClientSideValidations`, just pass `validate: true` to the form builder\n\n```ruby\n\u003c%= simple_form_for @book, validate: true do |book| %\u003e\n  \u003c%= book.input :name %\u003e\n\u003c% end %\u003e\n```\n\nPer-input options are done with `:validate`\n\n```ruby\n\u003c%= book.input :name, validate: { presence: true, uniqueness: false } %\u003e\n```\n\n## Authors ##\n\n[Brian Cardarella](https://twitter.com/bcardarella)\n\n[Geremia Taglialatela](https://twitter.com/gtagliala)\n\n[We are very thankful for the many contributors](https://github.com/DavyJonesLocker/client_side_validations-simple_form/graphs/contributors)\n\n## Versioning ##\n\nThis gem follows [Semantic Versioning](https://semver.org)\n\n## Want to help? ##\n\nPlease do! We are always looking to improve this gem. Please see our\n[Contribution Guidelines](https://github.com/DavyJonesLocker/client_side_validations-simple_form/blob/main/CONTRIBUTING.md)\non how to properly submit issues and pull requests.\n\n## Legal ##\n\n[DockYard](https://dockyard.com/), LLC \u0026copy; 2012-2023\n\n[@dockyard](https://twitter.com/dockyard)\n\n[Licensed under the MIT license](https://opensource.org/licenses/mit)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavyjoneslocker%2Fclient_side_validations-simple_form","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavyjoneslocker%2Fclient_side_validations-simple_form","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavyjoneslocker%2Fclient_side_validations-simple_form/lists"}