i'm using the simple_form gem and really like its simplicity. However, trying to set to set up a simple radio button is beyond me as I keep getting the following error
"undefined local variable or method `vegan'"
1.Here what I have so far
<%= f.collection_radio_buttons :diettype, [[vegan, 'vegan'] ,[vegetarian, 'vegetarian']]%>
2.Heres the code I used before simple_form with an update/patch method, which would update and save a users requirement
<%= f.label(:diettype, "Vegan") %>
<%= f.radio_button(:diettype, "Vegan") %>
<%= f.label(:diettype, "vegetarian") %>
<%= f.radio_button(:diettype, "vegetarian")%>
3.And here is what I am trying to reproduce
<select>
<option> vegan </option>
<option> Vegetarian </option>
</select>
NOTE - vegan and vegetarian are select options that will be stored in the database column of :diettype.