{"id":27116896,"url":"https://github.com/jigneshsatam/select_all-rails","last_synced_at":"2026-03-17T06:37:07.883Z","repository":{"id":56894748,"uuid":"60688860","full_name":"jigneshsatam/select_all-rails","owner":"jigneshsatam","description":"Simple to select and unselect all check-boxes","archived":false,"fork":false,"pushed_at":"2017-10-11T17:18:35.000Z","size":2543,"stargazers_count":9,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-30T13:03:24.812Z","etag":null,"topics":["ajax","all","checkbox","rails","select","select-all","selected-checkboxes-count"],"latest_commit_sha":null,"homepage":"http://jigneshsatam.github.io/select_all-rails/","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/jigneshsatam.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-06-08T10:11:40.000Z","updated_at":"2025-03-02T13:55:23.000Z","dependencies_parsed_at":"2022-08-20T17:10:24.125Z","dependency_job_id":null,"html_url":"https://github.com/jigneshsatam/select_all-rails","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jigneshsatam%2Fselect_all-rails","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jigneshsatam%2Fselect_all-rails/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jigneshsatam%2Fselect_all-rails/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jigneshsatam%2Fselect_all-rails/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jigneshsatam","download_url":"https://codeload.github.com/jigneshsatam/select_all-rails/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247601472,"owners_count":20964864,"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":["ajax","all","checkbox","rails","select","select-all","selected-checkboxes-count"],"created_at":"2025-04-07T05:53:10.334Z","updated_at":"2026-03-17T06:37:02.842Z","avatar_url":"https://github.com/jigneshsatam.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# select_all-rails\n***Simple to check and uncheck checkboxes***\n***\n[![Gem Version](https://badge.fury.io/rb/select_all-rails@2x.png)](https://badge.fury.io/rb/select_all-rails) [![Build Status](https://travis-ci.org/JigneshSatam/select_all-rails.svg?branch=master)](https://travis-ci.org/JigneshSatam/select_all-rails) [![Code Climate](https://codeclimate.com/github/JigneshSatam/select_all-rails/badges/gpa.svg)](https://codeclimate.com/github/JigneshSatam/select_all-rails) [![Issue Count](https://codeclimate.com/github/JigneshSatam/select_all-rails/badges/issue_count.svg)](https://codeclimate.com/github/JigneshSatam/select_all-rails)\n\nSelect_all-rails is gem for implementing '**select-all**' functionality in more simple and effective way in your ruby-on-rails application.\n## Functionalities\n* [***Basic Usage***](http://jigneshsatam.github.io/select_all-rails/#basic_usage) - Selecting/Unselecting multiple checkboxes.\n* [***Multiple Seletions***](http://jigneshsatam.github.io/select_all-rails/#multiple_selections) - Implementing more than one select-all functionalities in a page.\n* [***Ajax Added Checkboxes***](http://jigneshsatam.github.io/select_all-rails/#ajax_added_checkboxes) - Implementing select-all functionality to new checkboxes added by an Ajax call.\n* [***Show Selection/Count***](http://jigneshsatam.github.io/select_all-rails/#show_selected_count) - Display selected checkboxes count or checkboxes remaining to select count or selected checkboxes count out of total checkboxes.\n\n## Installation\n\nAdd this line to your application's **Gemfile**:\n\n```ruby\ngem 'select_all-rails'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install select_all-rails\n\nAnd add the following line to your **application.js** file after jquery:\n\n    //= require select_all.js\n\n## Usage\nCall the function **select_all()** on main checkbox and add class **'selectable'** to sub-checkboxes.\n\nHTML example:\n```html\n\u003cinput type=\"checkbox\" id=\"selectAll\"\u003eAll Items\u003c/input\u003e\n\n\u003cinput type=\"checkbox\" class=\"selectable\"\u003eItem 1\u003c/input\u003e\n\u003cinput type=\"checkbox\" class=\"selectable\"\u003eItem 2\u003c/input\u003e\n\u003cinput type=\"checkbox\" class=\"selectable\"\u003eItem 3\u003c/input\u003e\n\n\u003cscript type=\"text/javascript\"\u003e\n    $(\"#selectAll\").select_all();\n\u003c/script\u003e\n```\n***For more usage checkout*** [**Demo**](http://jigneshsatam.github.io/select_all-rails/)\n\n\nRails haml example:\n```haml\n= check_box_tag 'checkAll'\n= check_box_tag 'selected_ids[]', \"1\", false, class: 'selectable'\n= check_box_tag 'selected_ids[]', \"2\", false, class: 'selectable'\n= check_box_tag 'selected_ids[]', \"3\", false, class: 'selectable'\n\n:javascript\n    $(\"#checkAll\").select_all();\n```\n\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release` to create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\n1. Fork it ( https://github.com/[my-github-username]/select_all-rails/fork )\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create a new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjigneshsatam%2Fselect_all-rails","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjigneshsatam%2Fselect_all-rails","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjigneshsatam%2Fselect_all-rails/lists"}