Sha256: 9d4ad86d23731078aeb1470c4682a994f831160d6402d00c2d797ee7e888531e
Contents?: true
Size: 487 Bytes
Versions: 26
Compression:
Stored size: 487 Bytes
Contents
module Locomotive class SubdomainInput < Formtastic::Inputs::TextInput def wrapper_html_options super.tap do |opts| opts[:class] += ' path' end end def to_html domain = options.delete(:domain) input_wrapping do label_html << template.content_tag(:em, "http://") << builder.text_field(method, input_html_options) << template.content_tag(:em, ".#{domain}", class: 'error-anchor') end end end end
Version data entries
26 entries across 26 versions & 1 rubygems