class Phlex::Rails::Form
def self.input_field(method_name, type:)
def self.input_field(method_name, type:) define_method method_name do |field, value: @model.attributes[field.to_s], **attributes| input( name: field_name(field), type: type, value: value, **attributes ) end end