I am a beginner in Ruby on Rails and I need to add a Select field to the user registry form, so I can add a "Type" to the user to be registered. I want to automatically populate the fields when editing and viewing a user record.
I'm implementing a system for a Graph, which has the "User", "Director" and "Graph" profiles. My Select is structured as follows in _form
of user:
<div class="field">
<%= f.label :tipo %><br>
<%= f.select :tipo, ['usuario', 'grafica', 'diretor'] %>
</div>
Select values are not being entered into the database! How should I proceed?