Trying to get good advice on the best approach to using arrays to select a form, but using the same array to check for inclusion for validation.
Now I have this, but building arrays inside the elements and checking, i.e.
# Form <%= f.select(:status, [['Live','live'], ['Paused', 'paused']]) %>
I am sure there will be a better way to store these arrays and use them!
Thanks for any advice you can provide.
source share