Skip to main content

Category filter implementation (perhaps with search)

General • Asked by Sean M

Hi Chris!

At the moment I have product and industry models with has_many :through associations, and would like to list the products based on the industries. I'd like to create a category (in my case industry) filter kinda like in gorails (https://gorails.com/episodes?tagged=Administration) on the screencasts page or like the rocketclub (http://www.rocketclub.co/startups) implementation.

I guess rocketclub is using AJAX version and you seem to be using turbolinks. What I also realized that your version has the tagged search query in the address bar. Could you tell me the basic differences between the 2 solutions and which approach I should take (in terms of pros/cons, time, etc.)? I couldn't find any really good tuts on this topic, so if you know some, pls share with me!

Btw., what kind of search gem you use for searching in the gorails app?

Thanks a lot,
Szilard


Login or Create An Account to join the conversation.

Subscribe to the newsletter

Join 27,623+ developers who get early access to new screencasts, articles, guides, updates, and more.

    By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

    More of a social being? We're also on Twitter and YouTube.