Class: Locomotive::SubdomainInput
- Inherits:
-
Formtastic::Inputs::TextInput
- Object
- Formtastic::Inputs::TextInput
- Locomotive::SubdomainInput
- Defined in:
- app/inputs/locomotive/subdomain_input.rb
Instance Method Summary collapse
Instance Method Details
#to_html ⇒ Object
10 11 12 13 14 15 16 17 18 19 |
# File 'app/inputs/locomotive/subdomain_input.rb', line 10 def to_html domain = .delete(:domain) input_wrapping do label_html << template.content_tag(:em, "http://") << builder.text_field(method, ) << template.content_tag(:em, ".#{domain}", :class => 'error-anchor') end end |
#wrapper_html_options ⇒ Object
4 5 6 7 8 |
# File 'app/inputs/locomotive/subdomain_input.rb', line 4 def super.tap do |opts| opts[:class] += ' path' end end |