Skip to main content

How do i populate a dropdown based on the parent_id selected in a tree structure?

Rails • Asked by Nana Manu
i am currently working on an online store where the category model has ancestry with the ancestry gem, i would like to add products by selecting the parent category first and then based on the selected category populate the category for the descendants.

i could really use some help

Login or Create An Account to join the conversation.

Subscribe to the newsletter

Join 22,346+ 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.