Let’s assume we have created scaffolding for a complex form for two models: “Group” and “Person” and that each group has many people, and each person belongs to a group. To do this yourself inside of your Rails application, see my article: Scaffolding for auto complete on a complex, nested form.
Once the complex form scaffolding is created, you can start to use it by opening the groups index page at http://localhost:3000/groups. Initially since there are no groups, you’ll see an empty list like this:
Next, click the “Open index.html.erb” link at the right side to take a look at how this is generated.