Class: Formtastic::Inputs::FakeInput
- Inherits:
-
Object
- Object
- Formtastic::Inputs::FakeInput
- Includes:
- Base, Base::Stringish
- Defined in:
- lib/formtastic/inputs/fake_input.rb
Overview
Outputs a simple ‘<label>` with a `<span />` wrapped in the standard `<li>` wrapper. This is useful when you need to show read-only value in the form using all regular input decorations, but without the ability to pass its value in the form POST request. Use the `:value` option to set custom value.
Instance Method Summary collapse
Instance Method Details
#to_html ⇒ Object
43 44 45 46 47 |
# File 'lib/formtastic/inputs/fake_input.rb', line 43 def to_html input_wrapping do label_html << content_html end end |