All threads / Resource on how to do filters with checkboxes

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

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:

Join the discussion

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

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

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

    logo Created with Sketch.

    Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

    © 2020 GoRails, LLC. All rights reserved.