Using simple_form I render some radio buttons to select Gender on registration page.
code:
= f.input :gender,
:collection => gender,
:as => :radio_buttons,
:item_wrapper_class => 'inline'
This gives output like:

Is there a way to make the first radio button be behind Male and the 2nd radio button behind Female?
Here is a better solution than my original below.
From the code:
I think this is what you are looking for:
You can even add other helpers like
image_tagin there too:This solution is not a normal custom component. This custom compontent inherits from CollectRadioButtonsInput instead of the normal CollectionInput class. I modified the 2 relevant methods.
Inside
app/inputs/radio_buttons_left_label_input.rbIt can be used like this