Hi,
I have a lot of these horizontal radio button group inputs like this:
= f.input(:highest_confidence_level, :as => :radio_buttons) do
= f.collection_radio_buttons(:highest_confidence_level, PersonalRkaCompletion::FIRST_INTERVAL, :first, :last) {|b| b.label(:class => "inline radio") { b.radio_button + b.text} }
In order to keep it DRY, I would like to convert it into a custom input, so that I could say something in the lines of: f.input :highest_confidence_level, :as => :horizontal_radio_buttons, PersonalRkaCompletion::FIRST_INTERVAL, :first, :last
How can I manage this? I checked on the website and was not able to find the documentation to assist me..
Thanks in advance