Class: SymbolInput

Inherits:
SimpleForm::Inputs::Base
  • Object
show all
Defined in:
app/inputs/symbol_input.rb

Instance Method Summary collapse

Instance Method Details

#input(wrapper_options) ⇒ Object



2
3
4
# File 'app/inputs/symbol_input.rb', line 2

def input(wrapper_options)
  "<label for='#{object_name}_#{attribute_name}'  class='#{options[:span_class]}'>#{options[:content_text]}</label>#{@builder.text_field(attribute_name, "data-validate" => input_html_options['data-validate'], placeholder: input_html_options[:placeholder])}".html_safe
end