Multiple filter criteria in Ruby on Rails

I wanted to allow user to filter records with multiple criteria but each criteria should be could be left blank. I think I came up with a quite scalable and elegant solution.

My controller:

I hope it helps!

Leave a Reply