0

I want to create a nested form in Ruby on Rails. Let's say I have a Model Player and a Model Achievement.

In a form for the User I want to assign n Achievements to the User. The Achievements have been created before, so they exist when the Achievements get assigned. How do I do that? How should the View, the Controller and the Models look like? I searched for hours but I didn't find anything.

I'd like to realize it with a select field, with which the Achievements get selected.

Daniel
  • 380
  • 2
  • 14

1 Answers1