Rails: Using form tags inside lib
- by jaycode
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…