Object-based searching.
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 7.2, 7.1, 7.0, 6.1 on Ruby 3.1 and later.
To install ransack
and add it to your Gemfile, run
gem 'ransack'
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'
There is extensive documentation on Ransack, which is a Docusaurus project and run as a GitHub Pages site.
To support the project:
Ransack was created by Ernie Miller and is developed and maintained by:
Alumni Maintainers
This project exists thanks to all the people who contribute.
Thank you to all our backers! š [Become a backer]
Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [Become a sponsor]