I'm trying to combine radio buttons and text_field for a single value :
= f.radio_button :system, "bacteria"
Bacteria
= f.radio_button :system, "mammalian"
Mammalian
= f.radio_button :system, "yeast"
Yeast
= f.radio_button :system, "insect"
Insect
= f.radio_button :system, "other"
Other:
= f.text_field :system, class:"input-small"
When I submit, nothing happens because a blank value is given in params even if a radio is checked (I think it considers the text field).
I tried to give another name to the text_field, and replaced the :system value in the controller after updating, but it looks like a dirty way...
Do you have any cleaner ideas ?