So, I am creating a simple application. I have a Games database table and a Rules database table. There can be many rules in every game. I want to submit this form:
Game Title:
Game Description:
Rule #1:
(Click to add another rule)
Thus, the user can click the button to add another text box for additional rules. What is the best way to get around this? Are there any helpers? Any way to return an array of rules? I'm a little new to Rails, and my search engine did not provide much help. I may just be ignorant, but any help would be greatly appreciated!
source
share