Im trying for some time to use simple_form to create the below example but + the label and fixing some styling. Anyone knows how to fix:
- remove the 2's no idea where they come from (seems strange i18n bug on production it throws a whole bunch of I18n in )
- Have the text Male or Female after the radio button
Is the result from below code:
.clear
= f.label "Gender"
= f.collection_radio_buttons(:gender, [['Male', 'icon_male'], ['Female', 'icon_female']],
:first, :last,
:item_wrapper_class => 'horizontal',
) do |gender|
= gender.label { image_tag("/assets/icons/16x16/#{gender.text}.png") + gender.radio_button }
.clear
.ruler
.clear
and.ruler
stuff? In fact every thing outside the collection_radio_buttons. It would be good to isolate the code to confirm that the bug is within the collection radio_buttons. – Fervent