Say I got some lists and some tasks. Each list can have many tasks, a task belongs to a list. When I editing one of the tasks rails is showing the id of the corresponding list in the inputfield.
How is it possible to show the title of the list instead of the id?
You probably want to use a
selectinput, something similar to this in your form code:This will display the
nameof eachList, but will actually assign theidto the task’slist_id