The Ransack gem provides us with a powerful, flexible, easy-to-integrate search/filter form.
In your Gemfile, include
gem 'ransack'
| #!/usr/bin/env ruby | |
| # | |
| # Find bloating passengers and kill them gracefully. Run from cron every minute. | |
| # | |
| # required for passenger since cron has no environment | |
| ENV['HTTPD'] = 'httpd' | |
| MEM_LIMIT = ARGV[0] || 500 |
| find . -name ".git" -exec rm -rf {} \; |