This is a tiny Rails app made to demonstrate how to create your own basic filtering functionality using Ransack, which I cover in this post. Check it out!
- User Controller - where the query params are wrapped and applied to our search object
- User Index View - where the DIY filter form is
bundle install
cp config/database.yml{.example,}
- Open 'config/database.yml' in your editor of choice and fill out with your Postgres username + password
- Ensure Postgres is started (how-to)
bundle exec rake db:create db:migrate
rails s