create a dropdown menu in rails forum

May 7, 2016 1.9k views
Ruby on Rails

My database has a list of games and a junction table for the characters in each game. My question is, how do I show the game list in a drop down, and when the game is selected show the character in another dropdown? I am also trying to make the characters change if another game is selected. How would I accomplish this?

1 Answer


There is not really enough information to assist you right now. What are you using to run your site within rails? What type of framework are you using for your UI?

How are you grabbing the list of games and characters?

It’s important when asking for help to provide as detailed information as possible. This is so those helping you can replicate your issue or situation. Currently it’s not clear enough to answer your question. We would need more information on how exactly you are doing things.

Have another answer? Share your knowledge.