I have a form element with:
<%= f.collection_select :race, :id, Race.all, :id, :name, prompt: true %>
This allows you to choose the race of your characters in the text adventure that I create. The goal is to release all available races, select by name and pass the identifier of this race to the pairs.
But when I load the page, I get an undefined method
merge 'for: name: Symbol`
I looked through the docs and I think I'm doing it right, but I guess not? what am I doing wrong?
source share