Class: GenericFormFor::Inputs::HiddenInput
- Inherits:
-
Object
- Object
- GenericFormFor::Inputs::HiddenInput
- Includes:
- Base
- Defined in:
- lib/generic_form_for/inputs/hidden_input.rb
Instance Attribute Summary
Attributes included from Base
#builder, #column, #method, #object, #object_name, #options, #template
Instance Method Summary collapse
- #input_html(config_options = {}) ⇒ Object
- #render_error? ⇒ Boolean
- #render_hint? ⇒ Boolean
- #render_label? ⇒ Boolean
Methods included from Base
#autofocus?, #default_input_options, #form_builder_options, #initialize, #input_html_class, #input_html_options, #input_options, #merge_html_options, #to_html, #wrap_in
Methods included from Base::ErrorMessage
#error_html, #error_html_options, #errors, #errors?
Methods included from Base::Label
#label_html, #label_html_options, #label_text, #requirement_text, #translated_label
Methods included from Base::Validations
#decimals, #limit, #limits_from_validations, #maximal_number, #minimal_number, #required?, #required_from_validations?
Methods included from Base::Hint
#hint_html, #hint_html_options, #hint_text
Methods included from GenericFormFor::I18n
#translate, #translate_action, #translate_hint, #translate_label, #translate_legend, #translate_placeholder
Instance Method Details
#input_html(config_options = {}) ⇒ Object
6 7 8 |
# File 'lib/generic_form_for/inputs/hidden_input.rb', line 6 def input_html(={}) template.concat builder.hidden_field(method, (,)) end |
#render_error? ⇒ Boolean
14 15 16 |
# File 'lib/generic_form_for/inputs/hidden_input.rb', line 14 def render_error? false end |
#render_hint? ⇒ Boolean
18 19 20 |
# File 'lib/generic_form_for/inputs/hidden_input.rb', line 18 def render_hint? false end |
#render_label? ⇒ Boolean
10 11 12 |
# File 'lib/generic_form_for/inputs/hidden_input.rb', line 10 def render_label? false end |