So I have this code inside my lib/ folder:
class GlobalConfig::SetHelper
def self.yes_no_input(configuration)
value = configuration.value
name = configuration.name
"#{radio_button_tag name, true, (value == true), {:id => "#{name}_yes"}} #{label_tag "#{name}_yes", 'yes'}
#{radio_button_tag name, false, (value.blank? or value == false), {:id => "#{name}_no"}} #{label_tag "#{name}_no", 'no'}"
end
end
But it returned: undefined method `radio_button_tag' for GlobalConfig::SetHelper:Class when I run the code.
How do I fix this. Anyone?
Thanks