https://github.com/activerecord-hackery/ransack
Object-based searching.
https://github.com/activerecord-hackery/ransack
Keywords
activerecord rails ruby ruby-gem ruby-library ruby-on-rails search search-interface sql
Keywords from Contributors
activejob mvc rubygems rubocop rspec static-code-analysis code-formatter rack devise crash-reporting
Last synced: about 1 hour ago
JSON representation
Repository metadata
Object-based searching.
- Host: GitHub
- URL: https://github.com/activerecord-hackery/ransack
- Owner: activerecord-hackery
- License: mit
- Created: 2011-03-31T00:34:25.000Z (almost 15 years ago)
- Default Branch: main
- Last Pushed: 2026-02-06T12:18:16.000Z (25 days ago)
- Last Synced: 2026-03-01T22:27:41.202Z (2 days ago)
- Topics: activerecord, rails, ruby, ruby-gem, ruby-library, ruby-on-rails, search, search-interface, sql
- Language: Ruby
- Homepage: https://activerecord-hackery.github.io/ransack/
- Size: 42.7 MB
- Stars: 5,850
- Watchers: 81
- Forks: 827
- Open Issues: 153
- Releases: 41
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Security: .github/SECURITY.md
README.md
Introduction
Ransack will help you easily add searching to your Rails application, without any additional dependencies.
There are advanced searching solutions around, like ElasticSearch or Algolia. Ransack will do the job for many Rails websites, without the need to run additional infrastructure or work in a different language. With Ransack you do it all with standard Ruby and ERB.
Ready to move beyond the basics? Use advanced features like i18n and extensive configuration options.
Ransack is supported for Rails 8.0, 7.2 on Ruby 3.1 and later.
Installation
To install ransack and add it to your Gemfile, run
gem 'ransack'
Bleeding edge
If you would like to use the latest updates not yet published to RubyGems, use the main branch:
gem 'ransack', :github => 'activerecord-hackery/ransack', :branch => 'main'
Documentation
There is extensive documentation on Ransack, which is a Docusaurus project and run as a GitHub Pages site. Alternatively there is AI Generated documentation produced by devin.ai.
This gist has a quick-start cheatsheet, created by @raghubetina
Issue tracker
- Before filing an issue, please read the Contributing Guide.
- File an issue if a bug is caused by Ransack, is new (has not already been reported), and can be reproduced from the information you provide.
- Please consider creating a pull request with a failing test that demonstrates the problem.
- Contributions are welcome. š
- Please do not use the issue tracker for personal support requests. Stack Overflow or GitHub Discussions is a better place for that where a wider community can help you!
Contributions
To support the project:
- Consider supporting us via Open Collective
- Use Ransack in your apps, and let us know if you encounter anything that's
broken or missing. A failing spec to demonstrate the issue is awesome. A pull
request with passing tests is even better! - Before filing an issue or pull request, be sure to read and follow the
Contributing Guide. - Please use Stack Overflow or GitHub Discussions for questions or discussion not
directly related to bug reports, pull requests, or documentation improvements. - Spread the word on social media if Ransack's been useful
to you. The more people who are using the project, the quicker we can find and
fix bugs!
Contributors
Ransack was created by Ernie Miller and is developed and maintained by:
- Ransack's logo is designed by Anıl KılıƧ.
Alumni Maintainers
This project exists thanks to all the people who contribute.
Backers
Thank you to all our backers! š [Become a backer]
Sponsors
Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [Become a sponsor]
Owner metadata
- Name: ActiveRecord Hackery
- Login: activerecord-hackery
- Email:
- Kind: organization
- Description:
- Website:
- Location: The Internets
- Twitter:
- Company:
- Icon url: https://avatars.githubusercontent.com/u/5951504?v=4
- Repositories: 7
- Last ynced at: 2024-05-21T00:46:30.237Z
- Profile URL: https://github.com/activerecord-hackery
GitHub Events
Total
- Create event: 34
- Commit comment event: 1
- Release event: 1
- Delete event: 13
- Pull request event: 98
- Fork event: 37
- Issues event: 59
- Watch event: 168
- Issue comment event: 138
- Push event: 152
- Pull request review event: 41
- Pull request review comment event: 24
Last Year
- Create event: 31
- Commit comment event: 1
- Release event: 1
- Delete event: 11
- Pull request event: 80
- Fork event: 19
- Issues event: 53
- Watch event: 89
- Issue comment event: 99
- Push event: 126
- Pull request review event: 37
- Pull request review comment event: 19
Committers metadata
Last synced: 1 day ago
Total Commits: 1,529
Total Committers: 249
Avg Commits per committer: 6.141
Development Distribution Score (DDS): 0.578
Commits in past year: 44
Committers in past year: 20
Avg Commits per committer in past year: 2.2
Development Distribution Score (DDS) in past year: 0.636
| Name | Commits | |
|---|---|---|
| Jon Atack | j****k@g****m | 646 |
| David RodrĆguez | d****z@r****t | 97 |
| Sean | 1****2 | 72 |
| Yasuo Honda | y****a@g****m | 48 |
| Ryan Bigg | r****r@g****m | 44 |
| Ernie Miller | e****e@m****s | 43 |
| Greg Molnar | m****g@g****m | 39 |
| Zhomart Mukhamejanov | m****t@g****m | 37 |
| Andrew Vit | a****w@a****a | 19 |
| dependabot[bot] | 4****] | 15 |
| Washington Luiz | h****o@g****m | 14 |
| Ernie Miller | e****e@e****g | 12 |
| yuuji.yaginuma | y****a@g****m | 10 |
| Sean | 1****l | 9 |
| Mark Huk | m****e@g****m | 9 |
| Copilot | 1****t | 9 |
| Sean Linsley | x****v@g****m | 9 |
| Akira Matsuda | r****e@d****p | 8 |
| Ryuta Kamizono | k****o@g****m | 8 |
| Vassilis Rodokanakis | v****s@g****r | 8 |
| Garett Arrowood | g****d@g****m | 7 |
| Alejandro Babio | a****o@h****m | 7 |
| Idean Labib | i****b@g****m | 6 |
| Niels Kristian | n****t@g****m | 6 |
| Piers Chambers | p****s@v****m | 6 |
| Timo Schilling | t****o@s****o | 6 |
| Tibor Nagy | t****r@s****h | 5 |
| Steven Jones | s****n@r****m | 5 |
| Kevin Sjƶberg | k****g@g****m | 5 |
| Jared Beck | j****d@j****m | 5 |
| and 219 more... | ||
Committer domains:
- inbox.ru: 2
- shopify.com: 2
- andreadalponte.com: 1
- yahoo.co.uk: 1
- benjaminfleischer.com: 1
- dejimata.com: 1
- cogniance.com: 1
- icdesign.com.au: 1
- yandex.ru: 1
- philippweissensteiner.com: 1
- xpillars.software: 1
- obfusc8.org: 1
- sun-asterisk.com: 1
- sonicgarden.jp: 1
- guestfolio.com: 1
- jpmchase.com: 1
- semenyukdmitriy.com: 1
- gitlab.com: 1
- uniweb.ru: 1
- wisemonks.com: 1
- bitcetera.com: 1
- villataika.fi: 1
- promptworks.com: 1
- riseup.net: 1
- metautonomo.us: 1
- avit.ca: 1
- erniemiller.org: 1
- dio.jp: 1
- generation-y.gr: 1
- varyonic.com: 1
- schilling.io: 1
- softxs.ch: 1
- repairshopr.com: 1
- jaredbeck.com: 1
- cubus.ro: 1
- pc48.home: 1
- land.fm: 1
- hypofriend.de: 1
- crm-box.ru: 1
- martenschilstra.nl: 1
- depraktijkindex.nl: 1
- at-consulting.ru: 1
- swiftcomply.com: 1
- tamug.edu: 1
- mrjoy.com: 1
- cuon.co.jp: 1
- aeon.health: 1
- unact.ru: 1
- alpaca.tc: 1
- sutty.nl: 1
- roetzel.de: 1
- sandisk.com: 1
- fbergman.se: 1
- hingehealth.com: 1
- sanger.ac.uk: 1
- outlook.dk: 1
- andjosh.com: 1
- northworld.com: 1
- kontena.io: 1
- agrian.com: 1
- ukr.net: 1
- youngcapital.nl: 1
- igloonet.cz: 1
- proton.me: 1
- seznam.cz: 1
- kolide.co: 1
- tylerhunt.com: 1
- martoq.cl: 1
- drooms.com: 1
- ogd.nl: 1
- essential-data.sk: 1
- muskovics.net: 1
- am.com: 1
- coshx.com: 1
- casat.org: 1
- woodalls.me: 1
- galdomedia.pl: 1
- galdomedia.plā: 1
- att.com: 1
- vondeyen.com: 1
- anassina.com: 1
- deheus.net: 1
- arndt.io: 1
- robmadethis.com: 1
- st2n.de: 1
- o2.pl: 1
- significantbit.se: 1
- spernj.org: 1
- penguinlab.jp: 1
- codenation.com: 1
Issue and Pull Request metadata
Last synced: 5 days ago
Total issues: 207
Total pull requests: 227
Average time to close issues: almost 2 years
Average time to close pull requests: 3 months
Total issue authors: 168
Total pull request authors: 72
Average comments per issue: 2.82
Average comments per pull request: 1.09
Merged pull request: 94
Bot issues: 0
Bot pull requests: 38
Past year issues: 27
Past year pull requests: 78
Past year average time to close issues: about 2 months
Past year average time to close pull requests: 18 days
Past year issue authors: 19
Past year pull request authors: 20
Past year average comments per issue: 0.85
Past year average comments per pull request: 0.63
Past year merged pull request: 25
Past year bot issues: 0
Past year bot pull requests: 10
Top Issue Authors
- scarroll32 (20)
- stereobooster (4)
- devsheva (4)
- tagliala (3)
- Tobias-Knudsen (3)
- dsusco (3)
- davideluque (2)
- alipman88 (2)
- itsalongstory (2)
- talalong (2)
- RailsCod3rFuture (2)
- tony123S (2)
- kalsan (2)
- MtnBiker (2)
- sigmaray (1)
Top Pull Request Authors
- dependabot[bot] (38)
- Copilot (32)
- deivid-rodriguez (18)
- scarroll32 (15)
- gregmolnar (8)
- jdufresne (4)
- le0pard (4)
- jdlubrano (4)
- tatematsu-k (3)
- stereobooster (3)
- robingram (2)
- adrianthedev (2)
- Aesthetikx (2)
- tindron (2)
- xiaohui-zhangxh (2)
Top Issue Labels
- Documentation (6)
- Help Wanted (5)
- tests wanted (3)
- Waiting for feedback from reporter (2)
- simple_form (1)
Top Pull Request Labels
- dependencies (38)
- javascript (10)
- Breaking change (2)
Package metadata
- Total packages: 5
-
Total downloads:
- rubygems: 285,733,447 total
- Total docker downloads: 1,076,736
- Total dependent packages: 164 (may contain duplicates)
- Total dependent repositories: 55,493 (may contain duplicates)
- Total versions: 253
- Total maintainers: 7
gem.coop: ransack
Powerful object-based searching and filtering for Active Record with advanced features like complex boolean queries, association searching, custom predicates and i18n support.
- Homepage: https://github.com/activerecord-hackery/ransack
- Documentation: http://www.rubydoc.info/gems/ransack/
- Licenses: MIT
- Latest release: 4.4.1 (published 5 months ago)
- Last Synced: 2026-02-28T22:31:05.352Z (3 days ago)
- Versions: 74
- Dependent Packages: 0
- Dependent Repositories: 0
- Downloads: 105,106,298 Total
- Docker Downloads: 459,303
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Downloads: 0.245%
- Average: 0.435%
- Docker downloads count: 1.495%
- Maintainers (3)
gem.coop: polyamorous
This is just an extraction from Ransack/Squeel. You probably don't want to use this directly. It extends ActiveRecord's associations to support polymorphic belongs_to associations.
- Homepage: https://github.com/activerecord-hackery/ransack/tree/master/polyamorous
- Documentation: http://www.rubydoc.info/gems/polyamorous/
- Licenses: MIT
- Latest release: 2.3.2 (published about 6 years ago)
- Last Synced: 2026-03-01T22:03:04.664Z (2 days ago)
- Versions: 15
- Dependent Packages: 0
- Dependent Repositories: 0
- Downloads: 37,747,316 Total
- Docker Downloads: 79,065
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 0.568%
- Downloads: 0.615%
- Docker downloads count: 1.658%
- Maintainers (6)
rubygems.org: ransack
Powerful object-based searching and filtering for Active Record with advanced features like complex boolean queries, association searching, custom predicates and i18n support.
- Homepage: https://github.com/activerecord-hackery/ransack
- Documentation: http://www.rubydoc.info/gems/ransack/
- Licenses: MIT
- Latest release: 4.4.1 (published 5 months ago)
- Last Synced: 2026-03-02T04:32:58.442Z (1 day ago)
- Versions: 74
- Dependent Packages: 156
- Dependent Repositories: 29,549
- Downloads: 105,132,107 Total
- Docker Downloads: 459,303
-
Rankings:
- Dependent repos count: 0.203%
- Stargazers count: 0.224%
- Dependent packages count: 0.227%
- Downloads: 0.261%
- Average: 0.571%
- Forks count: 0.821%
- Docker downloads count: 1.691%
- Maintainers (3)
rubygems.org: polyamorous
This is just an extraction from Ransack/Squeel. You probably don't want to use this directly. It extends ActiveRecord's associations to support polymorphic belongs_to associations.
- Homepage: https://github.com/activerecord-hackery/ransack/tree/master/polyamorous
- Documentation: http://www.rubydoc.info/gems/polyamorous/
- Licenses: MIT
- Latest release: 2.3.2 (published about 6 years ago)
- Last Synced: 2026-03-02T04:01:54.265Z (1 day ago)
- Versions: 15
- Dependent Packages: 8
- Dependent Repositories: 25,943
- Downloads: 37,747,726 Total
- Docker Downloads: 79,065
-
Rankings:
- Dependent repos count: 0.222%
- Stargazers count: 0.224%
- Downloads: 0.508%
- Forks count: 0.821%
- Average: 0.95%
- Docker downloads count: 1.881%
- Dependent packages count: 2.044%
- Maintainers (6)
proxy.golang.org: github.com/activerecord-hackery/ransack
- Homepage:
- Documentation: https://pkg.go.dev/github.com/activerecord-hackery/ransack#section-documentation
- Licenses: mit
- Latest release: v4.4.1+incompatible (published 5 months ago)
- Last Synced: 2026-02-26T15:02:45.889Z (5 days ago)
- Versions: 75
- Dependent Packages: 0
- Dependent Repositories: 1
-
Rankings:
- Dependent repos count: 4.794%
- Average: 6.623%
- Dependent packages count: 8.453%
Dependencies
- actions/checkout v3 composite
- github/codeql-action/analyze v2 composite
- github/codeql-action/autobuild v2 composite
- github/codeql-action/init v2 composite
- actions/checkout v2 composite
- ruby/setup-ruby v1 composite
- postgres * docker
- actions/checkout v3 composite
- actions/setup-node v3 composite
- peaceiris/actions-gh-pages v3 composite
- actions/checkout v2 composite
- ruby/setup-ruby v1 composite
- actions/checkout v3 composite
- actions/setup-node v3 composite
- actions/checkout v2 composite
- ruby/setup-ruby v1 composite
- postgres * docker
- @docusaurus/core ^2.2.0
- @docusaurus/preset-classic ^2.2.0
- @easyops-cn/docusaurus-search-local ^0.33.5
- @mdx-js/react ^1.6.22
- clsx ^1.1.1
- prism-react-renderer ^1.3.1
- react ^17.0.2
- react-dom ^17.0.2
- 1154 dependencies
- machinist ~> 1.0.6 development
- rspec >= 0 development
- simplecov >= 0 development
- actionpack >= 0
- activemodel >= 0
- activerecord >= 0
- activesupport >= 0
- byebug >= 0
- faker >= 0
- mysql2 >= 0
- pg >= 0
- pry >= 0
- rake >= 0
- rubocop >= 0
- sqlite3 >= 0
- activerecord >= 6.1.5
- activesupport >= 6.1.5
- i18n >= 0
Score: 33.69199531776019
