I'm attempting to add an option for users to choose to set their user.status to "Public" or "Private." I have this working just fine in my form for users - it saves the status exactly as expected:
<div class="form-group">
<%= f.label :status, "Private or Public?" %>
<%= f.select :status, options_for_select(user_statuses, @user.status) %>
</div>
In application_helper.rb:
def user_statuses
[ ["Private", "Private"], ["Public", "Public"] ]
end
However, if I add the same form group from above to my devise edit/new views, I can't get the status to save correctly. The user's status remains unchanged/default. Is there something I'm missing?