I want the user to choose one option out of three for one model.
those. I have a Video model that can be rated as positive / negative / unknown
I currently have three columns with boolean values (pos / neg / unknown).
Is this the best way to handle this situation?
What does the form look like for this?
I currently have something like
<%= radio_button_tag :positive, @word.positive, false %> <%= label_tag :positive, 'Positive' %> <%= radio_button_tag :negative, @word.negative, false %> <%= label_tag :negative, 'Positive' %> <%= radio_button_tag :unknown, @word.unknown, false %> <%= label_tag :unknown, 'Positive' %>
But, obviously, it allows multiple choice, while I try to limit it to only one.
What to do?
source share