https://github.com/activerecord-hackery/ransack
Search everywhere and in a hurry!
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 9 hours ago
JSON representation
Repository metadata
Search everywhere and in a hurry!
- Host: GitHub
- URL: https://github.com/activerecord-hackery/ransack
- Owner: activerecord-hackery
- License: mit
- Created: 2011-03-31T00:34:25.000Z (over 15 years ago)
- Default Branch: main
- Last Pushed: 2026-09-29T06:14:42.000Z (6 days ago)
- Last Synced: 2026-09-29T23:49:59.710Z (6 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: 36.2 MB
- Stars: 5,859
- Watchers: 78
- Forks: 817
- Open Issues: 4
- Releases: 46
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- 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.1, 8.0, 7.2 on Ruby 3.2 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, built with Jekyll and Just the Docs from the Markdown under docs/ and published 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]
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: 2026-10-02T10:56:45.921Z
- Profile URL: https://github.com/activerecord-hackery
GitHub Events
Total
- Commit comment event: 1
- Create event: 37
- Delete event: 17
- Fork event: 37
- Issue comment event: 141
- Issues event: 61
- Pull request event: 101
- Pull request review comment event: 26
- Pull request review event: 44
- Push event: 168
- Release event: 1
- Watch event: 173
Last Year
- Create event: 3
- Delete event: 4
- Issue comment event: 8
- Issues event: 4
- Pull request event: 6
- Pull request review comment event: 2
- Pull request review event: 3
- Push event: 16
- Watch event: 22
Committers metadata
Last synced: 1 day ago
Total Commits: 1,589
Total Committers: 256
Avg Commits per committer: 6.207
Development Distribution Score (DDS): 0.593
Commits in past year: 58
Committers in past year: 10
Avg Commits per committer in past year: 5.8
Development Distribution Score (DDS) in past year: 0.276
| Name | Commits | |
|---|---|---|
| Jon Atack | j****k@g****m | 646 |
| Sean | 1****2 | 116 |
| David RodrĆguez | d****z@r****t | 97 |
| 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 |
| ryoya kobayashi | k****t@g****m | 7 |
| Timo Schilling | t****o@s****o | 6 |
| Piers Chambers | p****s@v****m | 6 |
| Niels Kristian | n****t@g****m | 6 |
| Idean Labib | i****b@g****m | 6 |
| Tibor Nagy | t****r@s****h | 5 |
| Steven Jones | s****n@r****m | 5 |
| Kevin Sjƶberg | k****g@g****m | 5 |
| and 226 more... | ||
Committer domains:
- inbox.ru: 2
- shopify.com: 2
- martoq.cl: 1
- andreadalponte.com: 1
- yahoo.co.uk: 1
- benjaminfleischer.com: 1
- dejimata.com: 1
- sun-asterisk.com: 1
- cogniance.com: 1
- icdesign.com.au: 1
- yandex.ru: 1
- philippweissensteiner.com: 1
- sonicgarden.jp: 1
- obfusc8.org: 1
- guestfolio.com: 1
- jpmchase.com: 1
- bitcetera.com: 1
- villataika.fi: 1
- wisemonks.com: 1
- semenyukdmitriy.com: 1
- gitlab.com: 1
- drooms.com: 1
- promptworks.com: 1
- riseup.net: 1
- metautonomo.us: 1
- avit.ca: 1
- erniemiller.org: 1
- dio.jp: 1
- generation-y.gr: 1
- schilling.io: 1
- varyonic.com: 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
- swiftcomply.com: 1
- at-consulting.ru: 1
- depraktijkindex.nl: 1
- wrapbook.com: 1
- tamug.edu: 1
- mrjoy.com: 1
- alpaca.tc: 1
- unact.ru: 1
- aeon.health: 1
- tylerhunt.com: 1
- vondeyen.com: 1
- roetzel.de: 1
- codenation.com: 1
- hingehealth.com: 1
- sanger.ac.uk: 1
- outlook.dk: 1
- igloonet.cz: 1
- youngcapital.nl: 1
- ukr.net: 1
- murb.nl: 1
- agrian.com: 1
- kontena.io: 1
- northworld.com: 1
- andjosh.com: 1
- significantbit.se: 1
- kolide.co: 1
- seznam.cz: 1
- fbergman.se: 1
- muskovics.net: 1
- essential-data.sk: 1
- ogd.nl: 1
- am.com: 1
- coshx.com: 1
- uniweb.ru: 1
- woodalls.me: 1
- casat.org: 1
- galdomedia.pl: 1
- galdomedia.plā: 1
- att.com: 1
- st2n.de: 1
- anassina.com: 1
- robmadethis.com: 1
- arndt.io: 1
- deheus.net: 1
- o2.pl: 1
- proton.me: 1
- cuon.co.jp: 1
- penguinlab.jp: 1
- spernj.org: 1
- sutty.nl: 1
- sandisk.com: 1
Issue and Pull Request metadata
Last synced: 1 day ago
Total issues: 213
Total pull requests: 255
Average time to close issues: about 2 years
Average time to close pull requests: 3 months
Total issue authors: 169
Total pull request authors: 76
Average comments per issue: 2.85
Average comments per pull request: 1.04
Merged pull request: 106
Bot issues: 0
Bot pull requests: 38
Past year issues: 11
Past year pull requests: 32
Past year average time to close issues: about 1 month
Past year average time to close pull requests: 3 days
Past year issue authors: 7
Past year pull request authors: 13
Past year average comments per issue: 0.18
Past year average comments per pull request: 0.22
Past year merged pull request: 12
Past year bot issues: 0
Past year bot pull requests: 2
Top Issue Authors
- scarroll32 (25)
- stereobooster (4)
- devsheva (4)
- tagliala (3)
- Tobias-Knudsen (3)
- dsusco (3)
- davideluque (2)
- alipman88 (2)
- talalong (2)
- itsalongstory (2)
- RailsCod3rFuture (2)
- tony123S (2)
- kalsan (2)
- MtnBiker (2)
- sigmaray (1)
Top Pull Request Authors
- dependabot[bot] (38)
- Copilot (38)
- scarroll32 (25)
- deivid-rodriguez (18)
- ryoya1122 (8)
- gregmolnar (8)
- tatematsu-k (4)
- jdufresne (4)
- le0pard (4)
- jdlubrano (4)
- stereobooster (3)
- robingram (2)
- adrianthedev (2)
- Aesthetikx (2)
- tindron (2)
Top Issue Labels
- Documentation (7)
- Help Wanted (5)
- Bug (4)
- 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: 314,342,924 total
- Total docker downloads: 1,076,736
- Total dependent packages: 164 (may contain duplicates)
- Total dependent repositories: 55,493 (may contain duplicates)
- Total versions: 268
- 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: 5.0.2 (published 13 days ago)
- Last Synced: 2026-10-04T02:31:01.919Z (1 day ago)
- Versions: 79
- Dependent Packages: 0
- Dependent Repositories: 0
- Downloads: 118,940,665 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 over 6 years ago)
- Last Synced: 2026-10-04T02:30:56.007Z (1 day ago)
- Versions: 15
- Dependent Packages: 0
- Dependent Repositories: 0
- Downloads: 38,230,797 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: 5.0.2 (published 13 days ago)
- Last Synced: 2026-10-04T02:31:01.907Z (1 day ago)
- Versions: 79
- Dependent Packages: 156
- Dependent Repositories: 29,549
- Downloads: 118,940,665 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 over 6 years ago)
- Last Synced: 2026-10-04T02:31:00.544Z (1 day ago)
- Versions: 15
- Dependent Packages: 8
- Dependent Repositories: 25,943
- Downloads: 38,230,797 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: v5.0.2+incompatible (published 13 days ago)
- Last Synced: 2026-10-04T02:30:59.196Z (1 day ago)
- Versions: 80
- 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
- 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
- html-proofer >= 0
- jekyll ~> 4.4
- jekyll-redirect-from >= 0
- jekyll-relative-links >= 0
- jekyll-seo-tag >= 0
- just-the-docs ~> 0.12
- webrick >= 0
- Ascii85 2.0.1
- addressable 2.9.0
- afm 1.0.0
- async 2.46.0
- base64 0.3.0
- benchmark 0.5.0
- bigdecimal 3.3.1
- bundler 2.7.2
- colorator 1.1.0
- concurrent-ruby 1.3.8
- console 1.38.0
- csv 3.3.6
- em-websocket 0.5.3
- ethon 0.18.0
- eventmachine 1.2.7
- ffi 1.17.4
- fiber-annotation 0.2.0
- fiber-local 1.1.0
- fiber-storage 1.0.1
- forwardable-extended 2.6.0
- google-protobuf 4.36.2
- hashery 2.1.2
- html-proofer 5.2.2
- http_parser.rb 0.8.1
- i18n 1.15.2
- io-event 1.22.0
- jekyll 4.4.1
- jekyll-include-cache 0.2.2
- jekyll-redirect-from 0.16.0
- jekyll-relative-links 0.8.0
- jekyll-sass-converter 3.1.0
- jekyll-seo-tag 2.9.0
- jekyll-watch 2.2.1
- json 2.21.2
- just-the-docs 0.12.0
- kramdown 2.5.2
- kramdown-parser-gfm 1.1.0
- liquid 4.0.4
- listen 3.10.0
- logger 1.7.0
- mercenary 0.4.0
- nokogiri 1.19.4
- pathutil 0.16.2
- pdf-reader 2.16.0
- public_suffix 7.0.5
- racc 1.8.1
- rainbow 3.1.1
- rake 13.4.2
- rb-fsevent 0.11.2
- rb-inotify 0.11.1
- rexml 3.4.4
- rouge 4.7.0
- safe_yaml 1.0.5
- sass-embedded 1.104.1
- terminal-table 3.0.2
- ttfunk 1.8.0
- typhoeus 1.6.0
- unicode-display_width 2.6.0
- webrick 1.9.2
- yell 2.2.2
- zeitwerk 2.8.3
- actions/checkout 11d5960a326750d5838078e36cf38b85af677262 composite
- ruby/setup-ruby a0102e0972be65f351c307e2d64b9314a57c8073 composite
- rubygems/configure-rubygems-credentials dc5a8d8553e6ee01fc26761a49e99e733d17954a composite
Score: 33.79118749895406
