Module: TemplateForm

Defined in:
lib/template_form.rb,
lib/template_form/errors.rb,
lib/template_form/version.rb,
lib/template_form/base_input.rb,
lib/template_form/date_input.rb,
lib/template_form/file_input.rb,
lib/template_form/text_input.rb,
lib/template_form/form_helper.rb,
lib/template_form/form_builder.rb,
lib/template_form/select_input.rb,
lib/template_form/checkbox_input.rb,
lib/template_form/textarea_input.rb,
lib/template_form/grouped_select_input.rb

Defined Under Namespace

Modules: FormHelper Classes: BaseInput, CheckboxInput, DateInput, FileInput, FormBuilder, GroupedSelectInput, SelectInput, TextInput, TextareaInput

Constant Summary collapse

TemplateFormError =
Class.new StandardError
MissingTemplateError =
Class.new TemplateFormError
VERSION =
"0.4.7"

Class Method Summary collapse

Class Method Details

.field_error_procObject



6
7
8
# File 'lib/template_form.rb', line 6

def self.field_error_proc
  noop_field_error_proc
end

.form_typeObject



10
11
12
# File 'lib/template_form.rb', line 10

def self.form_type
  @form_type || :bulma
end

.form_type=(val) ⇒ Object



14
15
16
# File 'lib/template_form.rb', line 14

def self.form_type=(val)
  @form_type = val
end