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/date_select_input.rb,
lib/template_form/grouped_select_input.rb
Defined Under Namespace
Modules: FormHelper
Classes: BaseInput, CheckboxInput, DateInput, DateSelectInput, FileInput, FormBuilder, GroupedSelectInput, SelectInput, TextInput, TextareaInput
Constant Summary
collapse
- TemplateFormError =
Class.new StandardError
- MissingTemplateError =
Class.new TemplateFormError
- VERSION =
"0.4.9"
Class Method Summary
collapse
Class Method Details
.field_error_proc ⇒ Object
6
7
8
|
# File 'lib/template_form.rb', line 6
def self.field_error_proc
noop_field_error_proc
end
|
10
11
12
|
# File 'lib/template_form.rb', line 10
def self.form_type
@form_type || :bulma
end
|
14
15
16
|
# File 'lib/template_form.rb', line 14
def self.form_type=(val)
@form_type = val
end
|
.template_path ⇒ Object
18
19
20
|
# File 'lib/template_form.rb', line 18
def self.template_path
@template_path || Pathname.new("#{Rails.root}/app/forms")
end
|
.template_path=(val) ⇒ Object
22
23
24
|
# File 'lib/template_form.rb', line 22
def self.template_path=(val)
@template_path = Pathname.new(val)
end
|