I am using a form_for to update a user profile.
As part of the form I am using a select menu. The menu is filled from an array ie,
STATUS = [['Active', 'active'], ['In Active', 'inactive']]
Then in the form
<%= f.select(:status, options_for_select(STATUS)) %>
While this work’s its not selecting the option which was previously selected on edit.
Am I missing something ?
should be written as