Class: Bh::FormBuilder

Inherits:
ActionView::Helpers::FormBuilder
  • Object
show all
Includes:
Bh::Form::CheckBoxHelper, Bh::Form::FieldHelper, Bh::Form::FieldsForHelper, Bh::Form::FieldsetHelper, Bh::Form::LegendHelper, Bh::Form::RadioButtonHelper, Bh::Form::SelectHelper, Bh::Form::StaticControlHelper, Bh::Form::SubmitHelper
Defined in:
lib/bh/form_builders/form_builder.rb

Class Method Summary collapse

Methods included from Bh::Form::SubmitHelper

#submit

Methods included from GlyphiconHelper

#glyphicon

Methods included from Bh::Form::StaticControlHelper

#static_control

Methods included from Bh::Form::SelectHelper

#select

Methods included from Bh::Form::RadioButtonHelper

#radio_button

Methods included from Bh::Form::LegendHelper

#legend

Methods included from Bh::Form::FieldsForHelper

#fields_for

Methods included from Bh::Form::FieldsetHelper

#fieldset

Methods included from PanelHelper

#panel

Methods included from Bh::Form::FieldHelper

#field

Methods included from Bh::Form::CheckBoxHelper

#check_box

Class Method Details

.textual_field_helpersObject

@note: field_helpers are returned as symbols in ActionView 4 and as

strings in ActionView 3


25
26
27
28
29
# File 'lib/bh/form_builders/form_builder.rb', line 25

def self.textual_field_helpers
  non_textual_field_helpers = %w(label hidden_field range_field check_box
    radio_button select submit fields_for label)
  field_helpers.map(&:to_s) - non_textual_field_helpers
end