Ask A Question

Notifications

You’re not receiving notifications from this thread.

Resource on how to do filters with checkboxes

Masud Hossain asked in General

I'm trying to create a way to filter my User results based on these filters. I'm looking for a guide with example on how to do this.

http://image.prntscr.com/image/07e7113ac239436fa129fa874b5acfa1.png

Reply

Hi Masud,

If you've ever made a simple search form for a rails app then you've already done everything necessary to make this feature. All these are is a form that submits the selected options to an action which gets passed into a query to get the results.

Check these links:

Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 86,651+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.