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?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hello,
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.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.