Class: UnderlineInput

Inherits:
Object
  • Object
show all
Includes:
Formtastic::Inputs::Base
Defined in:
app/inputs/underline_input.rb

Instance Method Summary collapse

Instance Method Details

#label_htmlObject



11
12
13
14
# File 'app/inputs/underline_input.rb', line 11

def label_html
  super <<
    "<span>#{options[:prefix]}</span>".html_safe
end

#to_htmlObject



4
5
6
7
8
9
# File 'app/inputs/underline_input.rb', line 4

def to_html
  input_wrapping do
    label_html <<
    builder.send(:text_field, method, input_html_options)
  end
end